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: PHDR padding


On Wed, Jul 11, 2007 at 01:52:54PM +0200, Udo A. Steinberg wrote:
> Hi all,
> 
> What I'm looking for is a way to create a PHDR whose memsz is larger than
> filesz such that the bytes beyond filesz are 0-padded (similar to how .bss
> is handled). However, I do not have a .bss section and creating one just
> for the purpose of padding seems weird. The linker script is as follows:

I think it's the only way to do it, though.  All output must normally
belong to a section.  You may only need an output section; like
".pad : { . = ALIGN(4096); } : image" - but I haven't tried that.


-- 
Daniel Jacobowitz
CodeSourcery


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