[PATCH] binutils: partially revert 17c6c3b99156fe82c1e637e1a5fd9f163ac788c8
徐持恒 Xu Chiheng
chiheng.xu@gmail.com
Fri Nov 18 14:35:43 GMT 2022
On Fri, Nov 18, 2022 at 9:31 PM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 18.11.2022 11:45, 徐持恒 Xu Chiheng wrote:
> > using x86_64-elf-g++ -m32 -c on C++ files to generate head.o(32 bit
> > code, elf32).
> > using x86_64-elf-objcopy to convert it to elf64.
> > then link head.o(32 bit code, elf64) with other object files(64 bit
> > code, elf64).
> >
> > link script line is :
> > .head : { head.o (.multiboot) head.o (.*) }
>
> Was that GNU objcopy you used? I've just tried here, and I don't see
> it converting from REL to RELA.
>
x86_64-elf-objcopy -I elf32-i386 -O elf64-x86-64
kern/core/x64/head/start32.cpp.o kern/core/x64/head/start32.cpp.o
How does binutils's objcopy convert ELF32(USE_REL) to ELF64(USE_RELA)?
How does it process relocation entry?
Right now, I'm not familiar with objcopy. I need to read the code.
More information about the Binutils
mailing list