linker behaviour for sections having flags SHF_MERGE/SHF_STRINGS

Ian Lance Taylor iant@google.com
Mon Nov 12 15:11:00 GMT 2012


On Mon, Nov 12, 2012 at 6:43 AM, Shankar Kalpathi Easwaran
<shankarke@gmail.com> wrote:
>
> I dont know how critical are the linker and the gold bugs, think they are
> not so critical.

I think the only gold bug is a slightly misleading error message.
Definitely not critical.

> 1) How is sh_entsize relevant when the section flags have SHF_STRINGS set ?

sh_entsize tells the linker the size of a character in a string.  This
permits the linker to correctly handle strings represented in, e.g.,
UTF-16 or UCS-2.

Ian



More information about the Binutils mailing list