mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
d87343802b
On IRIX 5, every global symbol that is not explicitly labelled as being a function is assumed to be an object. There is no reason why IRIX behaviour should extend to all MIPS targets, so limit this to only IRIX targets. gas/ PR 14798 * config/tc-mips.c (s_mips_globl): Only treat symbols that are not explicitly labelled as BSF_OBJECTs for IRIX targets. * testsuite/gas/mips/pr14798.s: New test source. * testsuite/gas/mips/pr14798-irix.d: New test. * testsuite/gas/mips/pr14798.d: Likewise. * testsuite/gas/mips/mips.exp: Run the new tests. binutils/ PR 14798 * testsuite/binutils-all/readelf.ss-mips: Update reference output. * testsuite/binutils-all/readelf.ss-tmips: Likewise. ld/ PR 14798 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for global code symbols. * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
|
|
Symbol table '.symtab' contains 16 entries:
|
|
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
|
|
+0: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND
|
|
+1: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.text)
|
|
+2: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.data)
|
|
+3: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.bss)
|
|
+4: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.reginfo)
|
|
+5: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.MIPS\.abiflags)
|
|
+6: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.pdr)
|
|
+7: 00000000 +0 +SECTION +LOCAL +DEFAULT +. (|\.gnu\.attributes)
|
|
+8: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol
|
|
+9: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +. static_text_symbol
|
|
+10: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol
|
|
+11: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +. data_symbol
|
|
+12: 00000000 +0 +NOTYPE +LOCAL +DEFAULT +. static_data_symbol
|
|
+13: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol
|
|
+14: 00000008 +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol2
|
|
+15: 0000000c +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol3
|