Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: linux_syscall_support.h

Issue 8230025: Fix a text relocation when SYS_SYSCALL_ENTRYPOINT is defined. (Closed) Base URL: http://linux-syscall-support.googlecode.com/svn/trunk/lss/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: linux_syscall_support.h
===================================================================
--- linux_syscall_support.h (revision 3)
+++ linux_syscall_support.h (working copy)
@@ -1481,14 +1481,16 @@
"mov "SYS_SYSCALL_ENTRYPOINT"@GOT(%%eax), %%eax\n"\
"mov 0(%%eax), %%eax\n" \
"test %%eax, %%eax\n" \
- "jz 10001f\n" \
+ "jz 10002f\n" \
"push %%eax\n" \
- "lea 10002f, %%eax\n" \
+ "call 10001f\n" \
+ "10001:pop %%eax\n" \
+ "add $(10003f-10001b), %%eax\n" \
"xchg 4(%%esp), %%eax\n" \
"ret\n" \
- "10001:pop %%eax\n" \
+ "10002:pop %%eax\n" \
"int $0x80\n" \
- "10002:\n"
+ "10003:\n"
#else
#define LSS_ENTRYPOINT "int $0x80\n"
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698