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: Enable 0x10 alignment for aarch64 symbols as is done for x86_64


Another more direct question is:
Where are code fill sections inserted? At what point are this->table_
elements put into the Output_section::Input_section object that has
access via "this->input_sections()"

There are no relo's in my code, i am linking statically also btw.
Sincerely,

Chris

On Thu, Apr 16, 2015 at 5:15 PM, K Jski <bielsk1@vt.edu> wrote:
> and if I have set has_code_fill in aarch64.cc to true already and am
> getting the same result?
>
> On Thu, Apr 16, 2015 at 5:12 PM, Cary Coutant <ccoutant@gmail.com> wrote:
>>> b) this filler section that has the perfect size to make the next real
>>> section/symbol be 0x10 aligned
>>>
>>> u2_.posd shndx:-1, addr:0x40047b  fileoffset:0x47b
>>> Output_data set_address_and_file_offset      addr:0x40047b  off:0x47b
>>> data_size:0x5 off:0x47b
>>> after update off:0x480
>>>
>>> where out_aarch64.txt does not have any of these extra padding sections
>>
>> These are code fill sections. The Target::Target_info structure for
>> x86_64 sets has_code_fill to true, so that any inserted padding within
>> a text section gets filled with NOPs. For aarch64, has_code_fill is
>> set to false, so there are no such sections.
>>
>> -cary


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