From e068c4877918d73e7098d4cf8f2f6cbf618f0d71 Mon Sep 17 00:00:00 2001 From: nick clifton Date: Wed, 9 Apr 2025 09:31:02 +0000 Subject: [PATCH] Upload binutils-aarch64-small-plt0.patch --- binutils-aarch64-small-plt0.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 binutils-aarch64-small-plt0.patch diff --git a/binutils-aarch64-small-plt0.patch b/binutils-aarch64-small-plt0.patch new file mode 100644 index 0000000..ef0ddcd --- /dev/null +++ b/binutils-aarch64-small-plt0.patch @@ -0,0 +1,12 @@ +--- binutils.orig/bfd/elfnn-aarch64.c 2025-02-07 13:42:20.961333141 +0000 ++++ binutils-with-gold-2.44/bfd/elfnn-aarch64.c 2025-02-07 13:42:29.781353740 +0000 +@@ -10162,7 +10162,8 @@ elfNN_aarch64_init_small_plt0_entry (bfd + /* PR 26312: Explicitly set the sh_entsize to 0 so that + consumers do not think that the section contains fixed + sized objects. */ +- elf_section_data (htab->root.splt->output_section)->this_hdr.sh_entsize = 0; ++ if (elf_section_data (htab->root.splt->output_section) != NULL) ++ elf_section_data (htab->root.splt->output_section)->this_hdr.sh_entsize = 0; + + plt_got_2nd_ent = (htab->root.sgotplt->output_section->vma + + htab->root.sgotplt->output_offset