From patchwork Thu Aug 31 13:53:08 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: 22439 Received: (qmail 102163 invoked by alias); 31 Aug 2017 13:53:23 -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 102154 invoked by uid 89); 31 Aug 2017 13:53:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 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, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pg0-f46.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=DFTpO27jQdD0CnsT4J+vTElBIe8W2GS1/HnbsURiO/Q=; b=M7S7HMdRuS8Etnxw4GTjlNxPZxOq+ViON8Rf/67WM/MQiDxszDn/oE9HSyYu2piTa0 uf5422HaPpw+XxVkrOSiEzhAZF/I3gy8Ty5ErSPROECz8p4rv/TVA5duCa6DXY7cKgXS 3S2nsWBHMGbiiCWm6jTLRDAXo2E0AY6ULxPbsiox4tmhYu6tVPW94o7XBF+p6bJw0c4U QR3qIz3vzJBW76emQQbNfa2mTaL42xXGWDXw3nuNHWSGApawEPmZOfAkReVB7bRKhZXh 61viTlfLwdeFniccfF72ehUCld7RR5cGKUQ8S+Q9p/KjOD22bm8anSw+aHtU1IDR79lT +feA== X-Gm-Message-State: AHYfb5jOwAekLkfldQcHEnwLvmVJQeG+knOzztxKumq/bQujx0ykcP8o vgrrnuQQUIwp6v4a X-Google-Smtp-Source: ADKCNb4is79DVX+t/ykAfjZhgJwmd6+9bNJxxMOoY/Sjw5dEIER+YZHsVZlg2oCGXPqZ/PHSL4Fi4g== X-Received: by 10.101.85.79 with SMTP id t15mr2484517pgr.249.1504187590501; Thu, 31 Aug 2017 06:53:10 -0700 (PDT) Date: Thu, 31 Aug 2017 06:53:08 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053] Message-ID: <20170831135308.GA26865@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) elf/sofini.c has a zero terminator for .eh_frame in libc.so. It was added before -eh-frame-hdr is added to ld. Since -eh-frame-hdr is always used to build libc.so, zero terminator in elf/sofini.c can be removed. Tested on x86-64. OK for master? H.J. --- [BZ #22053] * elf/sofini.c (__FRAME_END__): Removed. --- elf/sofini.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/elf/sofini.c b/elf/sofini.c index 13e74b7903..7ec313be4e 100644 --- a/elf/sofini.c +++ b/elf/sofini.c @@ -9,11 +9,3 @@ static void (*const __DTOR_END__[1]) (void) __attribute__ ((used, section (".dtors"))) = { 0 }; #endif - -/* Terminate the frame unwind info section with a 4byte 0 as a sentinel; - this would be the 'length' field in a real FDE. */ - -typedef unsigned int ui32 __attribute__ ((mode (SI))); -static const ui32 __FRAME_END__[1] - __attribute__ ((used, section (".eh_frame"))) - = { 0 };