I am trying to change glibc for use with my program. I wanted to add code to the mmap function (not the mmap system call, but the function in glibc that makes the mmap system call). However, I see several mmap or mmap64.c files inside the source code directory.
My architecture is x86-64, so I ignored the files in another architecture directory. However, I do not know mmap from which the compiler uses the file. I intentionally inserted some garbage code (so that the compiler gives an error) in different files containing the mmap function, but the compiler compiles glibc in order without giving any errors. I even see .o files. I have no idea what to do. Any easy way to determine which mmap compiler compiler is compiling?
source
share