This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit 8420cf0
Vilas Bhat
bionic: Adapt segment gap test for various page sizes
This makes the segment gap test compatible with systems having different
page sizes.
- The linker script now uses `ALIGN(CONSTANT (MAXPAGESIZE))`.
- The C++ code now uses `sysconf(_SC_PAGESIZE)` to get the actual page
size ensuring correct memory alignment of 'start_of_gap' at runtime.
Bug: 315509500
Test: (16k testing)
lunch aosp_cf_x86_64_phone_pgagnostic-trunk_staging-userdebug
m && launch_cvd
atest dlfcn#segment_gap
(4k testing)
lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
m && launch_cvd
atest dlfcn#segment_gap
Change-Id: I31d45d1d22a237ef7d5ea487a64ef20e5e984ec01 parent 4c87f0d commit 8420cf0
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments