[{"id":1778085,"web_url":"http://patchwork.ozlabs.org/comment/1778085/","msgid":"<CAMe9rOoe8XpEM+SGz+aBgcmYGuzujzkut3k6v5o9gmJathSQCQ@mail.gmail.com>","list_archive_url":null,"date":"2017-10-01T22:04:35","subject":"Re: [PATCH 16/58] Mark internal getXXXbyYYY functions with\n\tattribute_hidden [BZ #18822]","submitter":{"id":4387,"url":"http://patchwork.ozlabs.org/api/people/4387/","name":"H.J. Lu","email":"hjl.tools@gmail.com"},"content":"On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:\n> Mark internal getXXXbyYYY functions with attribute_hidden to allow direct\n> access within libc.so and libc.a without using GOT nor PLT.\n>\n> \t[BZ #18822]\n> \t* include/aliases.h (__getaliasbyname_r): Add attribute_hidden.\n> \t* include/netdb.h (__gethostbyaddr_r): Likewise.\n> \t(__gethostbyname_r): Likewise.\n> \t(__gethostbyname2_r): Likewise.\n> \t(__getnetbyaddr_r): Likewise.\n> \t(__getnetbyname_r): Likewise.\n> \t(__getservbyname_r): Likewise.\n> \t(__getservbyport_r): Likewise.\n> \t(__getprotobyname_r): Likewise.\n> \t(__getprotobynumber_r): Likewise.\n> \t(__getnetgrent_r): Likewise.\n> \t* include/rpc/netdb.h (__getrpcbyname_r): Likewise.\n> \t(__getrpcbynumber_r): Likewise.\n> \t* nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.\n\nTested with build-many-glibcs.py.  I am checking it in.","headers":{"Return-Path":"<libc-alpha-return-85207-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-85207-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"Bd/VxWRe\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y4zqV2gL2z9t3f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  2 Oct 2017 09:04:54 +1100 (AEDT)","(qmail 106787 invoked by alias); 1 Oct 2017 22:04:39 -0000","(qmail 106776 invoked by uid 89); 1 Oct 2017 22:04:38 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:content-type; q=dns; s=default; b=iqGhc1Q\n\t1bRjf26yyVycSWoVLlDq+VxMiMW/A9Ip9tbc+pRvq5R1PDki9pN/wjR+pdgveIhY\n\t+gV6b2Dxjr6nyuLn8Fw2cOOy9TbVgrCGJKMf6cmeHZUK3uNpoeRA4vRPIE1J136N\n\tMNg2glhZVgL0ODv7xn6irk/EDvn+oxnE77ZQ=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:content-type; s=default; bh=UlfG018IQrcEr\n\tIP30lzaiRcv8fo=; b=Bd/VxWReB6Bm/z7XMeAetbV/JoI46Q78DnErFl6iflDGP\n\tB2RmOVK0ls2n2iDMrbWR3V4qeIv1nzhSA4TEXlMyilItnPqhYNt288rgbNGfQHdo\n\tE3ruMh5C2pH5f1rd3sWq/Klbj2XVGrP9LGbdjLavzP01fEhVrxV5NjhtNkqMCM=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.5 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:918","X-HELO":"mail-oi0-f66.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to;\n\tbh=mcggd8ujstI9G5ujj31mc/+NSluFleupXDwY0AecVd8=;\n\tb=YDYWavGcdx8gXRT8nUxnr4lYpbDSQ/as4kxsjNRWLjPxenmbpyI9nOXr1X78mARiI+\n\tzOY3g4eGI48U3CQlsrQZmL9VAzLAJzYAwfwTofGX9tGdelRv/SPE5T1WmK9SJzw/+PI1\n\tgUAWo9MYzTrX+cLjqSC+Crx1VgcO+89OvbwJeuMja9cWcJ516XzxUJwKE1NoilAoEM3I\n\tF8V9LSHV4qMfpGK3+nPNyet/0zOgjgmENGXy0uMN/vluDm/ytuLsTEB0PdxFAriFi2ds\n\toMQkXgobZYxFFPByRigzXhY16haWBRyH864pbS5HSGooUMEk7OOQKyKhzBn8aXSEEo/+\n\tMsMg==","X-Gm-Message-State":"AMCzsaU0r7J6wa5YLlfT2OZb3tAI5yJwDFEe804gNLYsg0Nr/NL/WRas\n\tLVwh319JUDOVT6Ev4aCWQKnplLQ0Tvl39k9Hf1Q=","X-Google-Smtp-Source":"AOwi7QClNOyY1MvCDSW7YXD8yYADEi6FK66iHRMa6G/tgnfMaJgZDqiHAd0kgcrayIz9YjbSwLPptEhv7/1YgXNE4U8=","X-Received":"by 10.202.69.2 with SMTP id s2mr5961415oia.256.1506895475677;\n\tSun, 01 Oct 2017 15:04:35 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170901180029.9527-17-hjl.tools@gmail.com>","References":"<20170901180029.9527-1-hjl.tools@gmail.com>\n\t<20170901180029.9527-17-hjl.tools@gmail.com>","From":"\"H.J. Lu\" <hjl.tools@gmail.com>","Date":"Sun, 1 Oct 2017 15:04:35 -0700","Message-ID":"<CAMe9rOoe8XpEM+SGz+aBgcmYGuzujzkut3k6v5o9gmJathSQCQ@mail.gmail.com>","Subject":"Re: [PATCH 16/58] Mark internal getXXXbyYYY functions with\n\tattribute_hidden [BZ #18822]","To":"libc-alpha@sourceware.org","Content-Type":"text/plain; charset=\"UTF-8\""}}]