Richard Weinberger
2017-05-24 07:02:29 UTC
Florian,
not?
Thanks,
//richard
Building a statically linked UML kernel on a Centos 6.9 host resulted in
(.text+0x8490): multiple definition of `longjmp'
first defined here
(.text+0x77cd): warning: the use of `mktemp' is dangerous, better use
`mkstemp'
collect2: ld returned 1 exit status
make[4]: *** [vmlinux] Error 1
Adopt a solution similar to the one done for vmap where we define
longjmp/setjmp to be kernel_longjmp/setjmp. In the process, make sure we
do rename the functions in arch/x86/um/setjmp_*.S accordingly.
What is not so clear to me, why are you facing this build issue and other users, including me,(.text+0x8490): multiple definition of `longjmp'
first defined here
(.text+0x77cd): warning: the use of `mktemp' is dangerous, better use
`mkstemp'
collect2: ld returned 1 exit status
make[4]: *** [vmlinux] Error 1
Adopt a solution similar to the one done for vmap where we define
longjmp/setjmp to be kernel_longjmp/setjmp. In the process, make sure we
do rename the functions in arch/x86/um/setjmp_*.S accordingly.
not?
Thanks,
//richard