aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-07-26 01:06:27 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-07-26 01:06:27 +0000
commit3cddba1e54cbf32f53bebe904341dca542fb2a8c (patch)
treec3f77ca505740ad1d9f754ef69fc0cc78292cb6d /gas
parenta5de4c570e1b4df0598b2711f611ee28a8d6888b (diff)
downloadgdb-3cddba1e54cbf32f53bebe904341dca542fb2a8c.zip
gdb-3cddba1e54cbf32f53bebe904341dca542fb2a8c.tar.gz
gdb-3cddba1e54cbf32f53bebe904341dca542fb2a8c.tar.bz2
bfd/
2003-07-25 H.J. Lu <hongjiu.lu@intel.com> * elf.c (_bfd_elf_new_section_hook): Set the default section type to SHT_NULL. (elf_fake_sections): Set the section type based on asect->flags if it is SHT_NULL. Don't abort on processor specific section types. gas/ 2003-07-25 H.J. Lu <hongjiu.lu@intel.com> * config/obj-elf.c (obj_elf_change_section): Update elf_section_type and elf_section_flags only when they are specified.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/obj-elf.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c46be5d..fe42106 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
+ * config/obj-elf.c (obj_elf_change_section): Update
+ elf_section_type and elf_section_flags only when they are
+ specified.
+
+2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
+
* config/obj-elf.c (obj_elf_change_section): Always set section
type and flags.
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index a8ba588..8687965 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -683,8 +683,10 @@ obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push)
attr |= def_attr;
}
- elf_section_type (sec) = type;
- elf_section_flags (sec) = attr;
+ if (type != SHT_NULL)
+ elf_section_type (sec) = type;
+ if (attr != 0)
+ elf_section_flags (sec) = attr;
/* Convert ELF type and flags to BFD flags. */
flags = (SEC_RELOC