diff options
author | Nick Clifton <nickc@redhat.com> | 2012-08-07 13:47:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-08-07 13:47:13 +0000 |
commit | 9eae5acd8cbf611e3f2fe496d241d224fd462ecd (patch) | |
tree | da00dd76c29eda814ba4a4dd9c27cb7f2a3d568d /ld | |
parent | b6207acb286413d8b1c54d4c6ab6912fe4ac6ac9 (diff) | |
download | binutils-redhat-9eae5acd8cbf611e3f2fe496d241d224fd462ecd.tar.gz |
* config/tc-i386.c (lex_got): Provide implementation for PE
format.
* gas/i386/secrel.s: Add test of <symbol>@SECREL32.
* gas/i386/secrel.d: Add expected disassembly.
* scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
* scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ.
* archive.c (_bfd_delete_archive_data): New function.
* libbfd-in.h (_bfd_delete_archive_data): Declare.
* libbfd.h: Rebuild.
* opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/scripttempl/pe.sc | 8 | ||||
-rw-r--r-- | ld/scripttempl/pep.sc | 8 |
3 files changed, 19 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index cd2402bf19..c4bc473d26 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2012-08-07 Daniel Green <venix1@gmail.com> + + * scripttempl/pe.sc (R_TLS): Add .tls$AAA and .tls$ZZZ. + * scripttempl/pep.sc (R_TLS): Add .tls$AAA and .tls$ZZZ. + 2012-08-07 Nick Clifton <nickc@redhat.com> * po/ja.po: Updated Japanese translation. diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 3a27952fe1..5b9bd6147a 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -39,9 +39,11 @@ if test "${RELOCATING}"; then R_CRT_XP='*(SORT(.CRT$XP*)) /* Pre-termination */' R_CRT_XT='*(SORT(.CRT$XT*)) /* Termination */' R_TLS=' + *(.tls$AAA) *(.tls) *(.tls$) - *(SORT(.tls$*))' + *(SORT(.tls$*)) + *(.tls$ZZZ)' R_RSRC='*(SORT(.rsrc$*))' else R_TEXT= @@ -179,6 +181,10 @@ SECTIONS ${RELOCATING+___crt_xt_end__ = . ;} } + /* Windows TLS expects .tls\$AAA to be at the start and .tls\$ZZZ to be + at the end of section. This is important because _tls_start MUST + be at the beginning of the section to enable SECREL32 relocations with TLS + data. */ .tls ${RELOCATING+BLOCK(__section_alignment__)} : { ${RELOCATING+___tls_start__ = . ;} diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index b2113fe227..ff11153054 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -39,9 +39,11 @@ if test "${RELOCATING}"; then R_CRT_XP='*(SORT(.CRT$XP*)) /* Pre-termination */' R_CRT_XT='*(SORT(.CRT$XT*)) /* Termination */' R_TLS=' + *(.tls$AAA) *(.tls) *(.tls$) - *(SORT(.tls$*))' + *(SORT(.tls$*)) + *(.tls$ZZZ)' R_RSRC='*(SORT(.rsrc$*))' else R_TEXT= @@ -185,6 +187,10 @@ SECTIONS ${RELOCATING+___crt_xt_end__ = . ;} } + /* Windows TLS expects .tls\$AAA to be at the start and .tls\$ZZZ to be + at the end of the .tls section. This is important because _tls_start MUST + be at the beginning of the section to enable SECREL32 relocations with TLS + data. */ .tls ${RELOCATING+BLOCK(__section_alignment__)} : { ${RELOCATING+___tls_start__ = . ;} |