[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/22291] GOLD silently produces an nonworking dynamic executable
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gold/22291] GOLD silently produces an nonworking dynamic executable |
Date: |
Thu, 09 Nov 2017 00:03:32 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22291
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dc8d2d90da3f191ae0461900ab98e3b29cc2b280
commit dc8d2d90da3f191ae0461900ab98e3b29cc2b280
Author: H.J. Lu <address@hidden>
Date: Wed Nov 8 15:56:54 2017 -0800
gold: Ignore def/ref from a dynamic object for special symbols
Since special symbol must be defined in a regular object, definition
from a dynamic object should be ignored. If special symbol has the
hidden or internal visibility, reference from a dynamic object should
also be ignored. Also __start and __stop symbols in a dynamic object
shouldn't be preempted.
PR gold/22291
* layout.cc (Layout::define_section_symbols): Use STV_PROTECTED
for __start and __stop symbols.
* symtab.cc (Symbol_table::define_special_symbol): Add an
argument, visibility. Ignore definition and reference from
a dynamic object, depending on visibility.
(Symbol_table::do_define_in_output_data): Pass visibility to
define_special_symbol.
(Symbol_table::do_define_in_output_segment): Likewise.
(Symbol_table::do_define_as_constant): Likewise.
(Symbol_table::add_undefined_symbol_from_command_line): Pass
STV_DEFAULT to define_special_symbol.
* symtab.h (Symbol_table::define_special_symbol): Add an
argument, visibility.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/22291] GOLD silently produces an nonworking dynamic executable,
cvs-commit at gcc dot gnu.org <=