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

bug report: symbols in linker script to denote addresses result in warnings about relocations #703

Closed
georglauterbach opened this issue Jun 18, 2023 · 0 comments

Comments

@georglauterbach
Copy link

During linking of a binary with a custom linker script that includes symbols to denote the current address (via some_symbol = .;), the following issue can be observed:

ld.lld: warning: could not determine size of cap reloc against <unknown kind> (in GOT) some_symbol
>>> defined in <internal>
>>> referenced by <internal>:(.got+0x[SOME OFFSET])

some_symbol is also a symbol in C declared as extern char some_symbol[];.


ref: https://cheri-cpu.slack.com/archives/C03JCGFPPU1/p1686852560725089 & https://cheri-cpu.slack.com/archives/C03JCGFPPU1/p1686920378781959

@georglauterbach georglauterbach closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
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