ldscript.kmod.amd64 (a211ca52cd8de55708139678afafc7afcd4eedea) ldscript.kmod.amd64 (e12492164aeba4ae8bbb7773037ecff0ddf95923)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2019 Mark Johnston <markj@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29
30 /*
31 * Coalesce executable and read-only sections, and pad to page alignment so
32 * that memory protections can be strictly enforced.
33 */
34
35SECTIONS
36{
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2019 Mark Johnston <markj@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29
30 /*
31 * Coalesce executable and read-only sections, and pad to page alignment so
32 * that memory protections can be strictly enforced.
33 */
34
35SECTIONS
36{
37 .plt :
38 {
39 *(.plt)
40 }
37 .text :
38 {
39 *(.text .text.*)
40 . = ALIGN(CONSTANT(COMMONPAGESIZE));
41 }
42
43 .rodata :
44 {
45 *(.rodata .rodata.*)
46 . = ALIGN(CONSTANT(COMMONPAGESIZE));
47 }
48}
41 .text :
42 {
43 *(.text .text.*)
44 . = ALIGN(CONSTANT(COMMONPAGESIZE));
45 }
46
47 .rodata :
48 {
49 *(.rodata .rodata.*)
50 . = ALIGN(CONSTANT(COMMONPAGESIZE));
51 }
52}