This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Why does elf32.em check DT_BIND_NOW?
- From: "H.J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: jakub at redhat dot com
- Date: Sun, 16 Sep 2007 10:17:12 -0700
- Subject: Why does elf32.em check DT_BIND_NOW?
Hi Jakub,
elf32.em sets the DF_BIND_NOW bit in link_info.flags for -z now.
But elf32.em checks the DT_BIND_NOW bit in link_info.flags. I don't
quite understand how it works. I have 2 questions:
1. Should elf32.em check the DF_BIND_NOW bit link_info.flags
instead?
2. Why do we need a different linker script for -z now?
As I understand, -z now should just add the DF_BIND_NOW entry
and no special linker script is needed.
I am planning to clean up the ELF linker scripts by
1. Remove the special linker script for -z now.
2. For PIE, DSO and executable, generate linker scripts for
any combinations of -z relro and -z combreloc.
Do you see any problems?
Thanks.
H.J.