[WebAssembly][lld] control __data_end export with config->shared
authorGuanzhong Chen <gzchen@google.com>
Thu, 8 Aug 2019 22:40:04 +0000 (22:40 +0000)
committerGuanzhong Chen <gzchen@google.com>
Thu, 8 Aug 2019 22:40:04 +0000 (22:40 +0000)
commitc5ccbf52ad9343da6768a6390de71b13f948defc
tree388dbe908d95c0fed36952545ad9bc3ec86cbf64
parent2689ed0f9de6972cc7b858810c432f03605cc6e1
[WebAssembly][lld] control __data_end export with config->shared

Summary:
Emscripten expects `__data_end` to show up in PIC code as long as it's not
linked with `--shared`.

Currently, Emscripten breaks with latest LLVM because `__data_end` is controlled
by `config->isPic` instead of `config->shared`.`

Reviewers: tlively, sbc100

Reviewed By: sbc100

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65980

llvm-svn: 368361
lld/wasm/Driver.cpp