------- Additional Comments From amodra at bigpond dot net dot au 2005-06-09 23:58 ------- I disagree. An assignment to "dot" inside an output section statement that moves "dot" has made the section non-empty. There is no fundamental difference between an assignment to "dot" with ALIGN on the rhs and other assignments to "dot".
If you want to align a section, use .text2 ALIGN(4096) : { *(.text2) } This will be removed, and following sections not affected by the alignment, if all the .text2 input sections are empty. Aligning both the start and end of a section also allows the section to be removed: .text2 ALIGN (4096) : { *(.text2) . = ALIGN (4096); } Aligning only the end of a section is a little tricky, but can be accomplished with: .text3 : { *(.text3) . = ALIGN (. != 0 ? 4096 : 1); } This also will allow the section to be removed if no non-zero sized .text3 input sections are linked. -- http://sources.redhat.com/bugzilla/show_bug.cgi?id=797 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils