Provides replacement VDSO with sigreturn trampolines (__kernel_sigreturn, __kernel_rt_sigreturn) and syscall stubs (clock_gettime, clock_gettime64, clock_getres, gettimeofday). Both LE and BE blobs are committed and selected at compile time via TARGET_BIG_ENDIAN. The BE variant requires an sh4eb-unknown-linux-gnu toolchain; sh4-unknown-linux-gnu does not support -mb. CFI register numbers follow GCC's SH_DEBUGGER_REGNO: PR=17, GBR=18, MACH=20, MACL=21, FPUL=23, FPSCR=24, FR0-15=25-40. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
18 lines
803 B
Meson
18 lines
803 B
Meson
syscall_nr_generators += {
|
|
'sh4': generator(sh,
|
|
arguments: [ meson.current_source_dir() / 'syscallhdr.sh', '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@' ],
|
|
output: '@BASENAME@_nr.h')
|
|
}
|
|
|
|
vdso_le_inc = gen_vdso.process('vdso-le.so',
|
|
extra_args: ['-s', '__kernel_sigreturn',
|
|
'-r', '__kernel_rt_sigreturn',
|
|
'-p', 'vdso_le'])
|
|
|
|
vdso_be_inc = gen_vdso.process('vdso-be.so',
|
|
extra_args: ['-s', '__kernel_sigreturn',
|
|
'-r', '__kernel_rt_sigreturn',
|
|
'-p', 'vdso_be'])
|
|
|
|
linux_user_ss.add(when: 'TARGET_SH4', if_true: [vdso_le_inc, vdso_be_inc])
|