summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Panzlaff <michael.panzlaff@fau.de>2021-05-05 00:49:42 +0200
committerMichael Panzlaff <michael.panzlaff@fau.de>2021-05-05 00:49:42 +0200
commit783a167b76bef461f47d425ecc11c0b9fda30c77 (patch)
treea03f32092edb7d67c089ef67f9887bc520fc887c
parent2859fa60cb6fd863f9c2bf5b9219ff2045a7d229 (diff)
ld_script_modern: minor fixes for gcc 11
-rw-r--r--ld_script_modern.txt21
1 files changed, 6 insertions, 15 deletions
diff --git a/ld_script_modern.txt b/ld_script_modern.txt
index 6f8d38453..59d032bb2 100644
--- a/ld_script_modern.txt
+++ b/ld_script_modern.txt
@@ -27,8 +27,8 @@ SECTIONS {
/* .bss starts at 0x3000000 */
src/*.o(.bss);
gflib/*.o(.bss);
- *libc.a:*.o(.bss);
- *libnosys.a:*.o(.bss);
+ *libc.a:*.o(.bss*);
+ *libnosys.a:*.o(.bss*);
/* .bss.code starts at 0x3001AA8 */
src/m4a.o(.bss.code);
@@ -47,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 :