mimalloc is a compact general purpose allocator with excellent performance.
MIT License
10.44k
stars
842
forks
source link
Is it ok that `ld-linux-x86-64.so.2` `Scrt1.o` `crti.o` and `crtbeginS.o` is located before `mimalloc.o` in the linker commandline when static override malloc? #902
the -v flag tells the linker to print everything about linking. When I check the output I found the /lib64/ld-linux-x86-64.so.2Scrt1.ocrti.o and crtbeginS.o is located before mimalloc.o:
I wonder if this is enough? /lib64/ld-linux-x86-64.so.2Scrt1.ocrti.o and crtbeginS.o seems related to setup C runtime and I don't know how to add linker flags before them……
Hello:
I have a linux cmake project and I want to static override the malloc. After reading the readme I wrote this in my cmake project:
the
-v
flag tells the linker to print everything about linking. When I check the output I found the/lib64/ld-linux-x86-64.so.2
Scrt1.o
crti.o
andcrtbeginS.o
is located beforemimalloc.o
:short version:
full version:
the readme says
I wonder if this is enough?
/lib64/ld-linux-x86-64.so.2
Scrt1.o
crti.o
andcrtbeginS.o
seems related to setup C runtime and I don't know how to add linker flags before them……