This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] x86: Update UNDEFINED_WEAK_RESOLVED_TO_ZERO comments


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99180bccaf09413c9ddb28e51fa30f1ca4966583

commit 99180bccaf09413c9ddb28e51fa30f1ca4966583
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Oct 6 16:45:37 2017 -0700

    x86: Update UNDEFINED_WEAK_RESOLVED_TO_ZERO comments
    
    	* elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Update
    	comments.

Diff:
---
 bfd/ChangeLog   |  5 +++++
 bfd/elfxx-x86.h | 11 ++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index de01ad3..79d980d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Update
+	comments.
+
 2017-10-06  John Baldwin  <jhb@FreeBSD.org>
 
 	* elf-bfd.h (struct elf_backend_data): Add
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index 8e78b7e..a2f5fc2 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -49,13 +49,10 @@
 #define SYMBOL_REFERENCES_LOCAL_P(INFO, H) \
   _bfd_x86_elf_link_symbol_references_local ((INFO), (H))
 
-/* Is a undefined weak symbol which is resolved to 0.  Reference to an
-   undefined weak symbol is resolved to 0 when building executable if
-   it isn't dynamic and
-   1. Has non-GOT/non-PLT relocations in text section.  Or
-   2. Has no GOT/PLT relocation.
-   Local undefined weak symbol is always resolved to 0.
- */
+/* TRUE if an undefined weak symbol should be resolved to 0.  Local
+   undefined weak symbol is always resolved to 0.  Reference to an
+   undefined weak symbol is resolved to 0 in executable if undefined
+   weak symbol should be resolved to 0 (zero_undefweak > 0).  */
 #define UNDEFINED_WEAK_RESOLVED_TO_ZERO(INFO, EH) \
   ((EH)->elf.root.type == bfd_link_hash_undefweak		 \
    && (SYMBOL_REFERENCES_LOCAL_P ((INFO), &(EH)->elf)		 \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]