-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I have tried to build a DJGPP cross toolchain with the script on a fresh debian.
There were trouble with missing depedencies, I installed libgmp-dev libmpfr-dev to solve part of them and manualy copy libgmp.la and another lib from build directory to install directory. It seemed to be weird, but, the script was able to build GDB and finished the install.
This toolchain were build to try Gprof, so I write a litle program and a makefile to test it.
The program just print some compile info and its parameters and environnement and call 2 handmade functions.
First things: Using argument's counter and argument's string array make the program crash (SIGSEGV). To solve this, "__crt0_argc" and "__crt0_argv" from "crt0.h" were used.
Second things: "gmon.out" is written but, it is not usable, like an empty file.
it look like this stackoverflow question, so "-no-pie" and "-fno-pie" were used but nothing change.
Is this a bug or did i make something wrong ?
Software in use :
GNU gprof (GNU Binutils) 2.43.1
gcc version 14.2.0 (GCC)
DJGPP 2.5