From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id 03057385843B; Sat, 28 Aug 2021 00:42:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03057385843B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc/google/grte/v5-2.27/master] Enable relaxed relocations when building certain object files for x86_64. X-Act-Checkin: glibc X-Git-Author: Siva Chandra Reddy X-Git-Refname: refs/heads/google/grte/v5-2.27/master X-Git-Oldrev: 0337af1396cca76149ab4b406d0dbeddcc0d5dca X-Git-Newrev: 738baca8657cd6d69beb4783ff922dfa9a64b9ce Message-Id: <20210828004211.03057385843B@sourceware.org> Date: Sat, 28 Aug 2021 00:42:11 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2021 00:42:11 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=738baca8657cd6d69beb4783ff922dfa9a64b9ce commit 738baca8657cd6d69beb4783ff922dfa9a64b9ce Author: Siva Chandra Reddy Date: Tue Apr 2 10:18:01 2019 -0700 Enable relaxed relocations when building certain object files for x86_64. Diff: --- sysdeps/x86_64/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 049f8914fe..18b82e2428 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -6,6 +6,9 @@ ifeq ($(with-clang),yes) # allowed. (-mavx512 is the preferred option but does not work in 5.0) ASFLAGS-.o += -march=knl ASFLAGS-.os += -march=knl +# We want clang to generate relaxed relocations so that they can work with +# static-pie as well. +ASFLAGS-.o += -Wa,-mrelax-relocations=yes endif ifeq ($(subdir),csu)