summaryrefslogtreecommitdiff
path: root/ld_script_modern.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ld_script_modern.txt')
-rw-r--r--ld_script_modern.txt23
1 files changed, 9 insertions, 14 deletions
diff --git a/ld_script_modern.txt b/ld_script_modern.txt
index b69ada864..59d032bb2 100644
--- a/ld_script_modern.txt
+++ b/ld_script_modern.txt
@@ -27,6 +27,8 @@ SECTIONS {
/* .bss starts at 0x3000000 */
src/*.o(.bss);
gflib/*.o(.bss);
+ *libc.a:*.o(.bss*);
+ *libnosys.a:*.o(.bss*);
/* .bss.code starts at 0x3001AA8 */
src/m4a.o(.bss.code);
@@ -34,7 +36,8 @@ SECTIONS {
/* COMMON starts at 0x30022A8 */
src/*.o(COMMON);
gflib/*.o(COMMON);
- *libc.a:sbrkr.o(COMMON);
+ *libc.a:*.o(COMMON);
+ *libnosys.a:*.o(COMMON);
end = .;
. = 0x8000;
}
@@ -44,19 +47,10 @@ SECTIONS {
.text :
ALIGN(4)
{
- src/crt0.o(.text);
- src/*.o(.text);
- gflib/*.o(.text);
- asm/*.o(.text);
- } =0
-
- .text.unlikely :
- ALIGN(4)
- {
- src/crt0.o(.text.unlikely);
- src/*.o(.text.unlikely);
- gflib/*.o(.text.unlikely);
- asm/*.o(.text.unlikely);
+ src/crt0.o(.text*);
+ src/*.o(.text*);
+ gflib/*.o(.text*);
+ asm/*.o(.text*);
} =0
script_data :
@@ -82,6 +76,7 @@ SECTIONS {
*libagbsyscall.a:*.o(.text*);
*libgcc.a:*.o(.text*);
*libc.a:*.o(.text*);
+ *libnosys.a:*.o(.text*);
src/libisagbprn.o(.text);
} =0