libhugetlbfs/libhugetlbfs.linker-sections.patch

103 lines
4.2 KiB
Diff

Subject: [PATCH V2] Update SECTIONS from linker scripts for binutils 2.19 compatibility
When building the linker script tests on SLES 11, the resulting executable
had an invalid size for the interp section. This is dues to a new section
that was not present in the old script. This patch adds this section to
all of the linker scripts.
Credit goes to Alan Modra for identifying what change needed to be made
Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
---
ldscripts/elf32ppclinux.xB | 1 +
ldscripts/elf32ppclinux.xBDT | 1 +
ldscripts/elf64ppc.xB | 1 +
ldscripts/elf64ppc.xBDT | 1 +
ldscripts/elf_i386.xB | 1 +
ldscripts/elf_i386.xBDT | 1 +
ldscripts/elf_x86_64.xB | 1 +
ldscripts/elf_x86_64.xBDT | 1 +
8 files changed, 8 insertions(+)
--- a/ldscripts/elf32ppclinux.xB
+++ b/ldscripts/elf32ppclinux.xB
@@ -27,6 +27,7 @@ SECTIONS
.interp : { *(.interp) } :text :interp
.note.SuSE : { *(.note.SuSE) } :text :note
.note.ABI-tag : { *(.note.ABI-tag) } :text :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :text :note
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text
.dynstr : { *(.dynstr) } :text
--- a/ldscripts/elf32ppclinux.xBDT
+++ b/ldscripts/elf32ppclinux.xBDT
@@ -26,6 +26,7 @@ SECTIONS
.interp : { *(.interp) } :htext :interp
.note.SuSE : { *(.note.SuSE) } :htext :note
.note.ABI-tag : { *(.note.ABI-tag) } :htext :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :htext :note
.hash : { *(.hash) } :htext
.dynsym : { *(.dynsym) } :htext
.dynstr : { *(.dynstr) } :htext
--- a/ldscripts/elf64ppc.xB
+++ b/ldscripts/elf64ppc.xB
@@ -26,6 +26,7 @@ SECTIONS
.interp : { *(.interp) } :text :interp
.note.SuSE : { *(.note.SuSE) } :text :note
.note.ABI-tag : { *(.note.ABI-tag) } :text :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :text :note
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
--- a/ldscripts/elf64ppc.xBDT
+++ b/ldscripts/elf64ppc.xBDT
@@ -25,6 +25,7 @@ SECTIONS
.interp : { *(.interp) } :interp :htext
.note.SuSE : { *(.note.SuSE) } :htext :note
.note.ABI-tag : { *(.note.ABI-tag) } :htext :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :htext :note
.hash : { *(.hash) } :htext
.dynsym : { *(.dynsym) } :htext
.dynstr : { *(.dynstr) } :htext
--- a/ldscripts/elf_i386.xB
+++ b/ldscripts/elf_i386.xB
@@ -29,6 +29,7 @@ SECTIONS
.interp : { *(.interp) } :text :interp
.note.SuSE : { *(.note.SuSE) } :text :note
.note.ABI-tag : { *(.note.ABI-tag) } :text :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :text :note
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
--- a/ldscripts/elf_i386.xBDT
+++ b/ldscripts/elf_i386.xBDT
@@ -30,6 +30,7 @@ SECTIONS
.interp : { *(.interp) } :htext :interp
.note.SuSE : { *(.note.SuSE) } :htext :note
.note.ABI-tag : { *(.note.ABI-tag) } :htext :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :htext :note
.hash : { *(.hash) } :htext
.dynsym : { *(.dynsym) } :htext
.dynstr : { *(.dynstr) } :htext
--- a/ldscripts/elf_x86_64.xB
+++ b/ldscripts/elf_x86_64.xB
@@ -29,6 +29,7 @@ SECTIONS
.interp : { *(.interp) } :text :interp
.note.SuSE : { *(.note.SuSE) } :text :note
.note.ABI-tag : { *(.note.ABI-tag) } :text :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :text :note
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text
.dynstr : { *(.dynstr) } :text
--- a/ldscripts/elf_x86_64.xBDT
+++ b/ldscripts/elf_x86_64.xBDT
@@ -31,6 +31,7 @@ SECTIONS
.hash : { *(.hash) } :htext
.note.SuSE : { *(.note.SuSE) } :htext :note
.note.ABI-tag : { *(.note.ABI-tag) } :htext :note
+ .note.gnu.build-id : { *(.note.gnu.build-id) } :htext :note
.dynsym : { *(.dynsym) } :htext
.dynstr : { *(.dynstr) } :htext
.gnu.version : { *(.gnu.version) } :htext