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
On Mon, 04 Mar 2002, Alan Modra wrote:
> On Sun, Mar 03, 2002 at 06:28:05PM -0500, Alan Matsuoka wrote:
> > On Sun, 03 Mar 2002, Benjamin Kosnik wrote:
> >
> > > /mnt/hd/ahimsa/H-x86-src/bin/ld:built in linker script:49: parse error
> >
> > I ran into something similar with powerpc. I think the cuplrit is in
> > ld/scripttempl/elf.sc
>
> Yeah, semicolon trouble. Running the ld testsuite would have caught
> this.
>
Thanks..
> ld/ChangeLog
> * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
>
> Index: ld/scripttempl/elf.sc
> ===================================================================
> RCS file: /cvs/src/src/ld/scripttempl/elf.sc,v
> retrieving revision 1.27
> diff -u -p -r1.27 elf.sc
> --- elf.sc 2002/03/02 01:25:26 1.27
> +++ elf.sc 2002/03/04 01:35:21
> @@ -250,12 +250,12 @@ cat <<EOF
> could instead move the label definition inside the section, but
> the linker would then create the section even if it turns out to
> be empty, which isn't pretty. */
> - ${RELOCATING+. = ALIGN(${ALIGNMENT})}
> + ${RELOCATING+. = ALIGN(${ALIGNMENT});}
> ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_start = .);}}
> .preinit_array ${RELOCATING-0} : { *(.preinit_array) }
> ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_end = .);}}
>
> - ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_start = .)}};
> + ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_start = .);}}
> .init_array ${RELOCATING-0} : { *(.init_array) }
> ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_end = .);}}
>
> --
> Alan Modra
> IBM OzLabs - Linux Technology Centre
Alan Matsuoka
GCC Engineering
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299