This is a general bug, there are several places where labels are used in embedded asms.
This bug concerns the immediate issue of compilation failures when clone.c:make_clone3_syscall is inlined,
causing the label "parent" to be multiply defined.
In file included from ../dynamorio/suite/tests/linux/clone.c:50:
In file included from ../dynamorio/suite/tests/tools.h:46:
../dynamorio/core/drlibc/drlibc.h:147:43: warning: declaration of
'struct stat64' will not be visible outside of this function
[-Wvisibility]
dr_stat_syscall(const char *fname, struct stat64 *st);
^
../dynamorio/suite/tests/linux/clone.c:253:32: error: symbol 'parent' is
already defined
"call *%%rdx\n\t"
^
<inline asm>:9:2: note: instantiated into assembly here
parent:
^
../dynamorio/suite/tests/linux/clone.c:253:32: error: symbol 'parent' is
already defined
"call *%%rdx\n\t"
^
<inline asm>:9:2: note: instantiated into assembly here
parent:
^
../dynamorio/suite/tests/linux/clone.c:253:32: error: symbol 'parent' is
already defined
"call *%%rdx\n\t"
^
<inline asm>:9:2: note: instantiated into assembly here
parent:
^
../dynamorio/suite/tests/linux/clone.c:253:32: error: symbol 'parent' is
already defined
"call *%%rdx\n\t"
^
<inline asm>:9:2: note: instantiated into assembly here
parent:
^
1 warning and 4 errors generated.
Versions
What version of DynamoRIO are you using? HEAD @ 3da572fb4fdb7021d58c88c421ba5993b9c9c0b9
What operating system version are you running on? 64 bit linux
Describe the bug
This is a general bug, there are several places where labels are used in embedded asms. This bug concerns the immediate issue of compilation failures when clone.c:make_clone3_syscall is inlined, causing the label "parent" to be multiply defined.
To Reproduce
-->
Versions