For COFF and COFF/PE targets, skip relocations against absolute symbols.
PR ld/19623 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply relocations against absolute symbols.
This commit is contained in:
parent
aa8a08637e
commit
26c62da040
@ -1,3 +1,9 @@
|
|||||||
|
2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
|
||||||
|
|
||||||
|
PR ld/19623
|
||||||
|
* cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
|
||||||
|
relocations against absolute symbols.
|
||||||
|
|
||||||
2016-03-09 Alan Modra <amodra@gmail.com>
|
2016-03-09 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR binutils/19775
|
PR binutils/19775
|
||||||
|
@ -3007,6 +3007,12 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
sec = sections[symndx];
|
sec = sections[symndx];
|
||||||
|
|
||||||
|
/* PR 19623: Relocations against symbols in
|
||||||
|
the absolute sections should ignored. */
|
||||||
|
if (bfd_is_abs_section (sec))
|
||||||
|
continue;
|
||||||
|
|
||||||
val = (sec->output_section->vma
|
val = (sec->output_section->vma
|
||||||
+ sec->output_offset
|
+ sec->output_offset
|
||||||
+ sym->n_value);
|
+ sym->n_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user