mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
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.
16 lines
285 B
Raku
16 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/ : { *(.*) }
|
|
}
|