* as.h (enum _relax_state): Add rs_leb128.

* read.c (potable): Add sleb128 and uleb128.
        (sizeof_*leb128, output_*leb128, emit_leb128_expr, s_leb128): New
        functions.
        * read.h: Update prototypes.
        * symbols.c (resolve_symbol_value): Streamline quite a bit.  Return
        the symbol value, add a second FINALIZE argument that prevents
        changes from being comitted.  Update all callers.
        * write.c (cvt_frag_to_fill, relax_segment): Handle rs_leb128.
        * doc/as.texinfo: Document the new pseudos.
This commit is contained in:
Richard Henderson 1997-08-12 05:42:00 +00:00
parent 66df708b34
commit 8cf777d667
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,16 @@
Mon Aug 11 21:48:00 1997 Richard Henderson <rth@cygnus.com>
* as.h (enum _relax_state): Add rs_leb128.
* read.c (potable): Add sleb128 and uleb128.
(sizeof_*leb128, output_*leb128, emit_leb128_expr, s_leb128): New
functions.
* read.h: Update prototypes.
* symbols.c (resolve_symbol_value): Streamline quite a bit. Return
the symbol value, add a second FINALIZE argument that prevents
changes from being comitted. Update all callers.
* write.c (cvt_frag_to_fill, relax_segment): Handle rs_leb128.
* doc/as.texinfo: Document the new pseudos.
Sun Aug 10 14:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (MOSTLYCLEANFILES): Add site.bak, site.exp, stage,

View File

@ -253,7 +253,7 @@ obj_crawl_symbol_chain (headers)
S_SET_SEGMENT (symbolP, SEG_TEXT);
} /* if pusing data into text */
resolve_symbol_value (symbolP);
resolve_symbol_value (symbolP, 1);
/* Skip symbols which were equated to undefined or common
symbols. */

View File

@ -533,7 +533,7 @@ obj_crawl_symbol_chain (headers)
symbolPP = &symbol_rootP; /* -> last symbol chain link. */
while ((symbolP = *symbolPP) != NULL)
{
resolve_symbol_value (symbolP);
resolve_symbol_value (symbolP, 1);
/* OK, here is how we decide which symbols go out into the
brave new symtab. Symbols that do are: