All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] ELF relocation issues wrt toolchain
@ 2010-10-31 17:17 Albert ARIBAUD
  2010-10-31 17:59 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Albert ARIBAUD @ 2010-10-31 17:17 UTC (permalink / raw)
  To: u-boot

All,

I think I've got the issue pinned down.

I noticed that in the non-working case, the _rel_dyn_start_ofs and 
_rel_dyn_end_ofs both had the same value. I first suspected a linker 
issue, when actually it was a linker *file* issue.

Somehow, between linker releases, the names of relocation input sections 
have changed, which moved them out of our .rel.dyn, actually causing the 
code not to relocate any more.

I am experimenting to find a solution that will please both 'old' and 
'new' linkers.

Amicalement,
-- 
Albert.

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

* [U-Boot] ELF relocation issues wrt toolchain
  2010-10-31 17:17 [U-Boot] ELF relocation issues wrt toolchain Albert ARIBAUD
@ 2010-10-31 17:59 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2010-10-31 17:59 UTC (permalink / raw)
  To: u-boot

Dear Albert ARIBAUD,

In message <4CCDA4BC.2020601@free.fr> you wrote:
> 
> I think I've got the issue pinned down.

Congrats!

> Somehow, between linker releases, the names of relocation input sections 
> have changed, which moved them out of our .rel.dyn, actually causing the 
> code not to relocate any more.
> 
> I am experimenting to find a solution that will please both 'old' and 
> 'new' linkers.

We run all linker scripts through the C preprocessor. If there is a
version dependeny, we can handle this trough an #ifdef

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A good marriage would be between a blind wife and deaf husband.
                                               -- Michel de Montaigne

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

end of thread, other threads:[~2010-10-31 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31 17:17 [U-Boot] ELF relocation issues wrt toolchain Albert ARIBAUD
2010-10-31 17:59 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.