Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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: ...
James Foster's user avatar
  • 2,210
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 ...
OneRaynyDay's user avatar
  • 3,938