platform_bionic/tests/libs/segment_gap_outer.lds
Yi Kong 436af3d55b Merge changes from topic "clang-r365631-switch-over"
* changes:
  Fix segment gap test
  stdatomic_test: always use bits/stdatomic.h
  Adapt tests due to the new Clang fortify-source warning
2019-08-22 18:35:54 +00:00

26 lines
615 B
Text

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