Skip to content

Commit

Permalink
i386: use the new-style retpoline thunk names for external thunks, be…
Browse files Browse the repository at this point in the history
…cause nothing else will work
  • Loading branch information
richlowe authored and alarcher committed Aug 7, 2019
1 parent 9e2c637 commit b8e7341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcc/config/i386/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -12099,7 +12099,8 @@ indirect_thunk_name (char name[32], unsigned int regno,
if (regno != INVALID_REGNUM && regno != CX_REG && ret_p)
gcc_unreachable ();

if (USE_HIDDEN_LINKONCE)
if (USE_HIDDEN_LINKONCE ||
(cfun && cfun->machine->indirect_branch_type == indirect_branch_thunk_extern))
{
const char *bnd = need_bnd_p ? "_bnd" : "";
const char *ret = ret_p ? "return" : "indirect";
Expand Down

0 comments on commit b8e7341

Please sign in to comment.