about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-29 05:32:54 +0200
committerGitHub <noreply@github.com>2019-08-29 05:32:54 +0200
commit1c4a9a905023956bdad921bb683533704f3a14ac (patch)
treeeb14e18654b3d03ef50b412f55d4fdf8adf072e6 /src/rustllvm/RustWrapper.cpp
parentf0e2895cf892e8abf0d19d8e09b1a58dd618f01e (diff)
parent42bd6fa22b753858bd57aec5e987247fd6a00897 (diff)
downloadrust-1c4a9a905023956bdad921bb683533704f3a14ac.tar.gz
rust-1c4a9a905023956bdad921bb683533704f3a14ac.zip
Rollup merge of #63965 - loganwendholt:linker-script-fix, r=michaelwoerister
Prevent syntax error in LD linker version script

As discussed in #63925, there is an edge case in which an invalid LD version script is generated when building a `cdylib` with no exported symbols. This PR makes a slight modification to the  LD version script generation by first checking to see if any symbols need to be exported. If not, the `global` section of the linker script is simply omitted, and the syntax error is averted.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions