Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Aug 9, 2023

It appears that GNU ld is unable to parse some expressions without appropriate spacing around the identifiers.

Pull Request Overview

This pull request fixes linker scripts to work with GNU ld. It seems that GNU ld chokes on expressions without spacing around the symbol names:

  • Breaks: _etext-_stext -> undefined symbol `_etext-_stext' referenced in expression
  • Works: _etext - _stext.

Testing Strategy

This pull request was tested by building the codebase.

TODO or Help Wanted

I think I found all of the expressions without spaces. Please check if I've missed any.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

It appears that GNU ld is unable to parse some expressions without
appropriate spacing around the identifiers.

Signed-off-by: Chris Frantz <[email protected]>
Copy link
Contributor

@bradjc bradjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update #3588 too. Unfortunately nothing will really catch a regression here.

@ppannuto ppannuto added the P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. label Aug 9, 2023
@ppannuto ppannuto enabled auto-merge August 9, 2023 22:05
@ppannuto ppannuto added this pull request to the merge queue Aug 9, 2023
Merged via the queue into tock:master with commit 0f5fec2 Aug 9, 2023
@brghena brghena mentioned this pull request Aug 11, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants