Skip to content

tests: invoke time vsyscall directly#19

Open
sforshee wants to merge 1 commit intoredpig:masterfrom
sforshee:fix-pie-vsyscall
Open

tests: invoke time vsyscall directly#19
sforshee wants to merge 1 commit intoredpig:masterfrom
sforshee:fix-pie-vsyscall

Conversation

@sforshee
Copy link

The invocation of the time vsyscall produces a segfault when
built using a toolchain that produces position independent
executables by default. This is because the inline asm produces
an RIP-relative call whose offset does not get adjusted by the
dynamic linker.

Fix this by eliminating the vsyscall wrapper and defining
vsyscall_time to be a pointer to the fixed vsyscall address.

Signed-off-by: Seth Forshee seth.forshee@canonical.com

The invocation of the time vsyscall produces a segfault when
built using a toolchain that produces position independent
executables by default. This is because the inline asm produces
an RIP-relative call whose offset does not get adjusted by the
dynamic linker.

Fix this by eliminating the vsyscall wrapper and defining
vsyscall_time to be a pointer to the fixed vsyscall address.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant