[llvm-dev] LLD: question about debug_info relocs with emit-relocs + gc-sections.
45 views
Skip to first unread message
Alexander Yermolovich via llvm-dev
unread,
Oct 20, 2020, 8:25:39 PM10/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to llvm...@lists.llvm.org
Hello.
I have been looking in to what relocs are emitted when --emit-relcos and --gc-sections flags are set.
Seems like relocs sections for .debug_* are not emitted.
Looking into it the debug sections are marked live in MarkLive.cpp:MarkLive on first pass through all the inputSections, but their dependendSections are not marked as live.
It then goes to rest of the algorithm that handles some special sections, but mainly deals with sections based on defined symbols in symtab.
As the result when -gc-sections flag is set relocations for debug_* would not be in output. Is that intentional, or oversight?
Thank You
David Blaikie via llvm-dev
unread,
Oct 20, 2020, 8:35:51 PM10/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Alexander Yermolovich, Fangrui Song, llvm...@lists.llvm.org