Jakub Jelinek
e3b09df6ef
PR ld/12570
include/
* bfdlink.h (struct bfd_link_info): Add no_ld_generated_unwind_info
option.
ld/
* emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
(gld${EMULATION_NAME}_handle_option): Handle
--ld-generated-unwind-info and --no-ld-generated-unwind-info.
* ld.texinfo (--ld-generated-unwind-info,
--no-ld-generated-unwind-info): Document.
bfd/
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
at all for linker created .eh_frame sections.
(_bfd_elf_discard_section_eh_frame): Handle linker created
.eh_frame sections with no relocations.
* elf64-x86-64.c: Include dwarf2.h.
(elf_x86_64_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
(elf_x86_64_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_x86_64_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_x86_64_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section. Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
* elf32-i386.c: Include dwarf2.h.
(elf_i386_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_i386_link_hash_table): Add plt_eh_frame field.
(elf_i386_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_i386_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_i386_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section. Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
ld/testsuite/
* ld-x86-64/x86-64.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-x86-64/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlsdesc.sd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsbindesc.sd: Likewise.
* ld-x86-64/tlsbin.td: Likewise.
* ld-x86-64/tlsdesc.pd: Likewise.
* ld-x86-64/tlsdesc.td: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.sd: Likewise.
* ld-x86-64/tlsbindesc.td: Likewise.
* ld-x86-64/tlspic.td: Likewise.
* ld-x86-64/tlsbin.sd: Likewise.
* ld-x86-64/ilp32-4.d: Likewise.
* ld-x86-64/tlsgdesc.dd: Add --no-ld-generated-unwind-info to ld
comment. Adjust.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgd6.dd: Adjust.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-i386/i386.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-i386/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment..
* ld-i386/tlsdesc.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-i386/tlsdesc.sd: Likewise.
* ld-i386/tlsgdesc.dd: Likewise.
* ld-i386/tlsnopic.sd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsbindesc.sd: Likewise.
* ld-i386/tlsbin.td: Likewise.
* ld-i386/tlsdesc.td: Likewise.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlsbindesc.dd: Likewise.
* ld-i386/tlsbin.dd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlspic.sd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlsbindesc.td: Likewise.
* ld-i386/tlspic.td: Likewise.
* ld-i386/tlsbin.sd: Likewise.
2011-06-20 13:18:48 +00:00
..
2010-04-15 10:26:09 +00:00
2010-01-06 05:25:24 +00:00
2011-06-02 13:43:23 +00:00
2011-06-15 16:36:58 +00:00
2011-04-15 16:23:19 +00:00
2010-04-15 10:26:09 +00:00
2011-06-18 19:42:55 +00:00
2010-06-10 08:31:20 +00:00
2010-05-27 10:37:23 +00:00
2009-11-18 11:57:44 +00:00
2011-04-25 18:28:53 +00:00
2011-06-20 13:18:48 +00:00
2008-08-25 04:36:03 +00:00
2010-04-15 10:26:09 +00:00
2011-06-20 13:18:48 +00:00
2009-08-16 12:06:21 +00:00
2005-05-10 10:21:13 +00:00
2007-07-17 13:50:23 +00:00
2011-06-13 23:01:42 +00:00
2011-06-13 15:18:54 +00:00
2011-04-30 11:01:35 +00:00
2009-06-01 19:40:32 +00:00
2009-06-01 19:40:32 +00:00
2011-02-28 18:30:14 +00:00
2011-01-03 21:05:50 +00:00
2005-05-10 10:21:13 +00:00
1999-05-03 07:29:06 +00:00
1999-05-03 07:29:06 +00:00
2009-05-25 13:04:40 +00:00
2005-05-10 10:21:13 +00:00
2005-05-10 10:21:13 +00:00
2010-06-10 18:30:17 +00:00
2010-04-15 10:26:09 +00:00
2005-05-10 10:21:13 +00:00
2011-01-03 21:05:50 +00:00
2009-10-07 02:57:27 +00:00
2000-07-05 19:28:05 +00:00
2008-03-25 00:21:18 +00:00
2010-04-15 10:26:09 +00:00
2005-05-10 10:21:13 +00:00
2008-10-20 23:03:31 +00:00
2005-05-10 10:21:13 +00:00
2005-05-10 10:21:13 +00:00
2011-03-23 14:09:48 +00:00
2010-04-15 10:26:09 +00:00
2008-07-07 17:09:31 +00:00
2010-04-15 10:26:09 +00:00
2010-11-17 02:03:39 +00:00
2005-05-10 10:21:13 +00:00
2010-06-10 18:30:17 +00:00
2010-03-23 15:58:51 +00:00
2005-07-12 10:34:51 +00:00
2001-08-02 23:27:47 +00:00
2011-01-03 21:05:50 +00:00
2010-04-15 10:26:09 +00:00
2010-04-15 10:26:09 +00:00