aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2010-10-12 18:39:36 +0000
committerRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2010-10-12 18:39:36 +0000
commit18a1a992e09a0c3bfc61e6deb828d60a97b92b88 (patch)
treeb8e7d007d83fa3f356038ad017d449e314dd4df2 /ld/emulparams
parentd8b34041e09e904a242f922f3f09d2837399e415 (diff)
downloadgdb-18a1a992e09a0c3bfc61e6deb828d60a97b92b88.zip
gdb-18a1a992e09a0c3bfc61e6deb828d60a97b92b88.tar.gz
gdb-18a1a992e09a0c3bfc61e6deb828d60a97b92b88.tar.bz2
* emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
basever_syms to global_syms. Emit global_syms into .dynamic section for all executables and shared objects. (elf_solaris2_after_allocation): New function. (LDEMUL_AFTER_ALLOCATION): Use it. * emulparams/solaris2.sh: New file. * emulparams/elf32_sparc_sol2.sh: Use it. * emulparams/elf64_sparc_sol2.sh: Likewise. * emulparams/elf_i386_sol2.sh: Likewise. * emulparams/elf_x86_64_sol2.sh: Likewise. * Makefile.am (eelf32_sparc_sol2.c): Depend on $(srcdir)/emulparams/solaris2.sh. (eelf64_sparc_sol2.c): Likewise. (eelf_x86_64_sol2.c): Likewise. (eelf_i386_sol2.c): Likewise. * Makefile.in: Regenerate.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf32_sparc_sol2.sh1
-rw-r--r--ld/emulparams/elf64_sparc_sol2.sh1
-rw-r--r--ld/emulparams/elf_i386_sol2.sh1
-rw-r--r--ld/emulparams/elf_x86_64_sol2.sh1
-rw-r--r--ld/emulparams/solaris2.sh10
5 files changed, 14 insertions, 0 deletions
diff --git a/ld/emulparams/elf32_sparc_sol2.sh b/ld/emulparams/elf32_sparc_sol2.sh
index efced57..8fab990 100644
--- a/ld/emulparams/elf32_sparc_sol2.sh
+++ b/ld/emulparams/elf32_sparc_sol2.sh
@@ -1,2 +1,3 @@
. ${srcdir}/emulparams/elf32_sparc.sh
+. ${srcdir}/emulparams/solaris2.sh
EXTRA_EM_FILE=solaris2
diff --git a/ld/emulparams/elf64_sparc_sol2.sh b/ld/emulparams/elf64_sparc_sol2.sh
index 3189b3f..3bf09f6 100644
--- a/ld/emulparams/elf64_sparc_sol2.sh
+++ b/ld/emulparams/elf64_sparc_sol2.sh
@@ -1,2 +1,3 @@
. ${srcdir}/emulparams/elf64_sparc.sh
+. ${srcdir}/emulparams/solaris2.sh
EXTRA_EM_FILE=solaris2
diff --git a/ld/emulparams/elf_i386_sol2.sh b/ld/emulparams/elf_i386_sol2.sh
index 773f3d2..7c18fc6 100644
--- a/ld/emulparams/elf_i386_sol2.sh
+++ b/ld/emulparams/elf_i386_sol2.sh
@@ -1,3 +1,4 @@
. ${srcdir}/emulparams/elf_i386_ldso.sh
+. ${srcdir}/emulparams/solaris2.sh
EXTRA_EM_FILE=solaris2
OUTPUT_FORMAT="elf32-i386-sol2"
diff --git a/ld/emulparams/elf_x86_64_sol2.sh b/ld/emulparams/elf_x86_64_sol2.sh
index e70d592..993f458 100644
--- a/ld/emulparams/elf_x86_64_sol2.sh
+++ b/ld/emulparams/elf_x86_64_sol2.sh
@@ -1,3 +1,4 @@
. ${srcdir}/emulparams/elf_x86_64.sh
+. ${srcdir}/emulparams/solaris2.sh
EXTRA_EM_FILE=solaris2
OUTPUT_FORMAT="elf64-x86-64-sol2"
diff --git a/ld/emulparams/solaris2.sh b/ld/emulparams/solaris2.sh
new file mode 100644
index 0000000..dabbb05
--- /dev/null
+++ b/ld/emulparams/solaris2.sh
@@ -0,0 +1,10 @@
+# If you change this file, please also look at files which source this one:
+# elf32_sparc_sol2.sh, elf64_sparc_sol2.sh, elf_i386_sol2.sh,
+# elf_x86_64_sol2.sh.
+
+# The Solaris 2 ABI requires that two local symbols are present in every
+# executable and shared object.
+# Cf. Linker and Libraries Guide, Ch. 2, Link-Editor, Generating the Output
+# File, p.63.
+TEXT_START_SYMBOLS='_START_ = .;'
+OTHER_END_SYMBOLS='_END_ = .;'