50572669e4
2003-03-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/4210 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual address and virtual size of the last section for the image size. ld/testsuite/ 2003-03-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/4210 * ld-pe/image_size.d: New file. * ld-pe/image_size.s: Likewise. * ld-pe/image_size.t: Likewise. * ld-pe/pe.exp: Run image_size.
15 lines
285 B
Raku
15 lines
285 B
Raku
SECTIONS
|
|
{
|
|
. = SIZEOF_HEADERS;
|
|
. = ALIGN(__section_alignment__);
|
|
.text __image_base__ + ( __section_alignment__ < 0x1000 ? . : __section_alignment__ ) :
|
|
{
|
|
*(.text)
|
|
}
|
|
. = . + 0x1000;
|
|
.data BLOCK(__section_alignment__) :
|
|
{
|
|
*(.data)
|
|
}
|
|
/DISCARD/ : { *(.*) }
|
|
}
|