Skip to content

Commit

Permalink
MIPS: BPF: Do all exports of symbols with FEXPORT().
Browse files Browse the repository at this point in the history
FEXPORT also marks the symbol as code using .type symbol, @function.
Without objdump -d will output only a hexdump for code following the
affected symbols.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 1, 2015
1 parent 5b235dc commit 1e16a8f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions arch/mips/net/bpf_jit_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@

LEAF(sk_load_word)
is_offset_negative(word)
.globl sk_load_word_positive
sk_load_word_positive:
FEXPORT(sk_load_word_positive)
is_offset_in_header(4, word)
/* Offset within header boundaries */
PTR_ADDU t1, $r_skb_data, offset
Expand All @@ -85,8 +84,7 @@ sk_load_word_positive:

LEAF(sk_load_half)
is_offset_negative(half)
.globl sk_load_half_positive
sk_load_half_positive:
FEXPORT(sk_load_half_positive)
is_offset_in_header(2, half)
/* Offset within header boundaries */
PTR_ADDU t1, $r_skb_data, offset
Expand All @@ -109,8 +107,7 @@ sk_load_half_positive:

LEAF(sk_load_byte)
is_offset_negative(byte)
.globl sk_load_byte_positive
sk_load_byte_positive:
FEXPORT(sk_load_byte_positive)
is_offset_in_header(1, byte)
/* Offset within header boundaries */
PTR_ADDU t1, $r_skb_data, offset
Expand Down

0 comments on commit 1e16a8f

Please sign in to comment.