diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-02-14 22:49:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-02-14 22:49:25 +0000 |
commit | d7bf6158eb08d2d5630e2aa63776268ecc2219c2 (patch) | |
tree | 93b6c3f166275aa7db0e369971f635ebb45e6941 /gas/doc | |
parent | d7e89eaff882072fcb26e10d37cee01cf2bf3b09 (diff) | |
download | gdb-d7bf6158eb08d2d5630e2aa63776268ecc2219c2.zip gdb-d7bf6158eb08d2d5630e2aa63776268ecc2219c2.tar.gz gdb-d7bf6158eb08d2d5630e2aa63776268ecc2219c2.tar.bz2 |
* read.c (do_align): Add max parameter. Change all callers.
Remove useless static variables.
(s_align): New static function. Do common portion of
s_align_bytes and s_align_ptwo.
(s_align_bytes, s_align_ptwo): Just call s_align.
* frags.c (frag_align): Add max parameter. Change all callers.
(frag_align_pattern): Likewise.
* frags.h (frag_align, frag_align_pattern): Update declarations.
* write.c (relax_segment): Limit alignment change to fr_subtype.
Fix some types to be addressT.
* config/obj-coff.c (size_section): Likewise.
* config/obj-ieee.c (size_section): Likewise.
* config/tc-d10v.h (md_do_align): Add max parameter.
* config/tc-i386.h (md_do_align): Likewise.
* config/tc-m88k.h (md_do_align): Likewise.
* config/tc-m88k.c (m88k_do_align): Likewise.
* config/tc-sh.h (md_do_align): Likewise.
* config/tc-sh.c (sh_do_align): Likewise.
* as.h: Improve comments on rs_align and rs_align_code.
* doc/as.texinfo: Document new alignment arguments.
* doc/internals.texi (Frags): Document use of fr_subtype field for
rs_align and rs_align_code.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/internals.texi | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi index 9c418db..a2d2a75 100644 --- a/gas/doc/internals.texi +++ b/gas/doc/internals.texi @@ -495,8 +495,11 @@ The start of the following frag should be aligned on some boundary. In this frag, @code{fr_offset} is the logarithm (base 2) of the alignment in bytes. (For example, if alignment on an 8-byte boundary were desired, @code{fr_offset} would have a value of 3.) The variable characters indicate the fill pattern to -be used. Target backends can use @code{rs_align_code} to handle certain types -of alignment differently. +be used. The @code{fr_subtype} field holds the maximum number of bytes to skip +when doing this alignment. If more bytes are needed, the alignment is not +done. An @code{fr_subtype} value of 0 means no maximum, which is the normal +case. Target backends can use @code{rs_align_code} to handle certain types of +alignment differently. @item rs_broken_word This indicates that ``broken word'' processing should be done (@pxref{Broken @@ -858,6 +861,15 @@ expression. You can define this to handle special symbols in a special way. If a symbol always has a certain value, you should normally enter it in the symbol table, perhaps using @code{reg_section}. +@item md_undefined_symbol +@cindex md_undefined_symbol +GAS will call this function when a symbol table lookup fails, before it +creates a new symbol. Typically this would be used to supply symbols whose +name or value changes dynamically, possibly in a context sensitive way. +Predefined symbols with fixed values, such as register names or condition +codes, are typically entered directly into the symbol table when @code{md_begin} +is called. + @item md_operand @cindex md_operand GAS will call this function for any expression that can not be recognized. |