summaryrefslogtreecommitdiff
path: root/x86_64-linux-android/lib/ldscripts/i386linux.x
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-08-13 01:28:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-08-13 01:28:27 +0000
commit8064a1015e67fe25e22f0ffc96fce2410325ac93 (patch)
tree89ca063758a2407e3de4e14aa478acd7a8c8c4a2 /x86_64-linux-android/lib/ldscripts/i386linux.x
parentbbe08f8958377ba3a06f4081ed13b2399db448fb (diff)
parent7f61ceb88132c4329380c0cf9634e305dda9fe76 (diff)
downloadx86_64-linux-android-4.7-8064a1015e67fe25e22f0ffc96fce2410325ac93.tar.gz
Merge "New x86 toolchain: x86_64-linux-android-4.7"
Diffstat (limited to 'x86_64-linux-android/lib/ldscripts/i386linux.x')
-rw-r--r--x86_64-linux-android/lib/ldscripts/i386linux.x47
1 files changed, 47 insertions, 0 deletions
diff --git a/x86_64-linux-android/lib/ldscripts/i386linux.x b/x86_64-linux-android/lib/ldscripts/i386linux.x
new file mode 100644
index 0000000..68bc5a0
--- /dev/null
+++ b/x86_64-linux-android/lib/ldscripts/i386linux.x
@@ -0,0 +1,47 @@
+/* Default linker script, for normal executables */
+/* Modified for Android. */
+OUTPUT_FORMAT("a.out-i386-linux", "a.out-i386-linux",
+ "a.out-i386-linux")
+OUTPUT_ARCH(i386)
+PROVIDE (__stack = 0);
+SECTIONS
+{
+ . = 0x1020;
+ .text :
+ {
+ CREATE_OBJECT_SYMBOLS
+ *(.text)
+ /* The next six sections are for SunOS dynamic linking. The order
+ is important. */
+ *(.dynrel)
+ *(.hash)
+ *(.dynsym)
+ *(.dynstr)
+ *(.rules)
+ *(.need)
+ _etext = .;
+ __etext = .;
+ }
+ . = ALIGN(0x1000);
+ .data :
+ {
+ /* The first three sections are for SunOS dynamic linking. */
+ *(.dynamic)
+ *(.got)
+ *(.plt)
+ *(.data)
+ *(.linux-dynamic) /* For Linux dynamic linking. */
+ CONSTRUCTORS
+ _edata = .;
+ __edata = .;
+ }
+ .bss :
+ {
+ __bss_start = .;
+ *(.bss)
+ *(COMMON)
+ . = ALIGN(4);
+ _end = . ;
+ __end = . ;
+ }
+}