Merge "Revert "Fix incorrect relocations for x86.""

This commit is contained in:
Dan Albert 2014-08-08 22:35:00 +00:00 committed by Gerrit Code Review
commit 3788a1ee8e
389 changed files with 390 additions and 390 deletions

View File

@ -32,7 +32,7 @@ ENTRY(__bionic_clone)
# An error occurred, so set errno and return -1.
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
jmp .L_bc_return

View File

@ -38,7 +38,7 @@ ENTRY(syscall)
# Yes, so set errno.
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
# Restore the callee save registers.

View File

@ -38,7 +38,7 @@ ENTRY(vfork)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
1:
jmp *%ecx // Jump to the stored return address.
END(vfork)

View File

@ -18,7 +18,7 @@ ENTRY(__accept4)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(__brk)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -18,7 +18,7 @@ ENTRY(__connect)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -33,7 +33,7 @@ ENTRY(__epoll_pwait)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebp

View File

@ -13,7 +13,7 @@ ENTRY(__exit)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -21,7 +21,7 @@ ENTRY(__fcntl64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -21,7 +21,7 @@ ENTRY(__fstatfs64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -21,7 +21,7 @@ ENTRY(__getcpu)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -17,7 +17,7 @@ ENTRY(__getcwd)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -21,7 +21,7 @@ ENTRY(__getdents64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -9,7 +9,7 @@ ENTRY(__getpid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -17,7 +17,7 @@ ENTRY(__getpriority)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -21,7 +21,7 @@ ENTRY(__ioctl)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -29,7 +29,7 @@ ENTRY(__llseek)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edi

View File

@ -33,7 +33,7 @@ ENTRY(__mmap2)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebp

View File

@ -25,7 +25,7 @@ ENTRY(__openat)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -29,7 +29,7 @@ ENTRY(__ppoll)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edi

View File

@ -33,7 +33,7 @@ ENTRY(__pselect6)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebp

View File

@ -25,7 +25,7 @@ ENTRY(__ptrace)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -25,7 +25,7 @@ ENTRY(__reboot)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -25,7 +25,7 @@ ENTRY(__rt_sigaction)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -17,7 +17,7 @@ ENTRY(__rt_sigpending)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(__rt_sigprocmask)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -17,7 +17,7 @@ ENTRY(__rt_sigsuspend)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(__rt_sigtimedwait)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -21,7 +21,7 @@ ENTRY(__sched_getaffinity)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -13,7 +13,7 @@ ENTRY(__set_thread_area)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -13,7 +13,7 @@ ENTRY(__set_tid_address)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -21,7 +21,7 @@ ENTRY(__sigaction)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -25,7 +25,7 @@ ENTRY(__signalfd4)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -18,7 +18,7 @@ ENTRY(__socket)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -21,7 +21,7 @@ ENTRY(__statfs64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -21,7 +21,7 @@ ENTRY(__timer_create)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -13,7 +13,7 @@ ENTRY(__timer_delete)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -13,7 +13,7 @@ ENTRY(__timer_getoverrun)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(__timer_gettime)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(__timer_settime)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -29,7 +29,7 @@ ENTRY(__waitid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edi

View File

@ -13,7 +13,7 @@ ENTRY(_exit)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -13,7 +13,7 @@ ENTRY(acct)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -18,7 +18,7 @@ ENTRY(bind)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(capget)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(capset)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(chdir)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -13,7 +13,7 @@ ENTRY(chroot)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(clock_getres)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(clock_gettime)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(clock_nanosleep)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -17,7 +17,7 @@ ENTRY(clock_settime)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(close)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(delete_module)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(dup)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -21,7 +21,7 @@ ENTRY(dup3)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -13,7 +13,7 @@ ENTRY(epoll_create1)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -25,7 +25,7 @@ ENTRY(epoll_ctl)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -17,7 +17,7 @@ ENTRY(eventfd)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -21,7 +21,7 @@ ENTRY(execve)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -25,7 +25,7 @@ ENTRY(faccessat)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -33,7 +33,7 @@ ENTRY(fallocate64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebp

View File

@ -13,7 +13,7 @@ ENTRY(fchdir)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(fchmod)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(fchmodat)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -21,7 +21,7 @@ ENTRY(fchown)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -29,7 +29,7 @@ ENTRY(fchownat)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edi

View File

@ -13,7 +13,7 @@ ENTRY(fdatasync)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -25,7 +25,7 @@ ENTRY(fgetxattr)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -21,7 +21,7 @@ ENTRY(flistxattr)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -17,7 +17,7 @@ ENTRY(flock)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(fremovexattr)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -29,7 +29,7 @@ ENTRY(fsetxattr)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edi

View File

@ -17,7 +17,7 @@ ENTRY(fstat64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -25,7 +25,7 @@ ENTRY(fstatat64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -13,7 +13,7 @@ ENTRY(fsync)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(ftruncate)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -21,7 +21,7 @@ ENTRY(ftruncate64)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -9,7 +9,7 @@ ENTRY(getegid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -9,7 +9,7 @@ ENTRY(geteuid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -9,7 +9,7 @@ ENTRY(getgid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -17,7 +17,7 @@ ENTRY(getgroups)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(getitimer)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -18,7 +18,7 @@ ENTRY(getpeername)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(getpgid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -9,7 +9,7 @@ ENTRY(getppid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -21,7 +21,7 @@ ENTRY(getresgid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -21,7 +21,7 @@ ENTRY(getresuid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -17,7 +17,7 @@ ENTRY(getrlimit)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(getrusage)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -13,7 +13,7 @@ ENTRY(getsid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -18,7 +18,7 @@ ENTRY(getsockname)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -18,7 +18,7 @@ ENTRY(getsockopt)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -17,7 +17,7 @@ ENTRY(gettimeofday)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

View File

@ -9,7 +9,7 @@ ENTRY(getuid)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
ret

View File

@ -25,7 +25,7 @@ ENTRY(getxattr)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %esi

View File

@ -21,7 +21,7 @@ ENTRY(init_module)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -21,7 +21,7 @@ ENTRY(inotify_add_watch)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %edx

View File

@ -13,7 +13,7 @@ ENTRY(inotify_init1)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ebx

View File

@ -17,7 +17,7 @@ ENTRY(inotify_rm_watch)
jb 1f
negl %eax
pushl %eax
call PIC_PLT(__set_errno)
call __set_errno
addl $4, %esp
1:
popl %ecx

Some files were not shown because too many files have changed in this diff Show More