diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2002-10-21 14:59:30 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2002-10-21 14:59:30 +0000 |
commit | 631cb423b20271e4762464b851a0999babf55407 (patch) | |
tree | 6dfdcf7d6233595e8c23dd3859a1aa8d1a639df8 /gas/config/tc-mips.c | |
parent | 407caf07a4b0da14b9efbe68a0d75bd6c273c192 (diff) | |
download | gdb-631cb423b20271e4762464b851a0999babf55407.zip gdb-631cb423b20271e4762464b851a0999babf55407.tar.gz gdb-631cb423b20271e4762464b851a0999babf55407.tar.bz2 |
* config/tc-mips.c (mips_need_elf_addend_fixup): Return true
for relocs against symbols in a merged section.
testsuite/
* gas/mips/elf-rel7.[sd]: New test.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index de49657..329d1a4 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -10981,7 +10981,7 @@ mips_need_elf_addend_fixup (fixP) if (symbol_used_in_reloc_p (fixP->fx_addsy) && (((bfd_get_section_flags (stdoutput, S_GET_SEGMENT (fixP->fx_addsy)) - & SEC_LINK_ONCE) != 0) + & (SEC_LINK_ONCE | SEC_MERGE)) != 0) || !strncmp (segment_name (S_GET_SEGMENT (fixP->fx_addsy)), ".gnu.linkonce", sizeof (".gnu.linkonce") - 1))) |