diff --git a/tools/tcc/linkerscript/a.out.lds b/tools/tcc/linkerscript/a.out.lds index a7f7f41a8ab71811ca15264f2e099295c743bdeb..ce65aa6bfd1ef6887f8b230fde255661ce7cdbba 100644 --- a/tools/tcc/linkerscript/a.out.lds +++ b/tools/tcc/linkerscript/a.out.lds @@ -24,8 +24,8 @@ SECTIONS *(.symtab) PROVIDE(.sym_end = .); } - PROVIDE(.textsize = (SIZEOF(.text) + 0x400 - 1) & ~( 0x400 - 1 )); - PROVIDE(.datasize = (SIZEOF(.data) + 0x400 - 1) & ~( 0x400 - 1 )); + PROVIDE(.textsize = .data_begin - .text_begin); + PROVIDE(.datasize = .bss_begin - .data_begin); PROVIDE(.bsssize = SIZEOF(.bss)); PROVIDE(.symsize = 0); .header ALIGN(0x400) : AT(0x0){