public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Omit output section from executable
@ 2006-08-02 20:43 Udo A. Steinberg
  2006-08-02 20:50 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Udo A. Steinberg @ 2006-08-02 20:43 UTC (permalink / raw)
  To: binutils


Hi all,

For an OS kernel I have put all CPU-local data in a specific ELF section named
".cpulocal". During bootstrap the kernel allocates a memory page for each CPU
and maps it to the VMA of the ".cpulocal" section.

I would like the linker to omit the (useless) contents of that section from the
executable while still maintaining references into the section. I can achieve
the desired effect by doing an objcopy -R .cpulocal after the final link.

Any way I could do the same with only a linker script and without the objcopy?

Thanks

	- Udo

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-03  1:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-02 20:43 Omit output section from executable Udo A. Steinberg
2006-08-02 20:50 ` Daniel Jacobowitz
2006-08-02 21:20   ` Udo A. Steinberg
2006-08-02 21:29     ` Daniel Jacobowitz
2006-08-03  0:44       ` Alan Modra
2006-08-03  1:02         ` Udo A. Steinberg

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 read-only IMAP folder(s) and NNTP newsgroup(s).