ld.gold: internal error in set_info_section, at output.h:3209

764 Views Asked by At

when i was migrating ld to gold, I met the following errors:

ld.gold: internal error in set_info_section, at output.h:3209

my gold is binutil-2.25-gold.

I didn't get any clues from google. anyone know this?

Thanks a lot

1

There are 1 best solutions below

2
On

Are you using a linker script? If so, please attach it.

Your version of gold is pretty old. If you can, please try your build with binutils-2.29 or later. There's a good chance the bug has been fixed.

If you are using a script, I'm going to take a wild guess and suggest that you look for a .rela.dyn : { ... } block in the script and simply remove it. Let me know if that helps.