« Return to Thread: 32bits specific code in do_adjust_elf_header()

32bits specific code in do_adjust_elf_header()

by Roman Divacky :: Rate this Message:

Reply to Author | View in Thread

hi

in

Target_freebsd<size, big_endian>::do_adjust_elf_header()

there is 32specific code that does not work on 64bit platforms

this:

     gold_assert(len == elfcpp::Elf_sizes<32>::ehdr_size);

     elfcpp::Ehdr<32, false> ehdr(view);


the 32 does not work on 64bit platform (ie. amd64), I believe
it should be either 32 or 64. When I manually enter 64 there
on amd64 gold works for me just fine.

roman


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

attachment0 (203 bytes) Download Attachment

 « Return to Thread: 32bits specific code in do_adjust_elf_header()