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 /ld | |
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 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/reloc-6a.s | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/reloc-6b.s | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 90216da..594a304 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com> + + PR 14798 + * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for + global code symbols. + * testsuite/ld-mips-elf/reloc-6b.s: Likewise. + 2019-05-17 Alan Modra <amodra@gmail.com> PR 24567 diff --git a/ld/testsuite/ld-mips-elf/reloc-6a.s b/ld/testsuite/ld-mips-elf/reloc-6a.s index 4d84e83..da8ec11 100644 --- a/ld/testsuite/ld-mips-elf/reloc-6a.s +++ b/ld/testsuite/ld-mips-elf/reloc-6a.s @@ -1,5 +1,5 @@ - .globl us - .globl gs + .globl us .text + .globl gs .text us: gs: ls: diff --git a/ld/testsuite/ld-mips-elf/reloc-6b.s b/ld/testsuite/ld-mips-elf/reloc-6b.s index aa2a726..ae4e9bc 100644 --- a/ld/testsuite/ld-mips-elf/reloc-6b.s +++ b/ld/testsuite/ld-mips-elf/reloc-6b.s @@ -1,5 +1,5 @@ - .globl __start - .globl gs + .globl __start .text + .globl gs .text __start: gs: ls: |