diff options
author | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2019-05-06 09:09:02 -0700 |
---|---|---|
committer | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2019-05-20 11:08:23 -0700 |
commit | d87343802b81ad123a27beccb140d406f54727c6 (patch) | |
tree | 009550005a43b878031c01be5ab6eafd390bd10f /binutils | |
parent | cffc205c9eaacfa312323807cd60b9d3d1c26894 (diff) | |
download | gdb-d87343802b81ad123a27beccb140d406f54727c6.zip gdb-d87343802b81ad123a27beccb140d406f54727c6.tar.gz gdb-d87343802b81ad123a27beccb140d406f54727c6.tar.bz2 |
[MIPS] PR gas/14798: Limit IRIX5 specific default typing to IRIX targets
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.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.ss-mips | 8 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.ss-tmips | 8 |
3 files changed, 14 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7960939..184c93a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com> + + PR 14798 + * testsuite/binutils-all/readelf.ss-mips: Update reference output. + * testsuite/binutils-all/readelf.ss-tmips: Likewise. + 2019-05-20 Nick Clifton <nickc@redhat.com> * po/ca.po: Updated Catalan translation. diff --git a/binutils/testsuite/binutils-all/readelf.ss-mips b/binutils/testsuite/binutils-all/readelf.ss-mips index 9f4cfa5..c49416b 100644 --- a/binutils/testsuite/binutils-all/readelf.ss-mips +++ b/binutils/testsuite/binutils-all/readelf.ss-mips @@ -9,11 +9,11 @@ Symbol table '.symtab' contains 16 entries: +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 +OBJECT +GLOBAL +DEFAULT +. text_symbol + +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 +OBJECT +GLOBAL +DEFAULT +. data_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 +OBJECT +GLOBAL +DEFAULT +. text_symbol2 - +15: 0000000c +0 +OBJECT +GLOBAL +DEFAULT +. text_symbol3 + +14: 00000008 +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol2 + +15: 0000000c +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol3 diff --git a/binutils/testsuite/binutils-all/readelf.ss-tmips b/binutils/testsuite/binutils-all/readelf.ss-tmips index d22fc08..4fd7fe0 100644 --- a/binutils/testsuite/binutils-all/readelf.ss-tmips +++ b/binutils/testsuite/binutils-all/readelf.ss-tmips @@ -11,9 +11,9 @@ Symbol table '.symtab' contains 16 entries: +7: 00000000 +0 +SECTION +LOCAL +DEFAULT +6 +8: 00000000 +0 +SECTION +LOCAL +DEFAULT +7 +9: 00000000 +0 +SECTION +LOCAL +DEFAULT +8 - +10: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +1 text_symbol + +10: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 text_symbol +11: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +UND external_symbol - +12: 00000000 +0 +OBJECT +GLOBAL +DEFAULT +3 data_symbol + +12: 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +3 data_symbol +13: 00000004 +4 +(COMMON|OBJECT) +GLOBAL +DEFAULT +(PRC|COM) common_symbol - +14: 00000008 +0 +OBJECT +GLOBAL +DEFAULT +. text_symbol2 - +15: 0000000c +0 +OBJECT +GLOBAL +DEFAULT +. text_symbol3 + +14: 00000008 +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol2 + +15: 0000000c +0 +NOTYPE +GLOBAL +DEFAULT +. text_symbol3 |