linking EFI binary from ELF objects and archives
Jan Beulich
jbeulich@suse.com
Wed Sep 9 12:56:08 GMT 2020
More information about the Binutils mailing list
Wed Sep 9 12:56:08 GMT 2020
- Previous message (by thread): linking EFI binary from ELF objects and archives
- Next message (by thread): linking EFI binary from ELF objects and archives
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 09.09.2020 14:49, Nick Clifton wrote: >> in PR 22369 you said >> >> "I do wonder if we should issue an error message when attempting to >> perform cross-format links like this. Although in theory of course >> the library could contain both COFF format objects and ELF format >> objects. Which makes things a little more complicated. Hmm, maybe >> I need to think about this." >> >> Am I correctly understanding that while linking EFI binaries (i.e. >> PE32+) from ELF _objects_ works, > > Actually I do not think that this does work. Why? We've been using it successfully in the Xen project to build Xen as an EFI binary, alongside a traditional ELF one, and both from mostly the same object files. > The PR was for a case > where this was attempted, and a seg-fault was generated. But I > think that even if the seg-fault had not happened the link still > would have failed. It was my understanding that the issue at the time was with an archive containing ELF objects, not an individual object. Apart from this - any word on my question on "ld -r" when it comes to archives? Jan
- Previous message (by thread): linking EFI binary from ELF objects and archives
- Next message (by thread): linking EFI binary from ELF objects and archives
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list