]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Allow abort PLT references in libc.so for SH.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 16 Aug 2017 17:01:27 +0000 (17:01 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 16 Aug 2017 17:01:27 +0000 (17:01 +0000)
Given my patch
<https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00965.html> for the
ICEs building a glibc string function test for SH, the testsuite can
build completely for SH with GCC 7 and mainline.  However, there is a
test failure that does not appear for GCC 6: check-localplt fails
because of an abort PLT reference in libc.so.

Given the lack of a trap insn pattern for SH, it seems unavoidable
that the compiler might sometimes generate abort calls, and such abort
calls (generated from __builtin_trap when there is no trap insn
pattern) will be unaffected by the normal mapping to __GI_abort for
calls within glibc.  Thus, this patch allows (but does not require) an
abort PLT reference in libc.so for SH.

Tested for sh4-linux-gnu with build-many-glibcs.py (GCC 7, with my
patch applied).

* sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
libc.so.

ChangeLog
sysdeps/unix/sysv/linux/sh/localplt.data

index 2b7ef311b6280993f4747277153533307554dcdc..af07c422ffd45d2ba16991df24e0b88e37b9acf6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
+       libc.so.
+
 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * NEWS: Mention x86-64 FMA optimization.
index 2753547d97e43e646791d974c36fdb46b121a592..babb19d71785515ddd718ac08e00dacbefaa22fd 100644 (file)
@@ -10,6 +10,8 @@ libc.so: _Unwind_Find_FDE
 libc.so: _exit
 libc.so: __errno_location
 libm.so: matherr
+# Generated by the compiler because there is no trap insn pattern.
+libc.so: abort ?
 # The main malloc is interposed into the dynamic linker, for
 # allocations after the initial link (when dlopen is used).
 ld.so: malloc