Skip to content

Commit 7dd036a

Browse files
committed
Place the IVR in the .text section
Tools like simavr only handle `.text`. This also makes the output from objdump a little more obvious.
1 parent c84d5b2 commit 7dd036a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

linker-script

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ MEMORY {
1212
}
1313

1414
SECTIONS {
15-
/* The interrupt vector routines *must* start at address 0x0000 */
16-
.ivr : {
15+
.text : {
1716
/*
17+
* The interrupt vector routines *must* start at address 0x0000
18+
*
1819
* Preserve every symbol in the Interrupt Vector Routines table to
1920
* prevent them from being garbage collected.
2021
*/
2122
KEEP(* (.ivr));
22-
} >text
2323

24-
/* The rest of our code */
25-
.text : {
24+
/* The rest of our code */
2625
* (.text* .progmem.data*);
2726
} >text
2827

0 commit comments

Comments
 (0)