linker script hack - can it be made to work ?
jim.cromie at gmail.com
jim.cromie at gmail.com
Thu Jan 14 16:47:34 EST 2021
Im attempting to conditionally link an input section.
if the just linked similarly named section wasnt empty.
__start___dyndbg = .; \
_ = .; \ \
KEEP(*(__dyndbg (.-_)? gnu.linkonce.d.__dyndbg)) \
__stop___dyndbg = .;
it gives me an unspecified linker syntax error
ld:./arch/x86/kernel/vmlinux.lds:46: syntax error
its pretty clear that this experiment is failing,
is there another way to do this ?
More information about the Kernelnewbies
mailing list