[U-Boot] ELF relocation issues wrt toolchain

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,

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
participants (2)
-
Albert ARIBAUD
-
Wolfgang Denk