On Tue, Nov 25, 2008 at 02:41:48PM +0000, Eric B Munson wrote:
> 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 <[EMAIL PROTECTED]>
This appears to work as advertised.
Acked-by: Mel Gorman <[EMAIL PROTECTED]>
> ---
> 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(+), 0 deletions(-)
>
> diff --git a/ldscripts/elf32ppclinux.xB b/ldscripts/elf32ppclinux.xB
> index bf96081..28ad88d 100644
> --- 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
> diff --git a/ldscripts/elf32ppclinux.xBDT b/ldscripts/elf32ppclinux.xBDT
> index 68ddebf..f0bf10a 100644
> --- 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) } :text :note
> .hash : { *(.hash) } :htext
> .dynsym : { *(.dynsym) } :htext
> .dynstr : { *(.dynstr) } :htext
> diff --git a/ldscripts/elf64ppc.xB b/ldscripts/elf64ppc.xB
> index b05915b..1a9c1ab 100644
> --- 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) }
> diff --git a/ldscripts/elf64ppc.xBDT b/ldscripts/elf64ppc.xBDT
> index dbc4847..82844b0 100644
> --- 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) } :text :note
> .hash : { *(.hash) } :htext
> .dynsym : { *(.dynsym) } :htext
> .dynstr : { *(.dynstr) } :htext
> diff --git a/ldscripts/elf_i386.xB b/ldscripts/elf_i386.xB
> index 547c956..43fe51c 100644
> --- 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) }
> diff --git a/ldscripts/elf_i386.xBDT b/ldscripts/elf_i386.xBDT
> index 8b438cd..6e20e7f 100644
> --- 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) } :text :note
> .hash : { *(.hash) } :htext
> .dynsym : { *(.dynsym) } :htext
> .dynstr : { *(.dynstr) } :htext
> diff --git a/ldscripts/elf_x86_64.xB b/ldscripts/elf_x86_64.xB
> index 3310e51..ed21a2c 100644
> --- 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
> diff --git a/ldscripts/elf_x86_64.xBDT b/ldscripts/elf_x86_64.xBDT
> index 80fe1e6..d6bba06 100644
> --- 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) } :text :note
> .dynsym : { *(.dynsym) } :htext
> .dynstr : { *(.dynstr) } :htext
> .gnu.version : { *(.gnu.version) } :htext
> --
> 1.6.0.3
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Libhugetlbfs-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel