From: Nishanth Aravamudan <[EMAIL PROTECTED]> ldscripts: Place 32bit BDT PLT in BSS for PPC
The PLT belongs in the BSS and the standard scripts do it this way. We were getting bad BSS padding for programs with a large BSS. Signed-off-by: Steve Fox <[EMAIL PROTECTED]> --- diff --git a/ldscripts/elf32ppclinux.xBDT b/ldscripts/elf32ppclinux.xBDT index c4d9518..89c70cb 100644 --- a/ldscripts/elf32ppclinux.xBDT +++ b/ldscripts/elf32ppclinux.xBDT @@ -165,11 +165,6 @@ SECTIONS .dynamic : { *(.dynamic) } :dynamic :hdata .got : { *(.got.plt .got) } :hdata /* . = DATA_SEGMENT_RELRO_END (0, .); */ - .plt : { *(.plt) } :hdata - /* Rather than emit LONG(0) in the .plt section, use a symbol to mark - * the end of the need-to-copy data so that it will be copied during - * hugetlb remapping */ - __libhuge_filesz = .; .data : { *(.data .data.* .gnu.linkonce.d.*) @@ -195,6 +190,11 @@ SECTIONS *(.scommon) PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .); } :hdata + .plt : { *(.plt) } :hdata + /* Rather than emit LONG(0) in the .plt section, use a symbol to mark + * the end of the need-to-copy data so that it will be copied during + * hugetlb remapping */ + __libhuge_filesz = .; .bss : { *(.dynbss) -- Steve Fox IBM Linux Technology Center ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel