summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-10-25 03:59:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-10-25 03:59:36 +0000
commit7d9bcb88cef5ad7eb3ca28d4516044750802e4c0 (patch)
treed1f4857d12ee18e522ba4aa6c734ac1860a8e805 /ld
parent41b0a19ae74ab718bf99556acc4a54c6dc826ad8 (diff)
downloadbinutils-redhat-7d9bcb88cef5ad7eb3ca28d4516044750802e4c0.tar.gz
Remove address check if HIDDEN_UNDEF_TEST is defined
* ld-elfvsb/main.c (main_visibility_checkcom): Remove address check for visibility_def if HIDDEN_UNDEF_TEST is defined. (main_visibility_checkweak): Remove address check for visibility_func if HIDDEN_UNDEF_TEST is defined.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-elfvsb/main.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0f99f97594..2ed8cb759b 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elfvsb/main.c (main_visibility_checkcom): Remove address
+ check for visibility_def if HIDDEN_UNDEF_TEST is defined.
+ (main_visibility_checkweak): Remove address check for
+ visibility_func if HIDDEN_UNDEF_TEST is defined.
+
2012-10-25 Nathan Sidwell <nathan@codesourcery.com>
* ld-scripts/empty-aligned.d: Revert last change. Allow more
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c
index b498d43459..5419826f50 100644
--- a/ld/testsuite/ld-elfvsb/main.c
+++ b/ld/testsuite/ld-elfvsb/main.c
@@ -205,13 +205,13 @@ asm (".hidden visibility_func");
int
main_visibility_checkcom (void)
{
- return & visibility_def != NULL && visibility_def == 2;
+ return visibility_def == 2;
}
int
main_visibility_checkweak (void)
{
- return & visibility_func != NULL && visibility_func () == 2;
+ return visibility_func () == 2;
}
#else
int