summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-03-07 17:24:30 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-03-07 17:24:30 -0500
commit2bba2ce1a1ab20d9c7a1ac8826929cf67da5659e (patch)
tree95af2f82aab952dd377db92674a97179db97e8f5
parent1dc12890d1cda9dea0a20e952dbb9a5e1dc7b1ff (diff)
Link .text.unlikely for modern
-rw-r--r--ld_script_modern.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld_script_modern.txt b/ld_script_modern.txt
index d12d99456..b69ada864 100644
--- a/ld_script_modern.txt
+++ b/ld_script_modern.txt
@@ -50,6 +50,15 @@ SECTIONS {
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);
+ } =0
+
script_data :
ALIGN(4)
{