aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-10-19 02:10:41 +0000
committerAlan Modra <amodra@gmail.com>2006-10-19 02:10:41 +0000
commit2f4754876fee13c0bed40782e439e1a589f5caae (patch)
tree2936eaa9342587896fd32583e3da6c70d8d5acbf /ld/ldlang.c
parent0532541186c1b120fc0b4c4993c097fc3d136823 (diff)
downloadgdb-2f4754876fee13c0bed40782e439e1a589f5caae.zip
gdb-2f4754876fee13c0bed40782e439e1a589f5caae.tar.gz
gdb-2f4754876fee13c0bed40782e439e1a589f5caae.tar.bz2
bfd/
* elf32-arm.c (bfd_elf32_arm_allocate_interworking_sect): Check, don't set, glue section size. (record_arm_to_thumb_glue): Set glue section size here. (record_thumb_to_arm_glue): Likewise. (bfd_elf32_arm_add_glue_sections_to_bfd): Formatting. (bfd_elf32_arm_process_before_allocation): Ignore exluded sections. ld/ * emultempl/armelf.em (arm_elf_before_allocation): Run gld${EMULATION_NAME}_before_allocation later. * ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index d9b8ac9..2c9426e 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4368,18 +4368,12 @@ lang_size_sections_1
os->processed_vma = TRUE;
if (bfd_is_abs_section (os->bfd_section) || os->ignored)
- {
- if (os->bfd_section->size > 0)
- {
- /* PR ld/3107: Do not abort when a buggy linker script
- causes a non-empty section to be discarded. */
- if (bfd_is_abs_section (os->bfd_section))
- einfo (_("%P%X: internal error: attempting to take the size of the non-section *ABS*\n"));
- else
- einfo (_("%P: warning: discarding non-empty, well known section %A\n"),
- os->bfd_section);
- }
- }
+ /* Except for some special linker created sections,
+ no output section should change from zero size
+ after strip_excluded_output_sections. A non-zero
+ size on an ignored section indicates that some
+ input section was not sized early enough. */
+ ASSERT (os->bfd_section->size == 0);
else
{
dot = os->bfd_section->vma;