From patchwork Tue Oct 3 22:49:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 23312 Received: (qmail 75264 invoked by alias); 3 Oct 2017 22:49:32 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 75254 invoked by uid 89); 3 Oct 2017 22:49:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:879 X-HELO: mail-oi0-f66.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=DD3XAoeq6Q+2tQHrdkq8HeyrUJPcZx7h8hxsVGT8Um0=; b=S/j83em3rtkIjRM2C7+7I+4CIf3Wa+n6I81imN6v65bw8zMLxGcCgo4mKUO9ALghuu VcA5IfZ2EnIpwzIqmK9Dcvq/l2aWGaTRQH231T8+sVQhYlFVd+ARUMRrIlaQbs5sp9T+ egwz5BiH7mOS3O0PWYIjNREPas1ND3S7S7PXVARKtPtUCxKv0P1O28P/Ao3nrlsIEn0o Q3R0qgxfY7ZUHuabfAHLe08bx9Y2Gwdedp32iv2kLAJeiAWwlJF/YDihpzIF4Fm5WnMc 7OYL99RXUemaaoCTecgaZq8WOR9iHEtN6ZKNtrDNqnfh2tPcadMv+JjCyphYJnxGedcr +p1g== X-Gm-Message-State: AMCzsaX0D5P1E6GfUhcYqvFWerzDHHehseCQaMhZrki6DAiDtB73O8KO wMo2AsQZ8KFQSZk0FQi3Ureqb7RI X-Google-Smtp-Source: AOwi7QAq4nQXLmLIKXRPMMlQ6s1PRdxx+GxUMkxmMYy9tHtInKe6tWD5GQge6/DJMG75qQW5ZErLgA== X-Received: by 10.157.83.205 with SMTP id i13mr10729727oth.343.1507070969286; Tue, 03 Oct 2017 15:49:29 -0700 (PDT) Date: Tue, 3 Oct 2017 15:49:23 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] mips: Don't check _DYNAMIC in elf_machine_load_address Message-ID: <20171003224923.GB27187@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.0 (2017-09-02) Since mips can't convert access _DYNAMIC via GOT, which needs dynamic relocation, to PC-relative at link-time, don't check _DYNAMIC in elf_machine_load_address. I am checking it in. H.J. --- * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't check _DYNAMIC. --- sysdeps/mips/dl-machine.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h index b4fee49cb1..da9d6332ea 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -147,11 +147,6 @@ elf_machine_dynamic (void) static inline ElfW(Addr) elf_machine_load_address (void) { -#ifndef SHARED - extern ElfW(Dyn) _DYNAMIC[] __attribute__((weak, visibility ("hidden"))); - if (!_DYNAMIC) - return 0; -#endif ElfW(Addr) addr; #ifndef __mips16 asm (" .set noreorder\n"