Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

don't over-constrain the .data section #63

Merged
merged 1 commit into from
Apr 6, 2018
Merged

don't over-constrain the .data section #63

merged 1 commit into from
Apr 6, 2018

Conversation

japaric
Copy link
Member

@japaric japaric commented Apr 6, 2018

we were forcing the .data section to start at _ebss (end of the .bss section) but this was causing
linking errors in some cases:

error: linking with `arm-none-eabi-ld` failed: exit code: 1
(..)
note: arm-none-eabi-ld: section .data VMA [20000008,2000006f] overlaps section .bss VMA [20000000,2000000b]

removing this constraint fixes the problem. Even without it the linker will place the .data section
right after the .bss section

we were forcing the .data section to start at _ebss (end of the .bss section) but this was causing
linking errors in some cases:

``` console
error: linking with `arm-none-eabi-ld` failed: exit code: 1
(..)
note: arm-none-eabi-ld: section .data VMA [20000008,2000006f] overlaps section .bss VMA [20000000,2000000b]
```

removing this constraint fixes the problem. Even without it the linker will place the .data section
right after the .bss section
@japaric japaric merged commit 40cd3ba into master Apr 6, 2018
@japaric japaric deleted the no-overlap branch April 6, 2018 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant