Symbols with octets value
authorChristian Eggers <ceggers@gmx.de>
Sun, 10 Mar 2019 18:21:53 +0000 (19:21 +0100)
committerAlan Modra <amodra@gmail.com>
Wed, 13 Mar 2019 02:59:28 +0000 (13:29 +1030)
commitd18d199917337537713f9fc4b7ae4d6568f740cf
treeaef953bb061dd985c773dde8b35c41cccc74916d
parent71250b94dc669b285cddcb744a7b3d1c7e2ec94b
Symbols with octets value

Up to now, all symbol values are in units of bytes, where a "byte" can
consist of one or more octets (e.g. 8 bit or 16 bit).

Allow to specfiy that the "unit" of a newly created symbol is octets
(exactly 8 bit), instead of bytes.

* symbols.h (symbol_temp_new_now_octets): Declare.
(symbol_set_value_now_octets, symbol_octets_p): Declare.
* symbols.c (struct symbol_flags): New member sy_octets.
(symbol_temp_new_now_octets): New function.
(resolve_symbol_value): Return octets instead of bytes if
sy_octets is set.
(symbol_set_value_now_octets): New function.
(symbol_octets_p): New function.
gas/ChangeLog
gas/symbols.c
gas/symbols.h