]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
or1k: Fix incorrect value in PLT GOT entries, causing infinite loop
authorStafford Horne <shorne@gmail.com>
Fri, 23 Aug 2019 13:25:55 +0000 (22:25 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 23 Aug 2019 13:25:55 +0000 (22:25 +0900)
commit09f7b0de537d465fc8ed9f9433e348c1bc78aab2
tree02ac5237b3809beaeaa499a4bfa1098e4d94b00a
parenta7ba389645d178c43100ec47e513389ae8bf8f93
or1k: Fix incorrect value in PLT GOT entries, causing infinite loop

The PLT GOT entry should point to the first PLT entry which contains the
runtime linker function.  It was pointing back to the symbol PLT entry
causing an infinite loop.

I found this when testing the OpenRISC glibc port which uses the runtime
dynamic linker.  It seems other libc's we use so far have not been
making use of the initial PLT GOT entries.

bfd/ChangeLog:

* elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
PLT GOT entries.
bfd/ChangeLog
bfd/elf32-or1k.c