Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot move location counter backwards error happen #16307

Closed
wentongwu opened this issue May 22, 2019 · 0 comments
Closed

cannot move location counter backwards error happen #16307

wentongwu opened this issue May 22, 2019 · 0 comments
Assignees
Labels
area: Linker Scripts bug The issue is a bug, or the PR is fixing a bug

Comments

@wentongwu
Copy link
Contributor

when kobject text area is greater than CONFIG_KOBJECT_TEXT_AREA, there will be "linker_pass_final.cmd:1130 cannot move location counter backwards (from 0000000060014bf8 to 0000000060014bd6) collect2: error: ld returned 1 exit status" error happen. Zephyr should prompt CONFIG_KOBJECT_TEXT_AREA should be larger instead of backwards location counter.

@wentongwu wentongwu added bug The issue is a bug, or the PR is fixing a bug backport v1.14-branch area: Linker Scripts labels May 22, 2019
@wentongwu wentongwu self-assigned this May 22, 2019
wentongwu added a commit to wentongwu/zephyr that referenced this issue May 22, 2019
when kobject text area is greater than CONFIG_KOBJECT_TEXT_AREA,
there will be location counter backwards, change it to assert to
prompt configuring CONFIG_KOBJECT_TEXT_AREA larger.

Fixes: zephyrproject-rtos#16307.

Signed-off-by: Wentong Wu <[email protected]>
@nashif nashif closed this as completed in cd92af1 May 23, 2019
wentongwu added a commit to wentongwu/zephyr that referenced this issue May 23, 2019
when kobject text area is greater than CONFIG_KOBJECT_TEXT_AREA,
there will be location counter backwards, change it to assert to
prompt configuring CONFIG_KOBJECT_TEXT_AREA larger.

Fixes: zephyrproject-rtos#16307.

Signed-off-by: Wentong Wu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Linker Scripts bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant