On Tue, Aug 09, 2016 at 11:02:55AM +0200, Michael Zimmermann wrote: > > I use both, and never notice any difference. The primary differences > > are newlib vs glibc, and in some cases, whether symbols are decorated > > with a leading _ > > The actual code generation is more dependent on the default target > > (i.e., -march/-mthumb for ARM) than bare-metal/hosted. > > > I only ever use the native > > compiler under Linux, or one of the linaro "-linux-" flavours if > > cross-compiling. > > I think that works because edk2 excludes all toolchain libs with -nostdlib > and fno-builtin. > I know from other bootloader projects like LK(LittleKernel) which link > against libgcc that compiling with anything but bare-metal toolchains makes > the resulting binary un-bootable.
Sure, but those are effectively bugs in the corresponding projects. If they require special options/libraries they should (where possible) manually configure this, or (where not) exit with an error. Regards, Leif _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

