diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2022-09-14 01:11:45 -0700 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2022-09-14 18:38:09 -0700 |
commit | fe39ffdc202f04397f31557f17170b40bc42b77a (patch) | |
tree | c3ca6dc745c7d4a6d13d1403fabf2240844b7ba9 /gprofng/libcollector/memmgr.c | |
parent | 8422cbe455d762f068ed1edefc717f36a105da42 (diff) | |
download | gdb-fe39ffdc202f04397f31557f17170b40bc42b77a.zip gdb-fe39ffdc202f04397f31557f17170b40bc42b77a.tar.gz gdb-fe39ffdc202f04397f31557f17170b40bc42b77a.tar.bz2 |
gprofng: fix build issues on musl
gprofng/ChangeLog
2022-09-14 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR gprofng/29477
* configure.ac: Set __MUSL_LIBC.
* configure: Rebuild.
* common/config.h.in: Rebuild.
* src/collector_module.h: Fix compiler errors because mmap64, open64,
pwrite64 are macros and getcontext() is absent on musl.
* libcollector/collector.c: Likewise.
* libcollector/hwprofile.c: Likewise.
* libcollector/iolib.c: Likewise.
* libcollector/libcol_util.c: Likewise.
* libcollector/linetrace.c: Likewise.
* libcollector/memmgr.c: Likewise.
* libcollector/profile.c: Likewise.
* libcollector/unwind.c: Likewise.
* libcollector/dispatcher.c: Likewise.
* src/Experiment.cc: Likewise.
* libcollector/collector.h: Use dlsym() because dlvsym() is not defined
on musl.
* libcollector/iotrace.c: Remove interposition of versioned functions.
* libcollector/mmaptrace.c: Likewise.
* libcollector/libcol_util.h: Fix -Wint-to-pointer-cast warnings.
* libcollector/jprofile.c: Likewise.
* libcollector/synctrace.c: Include "collector.h".
* src/Print.cc: Use get_basename() because basename() is not defined
on musl.
* common/hwcdrv.c: Fix -Wformat= warnings.
Diffstat (limited to 'gprofng/libcollector/memmgr.c')
-rw-r--r-- | gprofng/libcollector/memmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/libcollector/memmgr.c b/gprofng/libcollector/memmgr.c index 5ada421..aa13ea7 100644 --- a/gprofng/libcollector/memmgr.c +++ b/gprofng/libcollector/memmgr.c @@ -131,7 +131,7 @@ alloc_chunk (unsigned sz, int log) if (log == 1) Tprintf (DBG_LT2, "alloc_chunk mapping %u, rounded up from %u\n", (unsigned int) chunksz, sz); /* mmap64 is only in 32-bits; this call goes to mmap in 64-bits */ - ptr = (char*) CALL_UTIL (mmap64)(0, chunksz, PROT_READ | PROT_WRITE, + ptr = (char*) CALL_UTIL (mmap64_)(0, chunksz, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, (int) -1, (off64_t) 0); if (ptr == MAP_FAILED) { |