cbc396ce30
produces corrupted binaries when the link_set_* sections extend into another page after the end of the .text section by using a generated an ldscript that puts all the link_set_* data into the .text section in the first place.
36 lines
761 B
Plaintext
36 lines
761 B
Plaintext
/* $NetBSD: kern.ldscript.tail,v 1.1 2004/09/13 09:39:40 chs Exp $ */
|
|
|
|
} =0
|
|
PROVIDE (__etext = .);
|
|
PROVIDE (_etext = .);
|
|
PROVIDE (etext = .);
|
|
. = ALIGN(0x1000);
|
|
.data :
|
|
{
|
|
__data_start = . ;
|
|
*(.data)
|
|
*(.data.*)
|
|
*(.sdata)
|
|
*(.sdata.*)
|
|
}
|
|
_edata = .;
|
|
PROVIDE (edata = .);
|
|
__bss_start = .;
|
|
__bss_start__ = .;
|
|
.bss :
|
|
{
|
|
*(.dynbss)
|
|
*(.bss)
|
|
*(.bss.*)
|
|
*(COMMON)
|
|
/* Align here to ensure that the .bss section occupies space up to
|
|
_end. Align after .bss to ensure correct alignment even if the
|
|
.bss section disappears because there are no input sections. */
|
|
. = ALIGN(32 / 8);
|
|
}
|
|
. = ALIGN(32 / 8);
|
|
_end = .;
|
|
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
|
|
PROVIDE (end = .);
|
|
}
|