[Darwin, machopic 1/n] Consider visibility in indirections.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 7 Oct 2019 20:21:50 +0000 (20:21 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 7 Oct 2019 20:21:50 +0000 (20:21 +0000)
commitb393e5ede4064d6c2da289ed0b66b8e80e033c54
tree7326f49dbe32842f47e93a6bb38ca358a6293717
parent2161a445d1c129bf2faa031bd862fa4fe3a4121b
[Darwin, machopic 1/n] Consider visibility in indirections.

For weak, hidden vars the indirection should just be as normal, that
is that the indirections for such symbols should appear in the non-lazy
symbol pointers table, not in the .data section.

gcc/ChangeLog:

2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c (machopic_output_indirection): Don't put
hidden symbol indirections into the .data section, use the
non-lazy symbol pointers section as normal.
(darwin_encode_section_info): Record if a symbol is hidden.
* config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
(MACHO_SYMBOL_HIDDEN_VIS_P): New.

From-SVN: r276675
gcc/ChangeLog
gcc/config/darwin.c
gcc/config/darwin.h