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]

Re: linker behaviour for sections having flags SHF_MERGE/SHF_STRINGS


>> $gold merge_test.o
>> $ readelf -p 2 a.out
>>
>> String dump of section '.rodata':
>>   [     0]  abc
>>   [     4]  c
>>
>> Question :-
>> Why is the difference ?
>
> Possibly a gold bug.

Try running gold with the -O2 option. By default, gold won't do the
trailing substring optimization.

-cary


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