aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-07-06 16:58:43 +0000
committerNick Clifton <nickc@redhat.com>2004-07-06 16:58:43 +0000
commit85fbca6a4f46e23f3ebb7761821694b358e253b5 (patch)
tree0ac77d2402d894dc2a2e84110fe4e206949f6287 /ld/emulparams
parente7bd9ea00e5f9144e69f3aeb477d4da420c281ed (diff)
downloadgdb-85fbca6a4f46e23f3ebb7761821694b358e253b5.zip
gdb-85fbca6a4f46e23f3ebb7761821694b358e253b5.tar.gz
gdb-85fbca6a4f46e23f3ebb7761821694b358e253b5.tar.bz2
Add support for sh-symbian-elf target
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/shlsymbian.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/emulparams/shlsymbian.sh b/ld/emulparams/shlsymbian.sh
new file mode 100644
index 0000000..9c6dfba
--- /dev/null
+++ b/ld/emulparams/shlsymbian.sh
@@ -0,0 +1,17 @@
+TEXT_START_ADDR=0x8000
+SHLIB_TEXT_START_ADDR=0x8000
+SHLIB_DATA_ADDR=0x400000
+
+. ${srcdir}/emulparams/shelf.sh
+
+# Use only two underscores for the constructor/destructor symbols
+CTOR_START='__ctors = .;'
+CTOR_END='__ctors_end = .;'
+DTOR_START='__dtors = .;'
+DTOR_END='__dtors_end = .;'
+
+# Suppress the .stack section.
+test -z "$CREATE_SHLIB" && OTHER_SECTIONS="${RELOCATING+PROVIDE (_stack = 0x30000);}"
+
+OUTPUT_FORMAT="elf32-shl-symbian"
+SCRIPT_NAME=elf32sh-symbian