aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-01 02:00:15 +0000
committerAlan Modra <amodra@gmail.com>2005-03-01 02:00:15 +0000
commitc9dea48b1faf7a8a243673dd32a0089036f7ea36 (patch)
tree9e1819147081e7c3fbf2923cd5ca4bf984212980 /gas/write.c
parent055d1eb0f88fc42495d1fac45e89e5ef06ab207d (diff)
downloadfsf-binutils-gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.zip
fsf-binutils-gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.tar.gz
fsf-binutils-gdb-c9dea48b1faf7a8a243673dd32a0089036f7ea36.tar.bz2
* as.h (assert): Warning fix.
* expr.c (expr): Correct assertion. * read.c (s_comm_internal): Remove assertion. * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER. (fixup_segment): Remove assertion. * config/tc-dlx.c (machine_ip): Remove untrue assertions. (md_apply_fix3): Likewise. * config/tc-i370.c (md_begin): Correct assertion. (i370_macro): Warning fix for assertion.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c
index c0749e8..69c6229 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -2395,7 +2395,9 @@ relax_segment (struct frag *segment_frag_root, segT segment)
into the section. Here it is assumed that the
section's VMA is zero, and can omit subtracting it
from the symbol's value to get the address offset. */
- know (S_GET_SECTION (symbolP)->vma == 0);
+#ifdef BFD_ASSEMBLER
+ know (S_GET_SEGMENT (symbolP)->vma == 0);
+#endif
target += S_GET_VALUE (symbolP) * OCTETS_PER_BYTE;
}
@@ -2583,7 +2585,6 @@ fixup_segment (fixS *fixP, segT this_segment)
if (fixP->fx_addsy != NULL
&& symbol_mri_common_p (fixP->fx_addsy))
{
- know (fixP->fx_addsy->sy_value.X_op == O_symbol);
add_number += S_GET_VALUE (fixP->fx_addsy);
fixP->fx_offset = add_number;
fixP->fx_addsy