Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
518a15d2
Commit
518a15d2
authored
Feb 27, 2019
by
PoroCYon
Committed by
PoroCYon
Feb 27, 2019
Browse files
make the linker survive -ffunction-sections -fdata-sections -Wl,--gc-sections
parent
0993ec8d
Changes
1
Show whitespace changes
Inline
Side-by-side
ld/link.ld
View file @
518a15d2
...
...
@@ -4,13 +4,13 @@ SECTIONS {
. = 0x400000;
_smol_origin = .;
.header : { *(.header) }
.header : {
KEEP(
*(.header)
)
}
_smol_text_start = .;
_smol_text_off = _smol_text_start - _smol_origin;
.text : {
*(.text.startup.smol)
*(.text.startup._start)
KEEP(
*(.text.startup.smol)
)
KEEP(
*(.text.startup._start)
)
*(.text .text.* .rdata .rdata.* .rodata .rodata.*)
}
_smol_text_end = .;
...
...
@@ -21,7 +21,7 @@ SECTIONS {
_smol_data_start = .;
_smol_data_off = _smol_data_start - _smol_origin;
.data : {
*(.data.smolgot)
KEEP(
*(.data.smolgot)
)
*(.data .data.* .tdata .tdata.*)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment