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]

can we pad some section with some value


Dear all:
we can use fill the section content with any value by filling the
fillexp value below.

section [address] [(type)] :
[AT(lma)] [ALIGN(section_align)] [SUBALIGN(subsection_align)]
{
output-section-command
output-section-command
...
} [>region] [AT>lma_region] [:phdr :phdr ...] [=fillexp]

What can I ask linker to help me, if I need the whole binary padding
to a fix length?
ex:
   suppose my binary is 11k. But I want the linker to pad the end of
binary and make the whole size of final output file  to be 16k, like
what alignment does.
is there any command I can use?
appreciate your help,
miloody


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