diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:57:38 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:57:38 +0000 |
| commit | 5a5c549fe9a3fef595297bd21d36bed8409dc37d (patch) | |
| tree | a964c8f5ac85b7b641cac022c5f9bf4eed3d2b9b /test/LinkerScript/phdrs-sections.test | |
| parent | fb911942f1434f3d1750f83f25f5e42c80e60638 (diff) | |
Notes
Diffstat (limited to 'test/LinkerScript/phdrs-sections.test')
| -rw-r--r-- | test/LinkerScript/phdrs-sections.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/LinkerScript/phdrs-sections.test b/test/LinkerScript/phdrs-sections.test new file mode 100644 index 000000000000..872b7999cb7e --- /dev/null +++ b/test/LinkerScript/phdrs-sections.test @@ -0,0 +1,29 @@ +/* + Test PHDR parsing and section -> phdr mapping. + RUN: linker-script-test %s | FileCheck %s +*/ + +PHDRS +{ + ph_text PT_LOAD FLAGS (0x1 | 0x4); + ph_data PT_LOAD FLAGS (0x2 | 0x4); +} + +SECTIONS +{ + .init : {} : ph_text +} + +/* +CHECK: PHDRS +CHECK: { +CHECK: ph_text 1 FLAGS (5); +CHECK: ph_data 1 FLAGS (6); +CHECK: } +CHECK: SECTIONS +CHECK: { +CHECK: .init : +CHECK: { +CHECK: } : ph_text +CHECK: } +*/ |
