From: jim.cromie@gmail.com
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: linker script hack - can it be made to work ?
Date: Thu, 14 Jan 2021 14:47:34 -0700 [thread overview]
Message-ID: <CAJfuBxxcb5yiBUgocrMu=8ZjxW=wQnEpmUOhYOZLNNzRj2G4pw@mail.gmail.com> (raw)
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
reply other threads:[~2021-01-14 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJfuBxxcb5yiBUgocrMu=8ZjxW=wQnEpmUOhYOZLNNzRj2G4pw@mail.gmail.com' \
--to=jim.cromie@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).