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

No error when segmap is not found #194

Open
ryandesign opened this issue Oct 26, 2022 · 1 comment
Open

No error when segmap is not found #194

ryandesign opened this issue Oct 26, 2022 · 1 comment

Comments

@ryandesign
Copy link
Contributor

If I specify a custom segment map, but the file is not found, no error is issued. Instead, the app is built with just two segments, Runtime and Main, rather than the normal default set of segments. Perhaps an error should be issued when the specified segment map can't be found so the user knows they made a mistake.

One possible source of confusion is that the given path apparently must be absolute. For example, this does not work:

set_target_properties(app PROPERTIES
    LINK_FLAGS "-Wl,--mac-segments,my.segmap"
)

whereas this does work:

set_target_properties(app PROPERTIES
    LINK_FLAGS "-Wl,--mac-segments,${CMAKE_CURRENT_SOURCE_DIR}/my.segmap"
)
@ryandesign
Copy link
Contributor Author

the given path apparently must be absolute

at least when using an out-of-source build, which I was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant