aboutsummaryrefslogtreecommitdiff
path: root/ldscripts
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2006-01-06 10:46:08 +1100
committerDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2006-01-06 10:46:08 +1100
commit8048b0c444086e82fdf53447dd1edc7621786c9b (patch)
treef1a4919c2544615334b9d5c42d8bc40833afd2fb /ldscripts
parent5057984d53f85b5995d3691867e32db1b7f1db50 (diff)
downloadlibhugetlbfs-8048b0c444086e82fdf53447dd1edc7621786c9b.tar.gz
Don't use PROVIDE() to define __executable_start since it can result in the
symbol not getting exported by the linker on some versions of binutils. Patch from Adam Litke <agl@us.ibm.com>
Diffstat (limited to 'ldscripts')
-rw-r--r--ldscripts/elf32ppclinux.xB2
-rw-r--r--ldscripts/elf32ppclinux.xBDT2
-rw-r--r--ldscripts/elf64ppc.xB2
-rw-r--r--ldscripts/elf64ppc.xBDT2
-rw-r--r--ldscripts/elf_i386.xB2
-rw-r--r--ldscripts/elf_i386.xBDT2
-rw-r--r--ldscripts/elf_x86_64.xB2
-rw-r--r--ldscripts/elf_x86_64.xBDT2
8 files changed, 8 insertions, 8 deletions
diff --git a/ldscripts/elf32ppclinux.xB b/ldscripts/elf32ppclinux.xB
index 78bb268..b0e71a3 100644
--- a/ldscripts/elf32ppclinux.xB
+++ b/ldscripts/elf32ppclinux.xB
@@ -19,7 +19,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
+ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text
diff --git a/ldscripts/elf32ppclinux.xBDT b/ldscripts/elf32ppclinux.xBDT
index 3bf5c13..14f0d50 100644
--- a/ldscripts/elf32ppclinux.xBDT
+++ b/ldscripts/elf32ppclinux.xBDT
@@ -18,7 +18,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
+ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :htext :interp
.hash : { *(.hash) } :htext
.dynsym : { *(.dynsym) } :htext
diff --git a/ldscripts/elf64ppc.xB b/ldscripts/elf64ppc.xB
index e69115c..e3c530f 100644
--- a/ldscripts/elf64ppc.xB
+++ b/ldscripts/elf64ppc.xB
@@ -18,7 +18,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
+ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) }
diff --git a/ldscripts/elf64ppc.xBDT b/ldscripts/elf64ppc.xBDT
index 4fe1906..09ed7f7 100644
--- a/ldscripts/elf64ppc.xBDT
+++ b/ldscripts/elf64ppc.xBDT
@@ -17,7 +17,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x10000000); . = 0x10000000 + SIZEOF_HEADERS;
+ __executable_start = 0x10000000; . = 0x10000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :interp :htext
.hash : { *(.hash) } :htext
.dynsym : { *(.dynsym) } :htext
diff --git a/ldscripts/elf_i386.xB b/ldscripts/elf_i386.xB
index 0311f76..07b7635 100644
--- a/ldscripts/elf_i386.xB
+++ b/ldscripts/elf_i386.xB
@@ -21,7 +21,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x08048000); . = 0x08048000 + SIZEOF_HEADERS;
+ __executable_start = 0x08048000; . = 0x08048000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) }
diff --git a/ldscripts/elf_i386.xBDT b/ldscripts/elf_i386.xBDT
index 10654cb..b974002 100644
--- a/ldscripts/elf_i386.xBDT
+++ b/ldscripts/elf_i386.xBDT
@@ -22,7 +22,7 @@ SECTIONS
/* Read-only sections, merged into text segment: */
/* Different from the normal origin addres, because we need to make
* it hugepage aligned */
- PROVIDE (__executable_start = 0x08000000); . = 0x08000000 + SIZEOF_HEADERS;
+ __executable_start = 0x08000000; . = 0x08000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text
diff --git a/ldscripts/elf_x86_64.xB b/ldscripts/elf_x86_64.xB
index a0f7d07..4d00f90 100644
--- a/ldscripts/elf_x86_64.xB
+++ b/ldscripts/elf_x86_64.xB
@@ -21,7 +21,7 @@ PHDRS
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = 0x400000); . = 0x400000 + SIZEOF_HEADERS;
+ __executable_start = 0x400000; . = 0x400000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text
diff --git a/ldscripts/elf_x86_64.xBDT b/ldscripts/elf_x86_64.xBDT
index 69c29c4..be8349f 100644
--- a/ldscripts/elf_x86_64.xBDT
+++ b/ldscripts/elf_x86_64.xBDT
@@ -22,7 +22,7 @@ SECTIONS
/* Read-only sections, merged into text segment: */
/* Different from the normal origin address, because we make it 16MB
* aligned, in case of future larger hugepages */
- PROVIDE (__executable_start = 0x1000000); . = 0x1000000 + SIZEOF_HEADERS;
+ __executable_start = 0x1000000; . = 0x1000000 + SIZEOF_HEADERS;
.interp : { *(.interp) } :interp :text
.hash : { *(.hash) } :text
.dynsym : { *(.dynsym) } :text