summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2014-10-10 17:05:05 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2014-10-10 17:09:53 +0100
commit7ab2df1da8cb80aa3fb8895be04f0663c0b88cf9 (patch)
tree6f17c63b8f7dbda89a420ffb4b43931d4e3e4425
parentbb0c271e5ed157808879f6fd6fb3002c03d07064 (diff)
GenFw: don't bail out on (certain) relative relocationsw-i-p--mustang
R_AARCH64_JUMP26/R_AARCH64_JUMP26 do not need fixups by GenFw, but these are sometimes generated by GCC 4.9. Delete the check aborting due to unhandled relocations. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--BaseTools/Source/C/GenFw/Elf64Convert.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c b/BaseTools/Source/C/GenFw/Elf64Convert.c
index 526ab5d41..a9f6fef47 100644
--- a/BaseTools/Source/C/GenFw/Elf64Convert.c
+++ b/BaseTools/Source/C/GenFw/Elf64Convert.c
@@ -709,16 +709,9 @@ WriteSections64 (
}
break;
+ // These relative relocations do not require fixups
case R_AARCH64_CALL26:
- if (Rel->r_addend != 0 ) { /* TODO */
- Error (NULL, 0, 3000, "Invalid", "AArch64: R_AARCH64_CALL26 Need to fixup with addend!.");
- }
- break;
-
case R_AARCH64_JUMP26:
- if (Rel->r_addend != 0 ) { /* TODO : AArch64 '-O2' optimisation. */
- Error (NULL, 0, 3000, "Invalid", "AArch64: R_AARCH64_JUMP26 Need to fixup with addend!.");
- }
break;
case R_AARCH64_ADR_PREL_PG_HI21: