]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf32-arc.c
[ARC] Disable warning on absolute relocs when symbol is local.
authorCupertino Miranda <cmiranda@synopsys.com>
Mon, 24 Oct 2016 10:52:04 +0000 (12:52 +0200)
committerCupertino Miranda <cmiranda@synopsys.com>
Thu, 8 Jun 2017 17:00:34 +0000 (19:00 +0200)
commit9d5c718b7a9c46132940f899f40556a77ca462a0
treeea749d9adb39c618b93d128bf7a93a04227f7bec
parentbe9e3704f91190c1e1c5d253494423b13c982d93
[ARC] Disable warning on absolute relocs when symbol is local.

R_ARC_32 and R_ARC_32_ME cannot be generated as dynamic relocs.
However, a warning message and check_relocs was aborting when this type of
reloc was being resolved to a local symbol.
This is wrong as local symbols are resolvable at link time.

bfd/ChangeLog:

    Cupertino Miranda  <cmiranda@synopsys.com>

* elf32-arc.c (elf_arc_check_relocs): Added condition to disable
warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs.
bfd/ChangeLog
bfd/elf32-arc.c