* ld:built in linker script:49: parse error
@ 2002-03-03 15:23 Benjamin Kosnik
2002-03-03 15:29 ` Alan Matsuoka
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Kosnik @ 2002-03-03 15:23 UTC (permalink / raw)
To: binutils
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld:built in linker script:49: parse error
2002-03-03 15:23 ld:built in linker script:49: parse error Benjamin Kosnik
@ 2002-03-03 15:29 ` Alan Matsuoka
2002-03-03 17:37 ` Alan Modra
0 siblings, 1 reply; 5+ messages in thread
From: Alan Matsuoka @ 2002-03-03 15:29 UTC (permalink / raw)
To: Benjamin Kosnik; +Cc: binutils
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld:built in linker script:49: parse error
2002-03-03 15:29 ` Alan Matsuoka
@ 2002-03-03 17:37 ` Alan Modra
2002-03-03 17:49 ` Alan Matsuoka
2002-03-03 23:51 ` Benjamin Kosnik
0 siblings, 2 replies; 5+ messages in thread
From: Alan Modra @ 2002-03-03 17:37 UTC (permalink / raw)
To: Alan Matsuoka; +Cc: Benjamin Kosnik, binutils
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.
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld:built in linker script:49: parse error
2002-03-03 17:37 ` Alan Modra
@ 2002-03-03 17:49 ` Alan Matsuoka
2002-03-03 23:51 ` Benjamin Kosnik
1 sibling, 0 replies; 5+ messages in thread
From: Alan Matsuoka @ 2002-03-03 17:49 UTC (permalink / raw)
To: Benjamin Kosnik, binutils
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld:built in linker script:49: parse error
2002-03-03 17:37 ` Alan Modra
2002-03-03 17:49 ` Alan Matsuoka
@ 2002-03-03 23:51 ` Benjamin Kosnik
1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Kosnik @ 2002-03-03 23:51 UTC (permalink / raw)
To: Alan Modra; +Cc: Alan Matsuoka, binutils
Thanks this works.
-benjamin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-03-04 7:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-03 15:23 ld:built in linker script:49: parse error Benjamin Kosnik
2002-03-03 15:29 ` Alan Matsuoka
2002-03-03 17:37 ` Alan Modra
2002-03-03 17:49 ` Alan Matsuoka
2002-03-03 23:51 ` Benjamin Kosnik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).