diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-07-26 21:01:15 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-07-26 21:01:15 +0000 |
commit | 38ce5b119123653044ec30f4e7a770cd806fcd09 (patch) | |
tree | 8fc357be0e04989ab375f2f69012b4adc2f0ecb2 /gas/config/tc-ia64.c | |
parent | 7ac4ac061926872510858e0ff8e37673b5de28d5 (diff) | |
download | gdb-38ce5b119123653044ec30f4e7a770cd806fcd09.zip gdb-38ce5b119123653044ec30f4e7a770cd806fcd09.tar.gz gdb-38ce5b119123653044ec30f4e7a770cd806fcd09.tar.bz2 |
bfd/
2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (bfd_elf_section_data): Add a pointer for the
linked-to section.
(elf_linked_to_section): New.
* elf.c (assign_section_numbers): Set up sh_link for
SHF_LINK_ORDER.
* elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
to sh_link for SHT_IA_64_UNWIND sections.
gas/
2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ia64.c (start_unwind_section): Set the linked-to
section.
(ia64_elf_section_change_hook): Set the linked-to section for
SHT_IA_64_UNWIND.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r-- | gas/config/tc-ia64.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 13cf19d..b48557d 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -3403,6 +3403,8 @@ start_unwind_section (const segT text_seg, int sec_index) bfd_set_section_flags (stdoutput, now_seg, SEC_LOAD | SEC_ALLOC | SEC_READONLY); } + + elf_linked_to_section (now_seg) = text_seg; } static void @@ -11022,6 +11024,9 @@ ia64_float_to_chars_littleendian (char *lit, LITTLENUM_TYPE *words, void ia64_elf_section_change_hook (void) { + if (elf_section_type (now_seg) == SHT_IA_64_UNWIND + && elf_linked_to_section (now_seg) == NULL) + elf_linked_to_section (now_seg) = text_section; dot_byteorder (-1); } |