mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Allow {extern symbol}-{symbol in same segment} transformation.
This was earlier limited to local symbols. Reported by: Dave Lee <davelee.com@gmail.com> svn path=/trunk/yasm/; revision=2064
This commit is contained in:
parent
180d18bc11
commit
2d36cf72ae
1 changed files with 2 additions and 2 deletions
|
|
@ -276,8 +276,8 @@ value_finalize_scan(yasm_value *value, yasm_expr *e,
|
|||
&& sect2 == yasm_bc_get_section(expr_precbc)))) {
|
||||
for (j=0; j<e->numterms; j++) {
|
||||
if (e->terms[j].type == YASM_EXPR_SYM
|
||||
&& yasm_symrec_get_label(e->terms[j].data.sym,
|
||||
&precbc2)
|
||||
&& !yasm_symrec_get_equ(e->terms[j].data.sym)
|
||||
&& !yasm_symrec_is_special(e->terms[j].data.sym)
|
||||
&& (used & (1<<j)) == 0) {
|
||||
/* Mark as used */
|
||||
used |= 1<<j;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue