All Questions
2 questions
0
votes
0
answers
572
views
gdb hangs when starting debug of 32-bit ARM assembly with dynamic linked libc
I am running Ubuntu 20.04 32-bit server on a Raspberry Pi4 (armv7l architecture with Cortex-A72). I have a simple program, return.s as follows:
.section .text
.global _start
_start: ...
13
votes
1
answer
5k
views
Why do program-level constructors get called by `__libc_csu_init` but destructors don't get called by `__libc_csu_fini`?
Here's a simple program:
void __attribute__ ((constructor)) dumb_constructor(){}
void __attribute__ ((destructor)) dumb_destructor(){}
int main() {}
I compile it with the following flags:
g++ -O0 ...