summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/WinLinkDriverTest.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-08-11 21:31:07 +0000
committerRui Ueyama <ruiu@google.com>2014-08-11 21:31:07 +0000
commitbff29b78b519baf4f9d0747eddf73e383c7dc4ad (patch)
treee98466b49c52539545764238813683d41da40c83 /lld/unittests/DriverTests/WinLinkDriverTest.cpp
parent23430ccb042f11eda205c390d4c2a0d07d08b2e6 (diff)
downloadbcm5719-llvm-bff29b78b519baf4f9d0747eddf73e383c7dc4ad.tar.gz
bcm5719-llvm-bff29b78b519baf4f9d0747eddf73e383c7dc4ad.zip
[PECOFF] Fix /profile option.
/profile implies /fixed:no -- so we had to *enable* base relocations rather than disabling it. llvm-svn: 215389
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r--lld/unittests/DriverTests/WinLinkDriverTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp
index c713b9c3e5d..855af939bd1 100644
--- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp
+++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp
@@ -658,8 +658,8 @@ TEST_F(WinLinkParserTest, OptUnknown) {
TEST_F(WinLinkParserTest, Profile) {
EXPECT_TRUE(parse("link.exe", "/profile", "a.obj", nullptr));
EXPECT_TRUE(_context.deadStrip());
- EXPECT_FALSE(_context.getBaseRelocationEnabled());
- EXPECT_FALSE(_context.getDynamicBaseEnabled());
+ EXPECT_TRUE(_context.getBaseRelocationEnabled());
+ EXPECT_TRUE(_context.getDynamicBaseEnabled());
}
//
OpenPOWER on IntegriCloud