-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Duplicate symbol problem in nuttx #12603
Comments
@lupyuen any idea? |
@acassis Sorry I'm not sure how we might fix this |
@lupyuen Is it possible to always enable "--whole-archive" for all library? As |
@xiaoxiang781216 and @tmedicci would you know about "--whole-archive" and |
It seems that only using |
--whole-archive will pack all library into one before linking. |
The man says it changes the symbol searching, not packing archive. |
When enabling
CONFIG_DEBUG_LINK_WHOLE_ARCHIVE
, building flat mode nuttx with qemu-rv core always failed.This is the log when building
flats64
I have added
weak_function
to the definition of the functionup_allocate_heap
in riscv_allocateheap.c, but it may selected wrong symbol without enablingCONFIG_DEBUG_LINK_WHOLE_ARCHIVE
. After googling, I found that ld only uses the first matched symbol in the archive (whether it is strong or weak). Is there any suggestion about how to fix this?The text was updated successfully, but these errors were encountered: