From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16791 invoked by alias); 9 Aug 2016 13:53:25 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 16780 invoked by uid 89); 9 Aug 2016 13:53:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=plt-stub, dlminimalc, r_390_jmp_slot, R_390_GLOB_DAT X-HELO: mx1.redhat.com Subject: Re: [PATCH] S390: Support PLT and GOT references in check-localplt. To: Stefan Liebler , libc-alpha@sourceware.org References: From: Florian Weimer Message-ID: <0a0bb853-6864-1df0-43e6-6cb546244d62@redhat.com> Date: Tue, 09 Aug 2016 13:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-08/txt/msg00292.txt.bz2 On 08/09/2016 03:34 PM, Stefan Liebler wrote: > After the commits __libc_memalign is only called in elf/dl-minimal.c in > malloc() function in ld.so and gcc -O2/-O3 leads to R_390_GLOB_DAT > instead of R_390_JMP_SLOT. __libc_memalign is called via > function-pointer loaded from GOT instead of calling via a plt-stub. Huh. I wonder if this is intended. Surely the malloc implementation in elf/dl-minimal.c should always call the __libc_memalign implementation in the same file? Thanks, Florian