aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-07-26 21:01:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-07-26 21:01:15 +0000
commit38ce5b119123653044ec30f4e7a770cd806fcd09 (patch)
tree8fc357be0e04989ab375f2f69012b4adc2f0ecb2 /gas
parent7ac4ac061926872510858e0ff8e37673b5de28d5 (diff)
downloadgdb-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')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-ia64.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index cd6a533..70bf40c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2004-07-26 Dmitry Diky <diwil@spec.ru>
* config/tc-msp430.c: Add new subtargets: msp430x1610,
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);
}