inteltool: Fixed building of position independent executables

When building a position independent executable (PIE) EBX is used
internally by the compiler to generate position independent address
references so it cannot be used in the clobber list. Use the already
existing code for the Darwin plattform for that case, too -- it'll
preserve the EBX value.

Change-Id: Ief6d4872b8cd990856a0e8227a88bb228782aced
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Reviewed-on: http://review.coreboot.org/209
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
Mathias Krause 2011-03-09 11:30:55 +01:00 committed by Patrick Georgi
parent c230058199
commit 5782fee0e1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ unsigned int cpuid(unsigned int op)
{ {
uint32_t ret; uint32_t ret;
#if defined(__DARWIN__) && !defined(__LP64__) #if defined(__PIC__) || defined(__DARWIN__) && !defined(__LP64__)
asm volatile ( asm volatile (
"pushl %%ebx\n" "pushl %%ebx\n"
"cpuid\n" "cpuid\n"