This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
can we pad some section with some value
- From: loody <miloody at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 21 Jan 2010 16:39:51 +0800
- Subject: 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