diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-10-01 09:45:44 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-10-01 09:45:44 -0400 |
commit | 1e16a8f11669c98a0adf5fb5f8522aebc1f69f71 (patch) | |
tree | 7938293c85575ee215228cb058c5cc53253704f8 /arch | |
parent | 5b235dc2647e4977b17b5c41d959d0f455831c3f (diff) |
MIPS: BPF: Do all exports of symbols with FEXPORT().
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/net/bpf_jit_asm.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/mips/net/bpf_jit_asm.S b/arch/mips/net/bpf_jit_asm.S index dabf4179cd7e..eabb5e0889ee 100644 --- a/arch/mips/net/bpf_jit_asm.S +++ b/arch/mips/net/bpf_jit_asm.S | |||
@@ -57,8 +57,7 @@ | |||
57 | 57 | ||
58 | LEAF(sk_load_word) | 58 | LEAF(sk_load_word) |
59 | is_offset_negative(word) | 59 | is_offset_negative(word) |
60 | .globl sk_load_word_positive | 60 | FEXPORT(sk_load_word_positive) |
61 | sk_load_word_positive: | ||
62 | is_offset_in_header(4, word) | 61 | is_offset_in_header(4, word) |
63 | /* Offset within header boundaries */ | 62 | /* Offset within header boundaries */ |
64 | PTR_ADDU t1, $r_skb_data, offset | 63 | PTR_ADDU t1, $r_skb_data, offset |
@@ -85,8 +84,7 @@ sk_load_word_positive: | |||
85 | 84 | ||
86 | LEAF(sk_load_half) | 85 | LEAF(sk_load_half) |
87 | is_offset_negative(half) | 86 | is_offset_negative(half) |
88 | .globl sk_load_half_positive | 87 | FEXPORT(sk_load_half_positive) |
89 | sk_load_half_positive: | ||
90 | is_offset_in_header(2, half) | 88 | is_offset_in_header(2, half) |
91 | /* Offset within header boundaries */ | 89 | /* Offset within header boundaries */ |
92 | PTR_ADDU t1, $r_skb_data, offset | 90 | PTR_ADDU t1, $r_skb_data, offset |
@@ -109,8 +107,7 @@ sk_load_half_positive: | |||
109 | 107 | ||
110 | LEAF(sk_load_byte) | 108 | LEAF(sk_load_byte) |
111 | is_offset_negative(byte) | 109 | is_offset_negative(byte) |
112 | .globl sk_load_byte_positive | 110 | FEXPORT(sk_load_byte_positive) |
113 | sk_load_byte_positive: | ||
114 | is_offset_in_header(1, byte) | 111 | is_offset_in_header(1, byte) |
115 | /* Offset within header boundaries */ | 112 | /* Offset within header boundaries */ |
116 | PTR_ADDU t1, $r_skb_data, offset | 113 | PTR_ADDU t1, $r_skb_data, offset |