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 commit] PR gold/18010: Fix bug when optimizing string pools of aligned strings


Tail optimization of string pools (enabled when linker is run with -O2
or greater) should not be done when the section alignment is greater
than the size of the characters in the strings; otherwise, unaligned
strings may result.

I've committed this patch to disable tail optimization when the
alignment is larger than the character size.

-cary


gold/
        PR gold/18010
        * stringpool.cc (Stringpool_template): Don't optimize if section
        alignment is greater than sizeof(char).

Attachment: merge-aligned.patch
Description: Binary data


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