summaryrefslogtreecommitdiff
path: root/asm/exprlib.c
Commit message (Collapse)AuthorAgeFilesLines
* exprlib: move dumping code to a separate C fileH. Peter Anvin2017-02-281-42/+0
| | | | | | | Most of the time we don't need the dumping code, so move it to a separate C file to the linker can exclude it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* asm/exprlib.c: use PRId64 to print a 64-bit numberH. Peter Anvin2017-02-231-1/+1
| | | | | | | | Use PRId64 instead of %ld to print a 64-bit number. This is debugging code, but as it is frequently useful I included it in mainline code and, well, then it has to compile everywhere... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Support self-relative expressions in offsets and immediatesH. Peter Anvin2017-02-201-57/+113
| | | | | | | | | | Handle, hopefully correctly, self-relative expressions (that is, expressions of the form X - Y where Y is a symbol in the current segment, possibly $ or $$) used as offsets or immediates, as opposed to arguments to Dx statements (which have already been supported for a while.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Reorganize the source code into subdirectoriesH. Peter Anvin2016-05-251-0/+186
Make the source code easier to understand and keep track of by organizing it into subdirectories depending on the function. Signed-off-by: H. Peter Anvin <hpa@zytor.com>