From patchwork Sat Oct 10 11:40:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 35664 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BC1C6B7B68 for ; Sat, 10 Oct 2009 22:41:32 +1100 (EST) Received: from localhost ([127.0.0.1]:44767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwaKG-0000RK-N3 for incoming@patchwork.ozlabs.org; Sat, 10 Oct 2009 07:41:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwaJi-0000PV-EE for qemu-devel@nongnu.org; Sat, 10 Oct 2009 07:40:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwaJg-0000PB-0f for qemu-devel@nongnu.org; Sat, 10 Oct 2009 07:40:53 -0400 Received: from [199.232.76.173] (port=49843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwaJf-0000P5-RP for qemu-devel@nongnu.org; Sat, 10 Oct 2009 07:40:51 -0400 Received: from r11na27.net.upc.cz ([94.113.108.27]:35100 helo=bimbo.localdomain) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwaJf-0008ET-EP for qemu-devel@nongnu.org; Sat, 10 Oct 2009 07:40:51 -0400 Received: by bimbo.localdomain (Postfix, from userid 8086) id BFB4DC068D; Sat, 10 Oct 2009 13:40:48 +0200 (CEST) From: Lubomir Rintel To: qemu-devel@nongnu.org Date: Sat, 10 Oct 2009 13:40:47 +0200 Message-Id: <1255174847-22335-1-git-send-email-lkundrak@v3.sk> X-Mailer: git-send-email 1.6.5.rc2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Lubomir Rintel Subject: [Qemu-devel] [PATCH] Provide __rel_iplt_{start,end} X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This basically fixes build with -static against recent glibc (libc.a's __libc_csu_init() refers to these symbols). --- i386.ld | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/i386.ld b/i386.ld index f2dafec..9b4063e 100644 --- a/i386.ld +++ b/i386.ld @@ -39,7 +39,13 @@ SECTIONS .rela.fini : { *(.rela.fini) } .rel.bss : { *(.rel.bss) } .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } + .rel.plt : + { + *(.rel.plt) + PROVIDE_HIDDEN (__rel_iplt_start = .); + *(.rel.iplt) + PROVIDE_HIDDEN (__rel_iplt_end = .); + } .rela.plt : { *(.rela.plt) } .init : { *(.init) } =0x47ff041f .text :