This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] Start sections at 0 for relocatable links


If an Output_section_definition immediately follows an orphaned
section of non-zero size in the layout order, that section is assigned
a starting address based on the length of the last orphaned section.
This patch fixes this by resetting dot_value to 0 after each orphaned
section.

Tested on x86_64. OK to apply?

-cary

gold/
    * script-sections.cc (Orphan_output_section): Reset address
    to zero after each orphaned section for relocatable links.

Attachment: gold-dot-dashr-patch-2.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]