Commit Graph

8 Commits

Author SHA1 Message Date
Mikael Pettersson
47502d2bb7 as: add support for .ident directives
- token.def: enable T_DOT_IDENT
- tunit.h: add S_DOT_IDENT and make it share attributes with S_DOT_FILE,
  describe available section types, add tunit_strtab_section_enter(),
  rearrange declarations
- tunit.c: implement tunit_strtab_section_enter()
- parse.c: generalize .file parser, use it also for .ident
- input.c: handle S_DOT_IDENT, lookup or create .comment strtab section,
  append given string literal to that section
2015-05-01 14:14:38 +02:00
Mikael Pettersson
a5a68a70b7 as/tunit.c: check for NULL before applying container_of() 2015-05-01 14:08:12 +02:00
Mikael Pettersson
772d5e4061 as: define and use container_of() 2015-04-27 22:36:58 +02:00
Mikael Pettersson
a7c47b4013 as: move strtab from output to tunit 2015-04-27 22:02:53 +02:00
Mikael Pettersson
70768a829c as: allow output_section() to work on strtabs
- add optional ->output() method to struct section
- make output_section() use ->output() if present
- make strtab_init() set up ->output
- change strtab_write() into a trivial wrapper for output_section()
2015-04-26 22:08:37 +02:00
Mikael Pettersson
af1fd536c2 pdp10-tools: Add GPL License and a README, remove old 'as' prototype 2015-04-19 18:27:43 +02:00
Mikael Pettersson
ade65971fa as: change section image from a pdp_uint36_t arrary to a pdp10_uint9_t array 2015-03-03 21:20:29 +00:00
Mikael Pettersson
9854ccfbf3 as: add tunit.{h,c} files :-( 2014-04-10 20:36:58 +00:00