On Sep 16, 2013, at 6:43 AM, "okosmy...@kraftway.ru" <okosmy...@kraftway.ru> 
wrote:

> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 0 has invalid symbol index 10
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 1 has invalid symbol index 11
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 2 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 3 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 4 has invalid symbol index 10
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 5 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 6 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 7 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 8 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 9 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 10 has invalid symbol index 11
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 11 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 12 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 13 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 14 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 15 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 16 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 17 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 18 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 19 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
> relocation 20 has invalid symbol index 19
> /usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
> (.text+0x12): undefined reference to `__libc_csu_fini'
> /usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
> (.text+0x19): undefined reference to `__libc_csu_init'
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Any ideas why i have this errors?
> 

I've not seen this, but I build via Xcode. It looks like you are having trouble 
building the Application that hosts the emulator. 

Basically the emulator is a POSIX Application that gives access to system APIs. 
The rest of EFI is built as normal (like a real platform), and follows EFI ABI 
(different x86_64 calling convention). The Application launches the SEC phase 
of PI and passes in some callback routines that abstract the hardware/software 
environment for EFI. 

The application that hosts the emulator has different compiler flags that are 
contained in the [BuildOptions] section of 
https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/Unix/Host/Host.inf . 
 My guess there is some issue with the gcc version you have and those compiler 
flags, crt1 is not part of the host application, so it must be the C lib you 
are having trouble with. Maybe pointing at the wrong libraries?

Thanks,

Andrew Fish


> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to