[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/5006] ld --gc-sections erroneously discards a section
From: |
amodra at bigpond dot net dot au |
Subject: |
[Bug ld/5006] ld --gc-sections erroneously discards a section |
Date: |
8 Sep 2007 03:02:24 -0000 |
------- Additional Comments From amodra at bigpond dot net dot au 2007-09-08
03:02 -------
Alignment padding should not be written for .bss, but it is because the output
.bss has SEC_HAS_CONTENTS set. See ldwite.c:build_link_order <case
lang_padding_statement_enum>. SEC_HAS_CONTENTS is set because
arch_x86_64_kernel_built-in.o .bss_page_aligned is SHT_PROGBITS. This is wrong.
A bss style section should be SHT_NOBITS. However, linking a SHT_PROGBITS
section into .bss should simply make .bss SHT_PROGBITS. It doesn't, because
.bss has its ELF section type set via bfd_elf_special_section to SHT_NOBITS too
early.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5006
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/5006] New: ld --gc-sections erroneously discards a section, vda dot linux at googlemail dot com, 2007/09/07
- [Bug ld/5006] ld --gc-sections erroneously discards a section, amodra at bigpond dot net dot au, 2007/09/07
- [Bug ld/5006] ld --gc-sections erroneously discards a section, amodra at bigpond dot net dot au, 2007/09/07
- [Bug ld/5006] ld --gc-sections erroneously discards a section, amodra at bigpond dot net dot au, 2007/09/07
- [Bug ld/5006] ld --gc-sections erroneously discards a section,
amodra at bigpond dot net dot au <=
- [Bug ld/5006] Alignment padding for bss overwrites random file locations, amodra at bigpond dot net dot au, 2007/09/08
- [Bug ld/5006] Alignment padding for bss overwrites random file locations, vda dot linux at googlemail dot com, 2007/09/08