diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-05-29 19:59:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-05-29 19:59:55 +0000 |
commit | 4ea49053248cb81c7ffc8c1a186f9d0121bcb6b5 (patch) | |
tree | 8fe8497cabb59e1289d2dce3b4057faa41f311a8 /gas/read.c | |
parent | 05a43d26fe330ec493ec304238c72c7c3c64ebb1 (diff) | |
download | gdb-4ea49053248cb81c7ffc8c1a186f9d0121bcb6b5.zip gdb-4ea49053248cb81c7ffc8c1a186f9d0121bcb6b5.tar.gz gdb-4ea49053248cb81c7ffc8c1a186f9d0121bcb6b5.tar.bz2 |
Based on patch from Klaus Kaempf <kkaempf@progis.de>:
* struc-symbol.h (struct broken_word): Add seg and subseg fields.
* read.c (emit_expr): Initialize seg and subseg fields of a new
broken word.
* write.c (write_object_file): Switch to the appropriate segment
and subsegment when processing a broken word.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2353,6 +2353,10 @@ s_org (ignore) expressionS exp; register long temp_fill; +#ifdef md_flush_pending_output + md_flush_pending_output (); +#endif + /* The m68k MRI assembler has a different meaning for .org. It means to create an absolute section at a given address. We can't support that--use a linker script instead. */ @@ -3427,6 +3431,8 @@ emit_expr (exp, nbytes) x = (struct broken_word *) xmalloc (sizeof (struct broken_word)); x->next_broken_word = broken_words; broken_words = x; + x->seg = seg_now; + x->subseg = subseg_now; x->frag = frag_now; x->word_goes_here = p; x->dispfrag = 0; |