public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
@ 2015-02-16 14:05 Lukasz Majewski
  2015-02-16 16:55 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Lukasz Majewski @ 2015-02-16 14:05 UTC (permalink / raw)
  To: u-boot

Not all linkers are able to parse "INSERT BEFORE" part of the linker script.
For example following (rather new) "gold" one:

GNU gold (GNU Binutils for Debian 2.22) 1.11

produces following error:
  HOSTLD  tools/mkenvimage
/usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected STRING
/usr/bin/ld: fatal error: unable to parse script file ./tools/imagetool.lds
collect2: error: ld returned 1 exit status
make[1]: *** [tools/mkenvimage] Error 1
make: *** [tools] Error 2

The problem has already been reported, but no evident solution has been
proposed:
https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
---
 tools/imagetool.lds | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/imagetool.lds b/tools/imagetool.lds
index 7e92b4a..4fa996a 100644
--- a/tools/imagetool.lds
+++ b/tools/imagetool.lds
@@ -20,5 +20,3 @@ SECTIONS
 
 	__bss_start = .;
 }
-
-INSERT BEFORE .data;
-- 
2.0.0.rc2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 14:05 [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script Lukasz Majewski
@ 2015-02-16 16:55 ` Tom Rini
  2015-02-16 17:12   ` Tom Rini
  2015-02-16 19:50   ` Andreas Bießmann
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Rini @ 2015-02-16 16:55 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:

> Not all linkers are able to parse "INSERT BEFORE" part of the linker script.
> For example following (rather new) "gold" one:
> 
> GNU gold (GNU Binutils for Debian 2.22) 1.11
> 
> produces following error:
>   HOSTLD  tools/mkenvimage
> /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected STRING
> /usr/bin/ld: fatal error: unable to parse script file ./tools/imagetool.lds
> collect2: error: ld returned 1 exit status
> make[1]: *** [tools/mkenvimage] Error 1
> make: *** [tools] Error 2
> 
> The problem has already been reported, but no evident solution has been
> proposed:
> https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
> 
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>

Guilherme, can you please confirm that things still work as expected for
you with this patch applied?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/29c326ed/attachment-0001.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 16:55 ` Tom Rini
@ 2015-02-16 17:12   ` Tom Rini
  2015-02-16 17:47     ` Guilherme Ferreira
  2015-02-16 19:50   ` Andreas Bießmann
  1 sibling, 1 reply; 7+ messages in thread
From: Tom Rini @ 2015-02-16 17:12 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 16, 2015 at 11:55:09AM -0500, Tom Rini wrote:
> On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:
> 
> > Not all linkers are able to parse "INSERT BEFORE" part of the linker script.
> > For example following (rather new) "gold" one:
> > 
> > GNU gold (GNU Binutils for Debian 2.22) 1.11
> > 
> > produces following error:
> >   HOSTLD  tools/mkenvimage
> > /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected STRING
> > /usr/bin/ld: fatal error: unable to parse script file ./tools/imagetool.lds
> > collect2: error: ld returned 1 exit status
> > make[1]: *** [tools/mkenvimage] Error 1
> > make: *** [tools] Error 2
> > 
> > The problem has already been reported, but no evident solution has been
> > proposed:
> > https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
> > 
> > Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> 
> Guilherme, can you please confirm that things still work as expected for
> you with this patch applied?  Thanks!

On second thought I'm going to go with the patch that just drops the
linker script and I see you tested that one as well, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/8b9ff82d/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 17:12   ` Tom Rini
@ 2015-02-16 17:47     ` Guilherme Ferreira
  0 siblings, 0 replies; 7+ messages in thread
From: Guilherme Ferreira @ 2015-02-16 17:47 UTC (permalink / raw)
  To: u-boot

Hi Tom,

Confirmed, Andreas sent the patch and I've tested both versions. The tools
still works on Ubuntu host.

Kind regards,

2015-02-16 15:12 GMT-02:00 Tom Rini <trini@ti.com>:

> On Mon, Feb 16, 2015 at 11:55:09AM -0500, Tom Rini wrote:
> > On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:
> >
> > > Not all linkers are able to parse "INSERT BEFORE" part of the linker
> script.
> > > For example following (rather new) "gold" one:
> > >
> > > GNU gold (GNU Binutils for Debian 2.22) 1.11
> > >
> > > produces following error:
> > >   HOSTLD  tools/mkenvimage
> > > /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error,
> unexpected STRING
> > > /usr/bin/ld: fatal error: unable to parse script file
> ./tools/imagetool.lds
> > > collect2: error: ld returned 1 exit status
> > > make[1]: *** [tools/mkenvimage] Error 1
> > > make: *** [tools] Error 2
> > >
> > > The problem has already been reported, but no evident solution has been
> > > proposed:
> > > https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
> > >
> > > Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> >
> > Guilherme, can you please confirm that things still work as expected for
> > you with this patch applied?  Thanks!
>
> On second thought I'm going to go with the patch that just drops the
> linker script and I see you tested that one as well, thanks!
>
> --
> Tom
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 16:55 ` Tom Rini
  2015-02-16 17:12   ` Tom Rini
@ 2015-02-16 19:50   ` Andreas Bießmann
  2015-02-16 19:57     ` Tom Rini
  2015-02-17  8:04     ` Lukasz Majewski
  1 sibling, 2 replies; 7+ messages in thread
From: Andreas Bießmann @ 2015-02-16 19:50 UTC (permalink / raw)
  To: u-boot

On 16.02.15 17:55, Tom Rini wrote:
> On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:
> 
>> Not all linkers are able to parse "INSERT BEFORE" part of the linker script.
>> For example following (rather new) "gold" one:
>>
>> GNU gold (GNU Binutils for Debian 2.22) 1.11
>>
>> produces following error:
>>   HOSTLD  tools/mkenvimage
>> /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected STRING
>> /usr/bin/ld: fatal error: unable to parse script file ./tools/imagetool.lds
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [tools/mkenvimage] Error 1
>> make: *** [tools] Error 2
>>
>> The problem has already been reported, but no evident solution has been
>> proposed:
>> https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
>>
>> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> 
> Guilherme, can you please confirm that things still work as expected for
> you with this patch applied?  Thanks!

I vote for 437762 [1] as replacement for this patch.

It is not only the linker script which is not understood by the Darwin
linker. The linker generated lists work just differently on Darwin,
therefore a93648d197df48fa46dd55f925ff70468bd81c71 broke mkimage for me.
Guilherme told the RFC would work [2].

Best regards

Andreas Bie?mann

[1] http://patchwork.ozlabs.org/patch/437762/
[2] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/211224

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 19:50   ` Andreas Bießmann
@ 2015-02-16 19:57     ` Tom Rini
  2015-02-17  8:04     ` Lukasz Majewski
  1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2015-02-16 19:57 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 16, 2015 at 08:50:46PM +0100, Andreas Bie?mann wrote:
> On 16.02.15 17:55, Tom Rini wrote:
> > On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:
> > 
> >> Not all linkers are able to parse "INSERT BEFORE" part of the linker script.
> >> For example following (rather new) "gold" one:
> >>
> >> GNU gold (GNU Binutils for Debian 2.22) 1.11
> >>
> >> produces following error:
> >>   HOSTLD  tools/mkenvimage
> >> /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected STRING
> >> /usr/bin/ld: fatal error: unable to parse script file ./tools/imagetool.lds
> >> collect2: error: ld returned 1 exit status
> >> make[1]: *** [tools/mkenvimage] Error 1
> >> make: *** [tools] Error 2
> >>
> >> The problem has already been reported, but no evident solution has been
> >> proposed:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
> >>
> >> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> > 
> > Guilherme, can you please confirm that things still work as expected for
> > you with this patch applied?  Thanks!
> 
> I vote for 437762 [1] as replacement for this patch.
> 
> It is not only the linker script which is not understood by the Darwin
> linker. The linker generated lists work just differently on Darwin,
> therefore a93648d197df48fa46dd55f925ff70468bd81c71 broke mkimage for me.
> Guilherme told the RFC would work [2].

I concur and am build testing that locally now.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150216/e99629e1/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script
  2015-02-16 19:50   ` Andreas Bießmann
  2015-02-16 19:57     ` Tom Rini
@ 2015-02-17  8:04     ` Lukasz Majewski
  1 sibling, 0 replies; 7+ messages in thread
From: Lukasz Majewski @ 2015-02-17  8:04 UTC (permalink / raw)
  To: u-boot

Hi Andreas,

> On 16.02.15 17:55, Tom Rini wrote:
> > On Mon, Feb 16, 2015 at 03:05:45PM +0100, Lukasz Majewski wrote:
> > 
> >> Not all linkers are able to parse "INSERT BEFORE" part of the
> >> linker script. For example following (rather new) "gold" one:
> >>
> >> GNU gold (GNU Binutils for Debian 2.22) 1.11
> >>
> >> produces following error:
> >>   HOSTLD  tools/mkenvimage
> >> /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error,
> >> unexpected STRING /usr/bin/ld: fatal error: unable to parse script
> >> file ./tools/imagetool.lds collect2: error: ld returned 1 exit
> >> status make[1]: *** [tools/mkenvimage] Error 1
> >> make: *** [tools] Error 2
> >>
> >> The problem has already been reported, but no evident solution has
> >> been proposed:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=927573#c5
> >>
> >> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> > 
> > Guilherme, can you please confirm that things still work as
> > expected for you with this patch applied?  Thanks!
> 
> I vote for 437762 [1] as replacement for this patch.
> 
> It is not only the linker script which is not understood by the Darwin
> linker. The linker generated lists work just differently on Darwin,
> therefore a93648d197df48fa46dd55f925ff70468bd81c71 broke mkimage for
> me. Guilherme told the RFC would work [2].
> 
> Best regards
> 
> Andreas Bie?mann
> 
> [1] http://patchwork.ozlabs.org/patch/437762/
> [2] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/211224

I can confirm that patch [1] works on my host debian machine.

Tested-by: Lukasz Majewski <l.majewski@samsung.com>

-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-17  8:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-16 14:05 [U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script Lukasz Majewski
2015-02-16 16:55 ` Tom Rini
2015-02-16 17:12   ` Tom Rini
2015-02-16 17:47     ` Guilherme Ferreira
2015-02-16 19:50   ` Andreas Bießmann
2015-02-16 19:57     ` Tom Rini
2015-02-17  8:04     ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox