diff options
author | Mathias Krause <mathias.krause@secunet.com> | 2011-03-09 11:30:55 +0100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2011-09-14 07:43:04 +0200 |
commit | 5782fee0e14557963149c47ad07cf1d235196f67 (patch) | |
tree | f6402fea95d6da7186b743fbc4b273e76b3851a5 /util/inteltool | |
parent | c2300581997be3e52e1fdab49fc0a9c322c4f27c (diff) | |
download | coreboot-5782fee0e14557963149c47ad07cf1d235196f67.tar.xz |
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>
Diffstat (limited to 'util/inteltool')
-rw-r--r-- | util/inteltool/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c index e79380aef4..9037d5df66 100644 --- a/util/inteltool/cpu.c +++ b/util/inteltool/cpu.c @@ -32,7 +32,7 @@ unsigned int cpuid(unsigned int op) { uint32_t ret; -#if defined(__DARWIN__) && !defined(__LP64__) +#if defined(__PIC__) || defined(__DARWIN__) && !defined(__LP64__) asm volatile ( "pushl %%ebx\n" "cpuid\n" |