aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-10-15 20:36:12 +0000
committerDoug Evans <dje@google.com>2012-10-15 20:36:12 +0000
commita9a72a65528db6edd47387f800bc20b549ba71f5 (patch)
treeeecc7292689f5d1383c2c02c874ab1d18340bb7d
parent9e3a7d65fb3252364680128123209e93919aaf14 (diff)
downloadgdb-a9a72a65528db6edd47387f800bc20b549ba71f5.zip
gdb-a9a72a65528db6edd47387f800bc20b549ba71f5.tar.gz
gdb-a9a72a65528db6edd47387f800bc20b549ba71f5.tar.bz2
* elf.c (special_sections_d): Add comment.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 170dc98..57c7e17 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-15 Doug Evans <dje@google.com>
+
+ * elf.c (special_sections_d): Add comment.
+
2012-10-13 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@.
diff --git a/bfd/elf.c b/bfd/elf.c
index 059887b..f01480b 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2061,6 +2061,9 @@ static const struct bfd_elf_special_section special_sections_d[] =
{
{ STRING_COMMA_LEN (".data"), -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
{ STRING_COMMA_LEN (".data1"), 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
+ /* There are more DWARF sections than these, but they needn't be added here
+ unless you have to cope with broken compilers that don't emit section
+ attributes or you want to help the user writing assembler. */
{ STRING_COMMA_LEN (".debug"), 0, SHT_PROGBITS, 0 },
{ STRING_COMMA_LEN (".debug_line"), 0, SHT_PROGBITS, 0 },
{ STRING_COMMA_LEN (".debug_info"), 0, SHT_PROGBITS, 0 },