Files
rk35xx-android14/bionic/tests/libs/segment_gap_outer.lds
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

27 lines
642 B
Plaintext

SECTIONS {
# This starts off fairly normal: rodata, text, dynamic, data, bss with
# appropriate alignment between them.
. = SIZEOF_HEADERS;
.rodata : {*(.rodata .rodata.*)}
. = ALIGN(0x1000);
.text : {*(.text .text.*)}
. = ALIGN(0x1000);
.dynamic : {*(.dynamic)}
. = ALIGN(0x1000);
.data : {*(.data .data.*)}
.bss : {*(.bss .bss.*)}
# Now create the gap. We need a text segment first to prevent the linker from
# merging .bss with .custom_bss.
. = ALIGN(0x1000);
.custom_text : {
*(.custom_text);
}
# Place custom_bss at the end of the gap.
. = 0x1000000;
.custom_bss : {
*(.custom_bss);
}
}