Anthony Cole created a merge request: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/102

Project:Branches: Tony/rtems-tools:rtems-syms-weak-undefined to 
rtems/tools/rtems-tools:main
Author: Anthony Cole

## Summary

linkers/syms: Ignore weak undefined symbols

output_sym meant to skip weak symbols without a value, the unresolved
externs of the kernel, but every output_sym was constructed with weak
set to false, so none were skipped.  A weak undefined symbol was written
to the symbol table, whose reference made it strong, and the kernel
failed to link; for example with a newlib that refers to __libc_fini
weakly and doesn't define it.

Skip a symbol if it is weak and undefined, and remove the weak member.

Closes #48

Assisted-by: Claude:claude-opus-5-5 claude-code
Signed-off-by: Anthony Cole <[email protected]>


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise 
leave this blank see our fulls statement at 
https://www.rtems.org/generative-ai/-->


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/102
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/13/sent_notifications/6-awsip66julhtva3ms07jxz2r7-d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to