diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2019-10-07 18:10:04 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2019-10-07 18:10:31 +0200 |
commit | d8dfcf0ed203881ba6835f8c593b301d01b34637 (patch) | |
tree | bbd063b4103986e7af21beadebbabe1ab0a3dc38 /toolchain/binutils | |
parent | 6722c7786ac6e29abeeca0c610cf22e7a4c660e2 (diff) |
or1k: use upstream binutils/gcc
Diffstat (limited to 'toolchain/binutils')
-rw-r--r-- | toolchain/binutils/patches/2.32/or1k.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/toolchain/binutils/patches/2.32/or1k.patch b/toolchain/binutils/patches/2.32/or1k.patch new file mode 100644 index 000000000..dcb5f467b --- /dev/null +++ b/toolchain/binutils/patches/2.32/or1k.patch @@ -0,0 +1,17 @@ +diff -Nur binutils-2.32.orig/bfd/elf32-or1k.c binutils-2.32/bfd/elf32-or1k.c +--- binutils-2.32.orig/bfd/elf32-or1k.c 2019-01-19 17:01:33.000000000 +0100 ++++ binutils-2.32/bfd/elf32-or1k.c 2019-10-06 04:55:05.439891597 +0200 +@@ -2379,8 +2379,11 @@ + or1k_write_plt_entry (output_bfd, splt->contents + h->plt.offset, + plt0, plt1, plt2, OR1K_JR(12)); + +- /* Fill in the entry in the global offset table. */ +- bfd_put_32 (output_bfd, plt_addr, sgot->contents + got_offset); ++ /* Fill in the entry in the global offset table. We initialize it to ++ point to the top of the plt. This is done to lazy lookup the actual ++ symbol as the first plt entry will be setup by libc to call the ++ runtime dynamic linker. */ ++ bfd_put_32 (output_bfd, plt_base_addr, sgot->contents + got_offset); + + /* Fill in the entry in the .rela.plt section. */ + rela.r_offset = got_addr; |