aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgldr.script
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldgldr.script')
-rwxr-xr-xld/ldgldr.script20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/ldgldr.script b/ld/ldgldr.script
new file mode 100755
index 0000000..a3b39fe
--- /dev/null
+++ b/ld/ldgldr.script
@@ -0,0 +1,20 @@
+SEARCH_DIR(/lib)
+SEARCH_DIR(/usr/lib)
+SEARCH_DIR(/usr/local/lib)
+SECTIONS
+{
+ .text 0:
+ {
+ CREATE_OBJECT_SYMBOLS
+ *(.text)
+ }
+ .data SIZEOF(.text) + ADDR(.text) :
+ {
+ *(.data)
+ }
+ .bss SIZEOF(.data) + ADDR(.data) :
+ {
+ *(.bss)
+ [COMMON]
+ }
+}