aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMichael Klemm <michael.klemm@amd.com>2023-11-28 21:20:30 +0100
committerGitHub <noreply@github.com>2023-11-28 14:20:30 -0600
commit17feb330aab39c6c0c21ee9b02efb484dfb2261e (patch)
tree69b4e7751fddba961450fa5ddfe09af62fd66b2d /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent3a6f02a6581b49b269710eea944dc114166403ed (diff)
downloadllvm-17feb330aab39c6c0c21ee9b02efb484dfb2261e.zip
llvm-17feb330aab39c6c0c21ee9b02efb484dfb2261e.tar.gz
llvm-17feb330aab39c6c0c21ee9b02efb484dfb2261e.tar.bz2
[flang][Driver] Let the linker fail on multiple definitions of main() (#73124)
The flang driver was silently ignoring the `main()` function in `Fortran_main.a` for entry into the Fortran program unit if an external `main()` as supplied (e.g., via cross-language linkage with Fortran and C/C++). This PR fixes this by making sure that the linker always pulls in the `main()` definition from `Fortran_main.a` and consequently fails due to multiple definitions of the same symbol if another object file also has a definition of `main()`.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions