Révision | d2fb41341a08f58bcae160d682b90b01e5b37492 (tree) |
---|---|
l'heure | 2022-12-12 20:55:55 |
Auteur | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
WIP: gas rx-pic fix.
@@ -1327,11 +1327,7 @@ md_assemble (char * str) | ||
1327 | 1327 | else |
1328 | 1328 | exp = & rx_bytes.fixups[i].exp; |
1329 | 1329 | |
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) | |
1335 | 1331 | { |
1336 | 1332 | f = fix_new_exp (frag_then, |
1337 | 1333 | (char *) bytes + idx - frag_then->fr_literal, |
@@ -1342,6 +1338,7 @@ md_assemble (char * str) | ||
1342 | 1338 | } |
1343 | 1339 | else |
1344 | 1340 | { |
1341 | + exp->X_op = O_symbol; | |
1345 | 1342 | f = fix_new_exp (frag_then, |
1346 | 1343 | (char *) bytes + idx - frag_then->fr_literal, |
1347 | 1344 | 4, |
@@ -2630,6 +2627,7 @@ md_apply_fix (struct fix * f ATTRIBUTE_UNUSED, | ||
2630 | 2627 | case BFD_RELOC_32_PLT_PCREL: |
2631 | 2628 | memset(op, 0xff, 4); |
2632 | 2629 | break; |
2630 | + case BFD_RELOC_RX_GOT: | |
2633 | 2631 | case BFD_RELOC_RX_GOTPC: |
2634 | 2632 | memset(op, 0xff, 4); |
2635 | 2633 | break; |