From: Alan Modra Date: Wed, 19 Oct 2011 04:13:27 +0000 (+0000) Subject: PR ld/13254 X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~113 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=ba52f4444b050e7375f956cf767244f93c35909f;p=newlib-cygwin.git 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. --- diff --git a/include/ChangeLog b/include/ChangeLog index e2d1be1ee..b5d2d72d2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2011-10-19 Alan Modra + + PR ld/13254 + * bfdlink.h (struct bfd_link_info): Add error_textrel. + 2011-09-28 Doug Evans * timeval-utils.h: New file. diff --git a/include/bfdlink.h b/include/bfdlink.h index c9e127c5c..be853295a 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -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;