linux/arch
Damien Le Moal 09accc3a05 riscv: Disable data start offset in flat binaries
uclibc/gcc combined with elf2flt riscv linker file fully resolve the
PC relative __global_pointer$ value at compile time and do not generate
a relocation entry to set a correct value of the gp register at runtime.
As a result, if the flatbin loader offsets the start of the data
section, the relative position change between the text and data sections
compared to the compile time positions results in an incorrect gp value
being used. This causes flatbin executables to crash.

Avoid this problem by enabling CONFIG_BINFMT_FLAT_NO_DATA_START_OFFSET
automatically when CONFIG_RISCV is enabled and CONFIG_MMU is disabled.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
2021-04-23 15:33:40 +10:00
..
alpha
arc ARC: treewide: avoid the pointer addition with NULL pointer 2021-03-22 10:05:43 -07:00
arm ARM SoC fixes for v5.12, part 2 2021-04-18 13:23:26 -07:00
arm64 ARM SoC fixes for v5.12, part 2 2021-04-18 13:23:26 -07:00
csky csky: change a Kconfig symbol name to fix e1000 build error 2021-04-16 16:10:36 -07:00
h8300
hexagon
ia64 ia64: fix discontig.c section mismatches 2021-04-16 16:10:37 -07:00
m68k m68k: fix flatmem memory model setup 2021-04-12 09:34:26 +10:00
microblaze
mips MIPS: kernel: setup.c: fix compilation error 2021-03-30 14:51:23 +02:00
nds32 nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff 2021-04-09 14:54:23 -07:00
nios2
openrisc
parisc parisc: math-emu: Few spelling fixes in the file fpu.h 2021-04-06 15:34:14 +02:00
powerpc powerpc/vdso: Make sure vdso_wrapper.o is rebuilt everytime vdso.so is rebuilt 2021-04-02 00:18:09 +11:00
riscv riscv: Disable data start offset in flat binaries 2021-04-23 15:33:40 +10:00
s390 s390/entry: save the caller of psw_idle 2021-04-12 12:44:31 +02:00
sh
sparc
um
x86 kasan: remove redundant config option 2021-04-16 16:10:36 -07:00
xtensa xtensa: fix uaccess-related livelock in do_page_fault 2021-03-29 11:25:11 -07:00
.gitignore
Kconfig