[if gte mso 9]>

[edk2] ARMGCC on Linux

Subject: [edk2] ARMGCC on Linux

From: "Cohen, Eugene" <eugene@hp.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>, "Andrew Fish (afish@apple.com)" <afish@apple.com>, "olivier.martin@arm.com" <olivier.martin@arm.com>

Date: 2011-07-02 05:22:08

I’m trying to build edk2 using ARMGCC (codesourcery) on Linux.  I am trying to run an EDK2 app build from here on our EDK1 environment which does not support the new thumb2 relocation codes.  So I modified the tools_def to remove -mthumb to keep code as regular ARM.  When I do this GenFw fails because it sees a relocation it doesn’t recognize:

 

  WriteRelocations():edk2/Build/MdeModule/DEBUG_ARMGCC/ARM/MdeModulePkg/Application/HelloWorld/HelloWorld/DEBUG/HelloWorld.dll unsupported ELF EM_ARM relocation 0x2b.

 

I thought the normal ARM relocations are simple 32-bit addends so I’m confused that this is failing.

 

Any insights why builds without -mthumb would fail?

 

Thanks,

 

Eugene