diff options
| author | ruki <[email protected]> | 2022-02-08 00:39:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-08 00:39:10 +0800 |
| commit | f141767f666d1b29c3e6c00c00c6813b26baf48e (patch) | |
| tree | 3303b1b6eeec78e416d621d43786068e2529e380 | |
| parent | e9e6b38bf57dc0694a3e3f9aae50567554b4e96c (diff) | |
add a valid lds
| -rw-r--r-- | tests/projects/c/linker_scripts/src/main.lds | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/projects/c/linker_scripts/src/main.lds b/tests/projects/c/linker_scripts/src/main.lds index dac76f4f1..888c10be1 100644 --- a/tests/projects/c/linker_scripts/src/main.lds +++ b/tests/projects/c/linker_scripts/src/main.lds @@ -1 +1,15 @@ -SEARCH_DIR(.) +SECTIONS +{ + . = 0x10000; + .text : { *(.text) } + .init_array : + { + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array*)) + PROVIDE_HIDDEN (__init_array_end = .); + } + . = 0x8000000; + .data : { *(.data) } + .bss : { *(.bss) } +} |
