[all-commits] [llvm/llvm-project] c6a654: [compiler-rt] Add a prefix on the windows mmap sym...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Jan 19 00:01:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6a6547798ca641b985456997cdf986bb99b0707
      https://github.com/llvm/llvm-project/commit/c6a6547798ca641b985456997cdf986bb99b0707
  Author: Martin Storsjö <martin at martin.st>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M compiler-rt/lib/profile/WindowsMMap.c
    M compiler-rt/lib/profile/WindowsMMap.h

  Log Message:
  -----------
  [compiler-rt] Add a prefix on the windows mmap symbols (#78037)

For Windows, the compiler-rt profile library contains a polyfill
reimplementation of the mmap family of functions.

Previously, the runtime library exposed those symbols like, "mmap", in
the user symbol namespace. This could cause misdetections by configure
scripts that check for the "mmap" function just by linking, without
including headers.

Add a prefix on the symbols, and make an undeclared function static.

This fixes such an issue reported at
https://github.com/mstorsjo/llvm-mingw/issues/390.




More information about the All-commits mailing list