summaryrefslogtreecommitdiff
path: root/gas/write.h
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
committerChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
commit4b728c64ce45b931b10bf83dcecb49e43bff5e87 (patch)
treef153e37bcc7163eb8144a1e85818107d1980bc13 /gas/write.h
parent4a8ac447d8600f9a1d659ef651fdf45b3d971fe6 (diff)
downloadbinutils-redhat-4b728c64ce45b931b10bf83dcecb49e43bff5e87.tar.gz
2013-03-08 Chung-Lin Tang <cltang@codesourcery.com>
* write.h (struct fix): Add fx_dot_frag field. (dot_frag): Declare. * write.c (dot_frag): New variable. (fix_new_internal): Set fx_dot_frag field with dot_frag. (fixup_segment): Base calculation of fx_offset with fx_dot_frag. * expr.c (expr): Save value of frag_now in dot_frag when setting dot_value. * read.c (emit_expr): Likewise. Delete comments.
Diffstat (limited to 'gas/write.h')
-rw-r--r--gas/write.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/write.h b/gas/write.h
index d7215816da..36de533b32 100644
--- a/gas/write.h
+++ b/gas/write.h
@@ -88,6 +88,9 @@ struct fix
/* The value of dot when the fixup expression was parsed. */
addressT fx_dot_value;
+ /* The frag fx_dot_value is based on. */
+ fragS *fx_dot_frag;
+
/* Next fixS in linked list, or NULL. */
struct fix *fx_next;
@@ -162,6 +165,7 @@ struct reloc_list
extern int finalize_syms;
extern symbolS *abs_section_sym;
extern addressT dot_value;
+extern fragS *dot_frag;
extern struct reloc_list* reloc_list;
extern void append (char **charPP, char *fromP, unsigned long length);