From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7B5F11F463 for ; Wed, 11 Sep 2019 21:05:12 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; q=dns; s=default; b=UlIg4KD8 GGJI0aWa6gVAxQ4I7rpBOApXZZIrZdTpbLRlFl6qxbNCREM9LazXdARDB09dx01T RRXAt5sapwaJsdnTRN7Tu0NJIA8M92rWXFHhSXMqUxuzErD55JpQqXVXTN3syD05 8e/VkQ8R1fvP0ir6de9jzkzTEdOUpXJj7f0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; s=default; bh=XL4Yxy1Lk9k7aG 73ZbC2kTwBUDg=; b=e3zjRnzAfWlYP9MLwn9gSblmrMzqsPBA8kMLK1dcm2+K/a Qr5aD3f2DDs/7DBvdG1phdDG5+a5nWcRMBPL/UgjWBEc384761hwSnvHa31X/g3p FNB9tZ+8KnVPSWBT6+7rvPcldFxBMaik7Uh56gyhnTE2jAAjI/Vx6WG9CE4+0= Received: (qmail 93971 invoked by alias); 11 Sep 2019 21:05:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 93954 invoked by uid 89); 11 Sep 2019 21:05:09 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-pf1-f196.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Q8ffwq9DLdFOIUHarbzwHCg7UeoMZsMRIOwgMKe32e0=; b=i0iAhOVWqAW0qgpc7whi+crv3bupjPIDrSk+g+4cN4LqkovdrfUf2dpno2wnXndRNb zNkI8N3Pb7v1rmnp48X9FDLk4DiYJnkZi6m3QXGgIn+rphfOQkV+gKsv68EgxaMswAjQ NMWwkTlMcYGpT53YAE/4G5I+zgEOSqyAPnPjZI1MXfYIYmjCiq3JfRyL4kaLEbCOR6Ki yHpwhdrEyWXovaAR3uAUZfxs2RwfWM+JFlV+/pfv9cBfvszbRl0Eg8l85GBCur5e6hvH CWTOnVE53+IBYRTypJQmwI6MGROXtp8qWb70NypSsW+Ih6PHjwntCiLY3qK8GbLyE2+Y n8AQ== From: Isaku Yamahata To: libc-alpha@sourceware.org Cc: isaku.yamahata@intel.com, Isaku Yamahata Subject: [RFC PATCH 01/11] x86-64, elf: make elf_machine_lazy_rel() ignore R_X86_64_NONE Date: Wed, 11 Sep 2019 14:03:59 -0700 Message-Id: In-Reply-To: References: In-Reply-To: References: This adds a check of R_X86_64_NONE to ignore it on lazy relocation to elf_machine_lazy_rel(). LibOS may also do relocation and change the relocation entry to NONE. So elf_machine_lazy_rel() may see R_X86_64_NONE in this code path in addition to elf_machine_rela(). Signed-off-by: Isaku Yamahata --- sysdeps/x86_64/dl-machine.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h index 95a13b35b5..50db45c082 100644 --- a/sysdeps/x86_64/dl-machine.h +++ b/sysdeps/x86_64/dl-machine.h @@ -578,6 +578,8 @@ elf_machine_lazy_rel (struct link_map *map, value = ((ElfW(Addr) (*) (void)) value) (); *reloc_addr = value; } + else if (__glibc_unlikely (r_type == R_X86_64_NONE)) + return; else _dl_reloc_bad_type (map, r_type, 1); } -- 2.17.1