How to set file alignment for some special sections?

Nick Clifton nickc@redhat.com
Tue Apr 1 10:51:00 GMT 2008


Hi PRC,

> How can I inform `ld' to put some specified section, like .shstrtab,
> to an aligned (like 4, 8, or others) offset in file?
> Which option to use or how to write the linker script?

See the description of the ALIGN linker script directive in the linker 
manual.

Cheers
   Nick




More information about the Binutils mailing list