aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-12-08 01:34:13 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-12-08 01:34:13 +0000
commite424ecc89d5c60395ac795dc5dd8f482dee51d5d (patch)
tree1a8c48f28d87b2ed8c401b80c4743d3b96162bfe /bfd
parent8d4989491334f0b8fe290c618456f06a850ad417 (diff)
downloadgdb-e424ecc89d5c60395ac795dc5dd8f482dee51d5d.zip
gdb-e424ecc89d5c60395ac795dc5dd8f482dee51d5d.tar.gz
gdb-e424ecc89d5c60395ac795dc5dd8f482dee51d5d.tar.bz2
2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (assign_section_numbers): Remove extra code in the last change.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3051cdc..f76458a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,4 +1,9 @@
2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf.c (assign_section_numbers): Remove extra code in the last
+ change.
+
+2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
Andreas Schwab <schwab@suse.de>
PR binutils/1991
diff --git a/bfd/elf.c b/bfd/elf.c
index 644ac6d..58a9059 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3074,10 +3074,7 @@ assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
}
s = kept;
}
- }
- if (link_info != NULL)
- {
- /* Handle linker. */
+
s = s->output_section;
BFD_ASSERT (s != NULL);
}