diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2015-01-23 20:46:43 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-01-23 20:46:43 +0100 |
commit | 7bbf973451f7e74bcdc93475aa57dff0010a4e42 (patch) | |
tree | ad77ceec6fabf0fca438eaef03332d8b3a0c0958 /gcc/config | |
parent | 29585247a24b327d800b195610c6686f012d03a9 (diff) | |
download | gcc-7bbf973451f7e74bcdc93475aa57dff0010a4e42.zip gcc-7bbf973451f7e74bcdc93475aa57dff0010a4e42.tar.gz gcc-7bbf973451f7e74bcdc93475aa57dff0010a4e42.tar.bz2 |
elf-lib.h: New file.
libgcc/ChangeLog:
* config/i386/elf-lib.h: New file.
(CRT_GET_RFIB_DATA): Move definition from gcc/config/i386/gnu-user.h.
Wrap definition in #ifdef __i386__.
* libgcc/config.host (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu)
(i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*)
(i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux*)
(x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu): Add i386/elf-lib.h
to tm_file.
gcc/ChangeLog:
* config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
libgcc/config/i386/elf-lib.h.
From-SVN: r220056
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/gnu-user.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h index 751608b..0d001e2 100644 --- a/gcc/config/i386/gnu-user.h +++ b/gcc/config/i386/gnu-user.h @@ -129,19 +129,6 @@ along with GCC; see the file COPYING3. If not see } \ } while (0) -/* Used by crtstuff.c to initialize the base of data-relative relocations. - These are GOT relative on x86, so return the pic register. */ -#define CRT_GET_RFIB_DATA(BASE) \ - __asm__ ("call\t.LPR%=\n" \ - ".LPR%=:\n\t" \ - "pop{l}\t%0\n\t" \ - /* Due to a GAS bug, this cannot use EAX. That encodes \ - smaller than the traditional EBX, which results in the \ - offset being off by one. */ \ - "add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \ - "|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \ - : "=d"(BASE)) - #ifdef TARGET_LIBC_PROVIDES_SSP /* i386 glibc provides __stack_chk_guard in %gs:0x14. */ #define TARGET_THREAD_SSP_OFFSET 0x14 |