Skip to content

Commit 78e66eb

Browse files
Pull up following revision(s) (requested by rin in ticket #1157):
external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.22 gas: vax: PIC: Use GOT for pointer for global function in same file, instead of PLT This fixes function-pointer comparison for shared libraries, encountered in, e.g., many rump-based ATF cases. See PR port-vax/59326 for more details. Reported to upstream as: https://sourceware.org/bugzilla/show_bug.cgi?id=32941
1 parent fbd84d7 commit 78e66eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • external/gpl3/binutils/dist/gas/config

external/gpl3/binutils/dist/gas/config/tc-vax.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ md_estimate_size_before_relax (fragS *fragP, segT segment)
437437
|| ((unsigned char *) fragP->fr_opcode)[0] == VAX_CALLG
438438
|| ((unsigned char *) fragP->fr_opcode)[0] == VAX_JSB
439439
|| ((unsigned char *) fragP->fr_opcode)[0] == VAX_JMP
440-
|| S_IS_FUNCTION (fragP->fr_symbol))
440+
#if 0 /* port-vax/59326 */
441+
|| S_IS_FUNCTION (fragP->fr_symbol)
442+
#endif
443+
)
441444
reloc_type = BFD_RELOC_32_PLT_PCREL;
442445
else
443446
reloc_type = BFD_RELOC_32_GOT_PCREL;

0 commit comments

Comments
 (0)