This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld:built in linker script:49: parse error
- From: Alan Matsuoka <alanm at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 3 Mar 2002 18:28:05 -0500
- Subject: Re: ld:built in linker script:49: parse error
- Organization: Red Hat Canada
- References: <200203032323.g23NNie14483@fillmore.constant.com>
On Sun, 03 Mar 2002, Benjamin Kosnik wrote:
>
> with current binutils installed on x86/linux:
>
> %cat 1.c
> #include <stdio.h>
>
> int main()
> {
> int i = 0;
> return 0;
> }
>
> %gcc 1.c
> /mnt/hd/ahimsa/H-x86-src/bin/ld:built in linker script:49: parse error
> collect2: ld returned 1 exit status
>
> where:
> %ld --version
> GNU ld version 2.12.90 20020303
>
> and
> %./ld --version
> GNU ld version 2.12.90 20020225
>
>
> works correctly.
I ran into something similar with powerpc. I think the cuplrit is in
ld/scripttempl/elf.sc
2002-03-01 David Mosberger <davidm@hpl.hp.com>
* scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
.init_array, and .fini_array.
Alan Matsuoka
GCC Engineering
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299