bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18935] Gold assert fail when moving dot in NOLOAD section.


From: johan.karlsson at enea dot com
Subject: [Bug gold/18935] Gold assert fail when moving dot in NOLOAD section.
Date: Wed, 09 Sep 2015 15:17:32 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18935

--- Comment #1 from Johan Karlsson <johan.karlsson at enea dot com> ---
This is not a regression from PR18847.

Seems a bit unclear what the expected behavior is.

 .init_stack (NOLOAD) :
 {
   . = . + 0x200;
 } :ph_load
With this ld.bfd creates a NOBITS SHF_ALLOC section(just like .bss).

When a new non-SHF_ALLOC output section is created the address is set to 0.
Layout::make_output_section_for_script(), which is the function that creates
the init_stack section, only tries to create sections with SHT_PROGBITS
section. This is why the assert fails when
Output_section_definition::set_section_addresses() tries to assign an address
to the section.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]