public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld -z options
@ 2011-07-13 18:20 Alan Modra
  2011-07-14  0:36 ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Modra @ 2011-07-13 18:20 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

I found today that none of the ld -z options are available on ELF
targets that lack shared lib support (unless the target happens to
provide some target specific options, which is weird).  This patch
rearranges the option support code in elf32.em to make a few useful
options generally available, and moves a couple of x86/x86_64 options
out of the general set.  I'll commit this after running tests
overnight.

	* emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
	gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
	Provide --build-id, -z defs, -z muldefs, -z max-page-size,
	-z common-page-size, -z execstack, -z noexecstack for all targets.
	Add help for --exclude-libs.
	(OPTION_LD_GENERATED_UNWIND_INFO,
	OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
	(gld${EMULATION_NAME}_handle_option): ..and code handling
	--ld-generated-unwind-info and --no-ld-generated-unwind-info..
	* emultempl/plt_unwind.em: ..to here.  New file.  Add help.
	* emulparams/elf_i386.sh (EXTRA_EM_FILE): Define.
	* emulparams/elf_x86_64.sh (EXTRA_EM_FILE): Define.

I'd normally put the patch inline but sourceware.org just rejected the
patch as spam, so trying compressed.

-- 
Alan Modra
Australia Development Lab, IBM

[-- Attachment #2: elf32.diff.gz --]
[-- Type: application/octet-stream, Size: 4082 bytes --]

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

end of thread, other threads:[~2011-07-14 14:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 18:20 ld -z options Alan Modra
2011-07-14  0:36 ` Ian Lance Taylor
2011-07-14  3:29   ` Alan Modra
2011-07-14  8:06     ` Hans-Peter Nilsson
2011-07-14 11:14       ` Hans-Peter Nilsson
2011-07-14 12:41         ` Alan Modra
2011-07-14 17:16           ` H.J. Lu
2011-07-14 11:38       ` Alan Modra

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).