ld:built in linker script:49: parse error

Alan Matsuoka alanm@redhat.com
Sun Mar 3 15:29:00 GMT 2002


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



More information about the Binutils mailing list