kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* linker script hack - can it be made to work ?
@ 2021-01-14 21:47 jim.cromie
  0 siblings, 0 replies; only message in thread
From: jim.cromie @ 2021-01-14 21:47 UTC (permalink / raw)
  To: kernelnewbies

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 ?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-14 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 21:47 linker script hack - can it be made to work ? jim.cromie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).