From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 30 Nov 2010 07:37:18 +0100 Subject: [U-Boot] [PATCH 3/4] arm920t: fix linker skript for -pie linking In-Reply-To: <1291099039-49672-1-git-send-email-andreas.devel@googlemail.com> References: <1291099039-49672-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <1291099039-49672-4-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Without this patch the linker will SEGFAULT on some undefined weak symbols. Suggested-by: Sebastien Carlier Signed-off-by: Andreas Bie?mann --- arch/arm/cpu/arm920t/u-boot.lds | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm920t/u-boot.lds b/arch/arm/cpu/arm920t/u-boot.lds index a6f8b56..d8b77df 100644 --- a/arch/arm/cpu/arm920t/u-boot.lds +++ b/arch/arm/cpu/arm920t/u-boot.lds @@ -43,6 +43,9 @@ SECTIONS *(.text) } + .plt : { *(.plt) } + .rel.plt : { *(.rel.plt) } + . = ALIGN(4); .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } -- 1.7.3.2