/usr/src/gcc-6/debian/patches/pr79041-linaro.diff is in gcc-6-source 6.4.0-17ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # DP: Fix PR target/79041, aarch64 backend emitting R_AARCH64_ADR_PREL_PG_HI21
# DP: relocation despite -mpc-relative-literal-loads option being used
--- a/src/gcc/config/aarch64/aarch64.c 2017-06-20 17:22:23.967114886 +0200
+++ b/src/gcc/config/aarch64/aarch64.c 2017-06-20 17:31:37.023190332 +0200
@@ -9556,7 +9556,8 @@
/* This is alright even in PIC code as the constant
pool reference is always PC relative and within
the same translation unit. */
- if (CONSTANT_POOL_ADDRESS_P (x))
+ if (!aarch64_pcrelative_literal_loads
+ && CONSTANT_POOL_ADDRESS_P (x))
return SYMBOL_SMALL_ABSOLUTE;
else
return SYMBOL_FORCE_TO_MEM;
|