Binutils, how to profile code?

I’m trying to build an exec for profiling performances, and every object files have been compiled using option ‘-pg’.
Now, at the linker stage, I’m told:

c++ -O2 -g -pg -Wl,-pg *.o -o exec_name
/boot/system/develop/tools/bin/…/lib/gcc/x86_64-unknown-haiku/11.2.0/…/…/…/…/x86_64-unknown-haiku/bin/ld: unrecognized option ‘-pg’
/boot/system/develop/tools/bin/…/lib/gcc/x86_64-unknown-haiku/11.2.0/…/…/…/…/x86_64-unknown-haiku/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

(using binutils 2.31.1 on x86_64)
Has the profiling option been renamed perhaps?

I see there is great talk floating around “-pg” option when using gcc/gprof suite, but most of it is misleading when mentioning “linker” stage - it is NOT meant to be fed to ld, now I figured it out, it is just needed when you call gcc/g++ to get the final exec file (WTH!)
I will open a more proper topic, sorry for the buzz.