PR ld/13254

include/
	* bfdlink.h (struct bfd_link_info): Add error_textrel.
bfd/
	* elflink.c (bfd_elf_final_link): Emit error_textrel error.
ld/
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
	-z text, -z notext, -z textoff options for all targets having
	shared lib support.
This commit is contained in:
Alan Modra 2011-10-19 04:13:27 +00:00
parent d6f6573a5f
commit ba52f4444b
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-10-19 Alan Modra <amodra@gmail.com>
PR ld/13254
* bfdlink.h (struct bfd_link_info): Add error_textrel.
2011-09-28 Doug Evans <dje@google.com>
* timeval-utils.h: New file.

View File

@ -337,6 +337,9 @@ struct bfd_link_info
/* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */
unsigned int warn_shared_textrel: 1;
/* TRUE if we should error when adding a DT_TEXTREL. */
unsigned int error_textrel: 1;
/* TRUE if .hash section should be created. */
unsigned int emit_hash: 1;