• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisiond2fb41341a08f58bcae160d682b90b01e5b37492 (tree)
l'heure2022-12-12 20:55:55
AuteurYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Message de Log

WIP: gas rx-pic fix.

Change Summary

Modification

--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -1327,11 +1327,7 @@ md_assemble (char * str)
13271327 else
13281328 exp = & rx_bytes.fixups[i].exp;
13291329
1330- if (exp->X_op == O_PIC_reloc)
1331- {
1332- exp->X_op = O_symbol;
1333- }
1334- if (exp->X_add_symbol != GOT_symbol)
1330+ if (exp->X_add_symbol != GOT_symbol && exp->X_op != O_PIC_reloc)
13351331 {
13361332 f = fix_new_exp (frag_then,
13371333 (char *) bytes + idx - frag_then->fr_literal,
@@ -1342,6 +1338,7 @@ md_assemble (char * str)
13421338 }
13431339 else
13441340 {
1341+ exp->X_op = O_symbol;
13451342 f = fix_new_exp (frag_then,
13461343 (char *) bytes + idx - frag_then->fr_literal,
13471344 4,
@@ -2630,6 +2627,7 @@ md_apply_fix (struct fix * f ATTRIBUTE_UNUSED,
26302627 case BFD_RELOC_32_PLT_PCREL:
26312628 memset(op, 0xff, 4);
26322629 break;
2630+ case BFD_RELOC_RX_GOT:
26332631 case BFD_RELOC_RX_GOTPC:
26342632 memset(op, 0xff, 4);
26352633 break;