From 0d3e45eab084b2bca8b6e3dc94952264868b033b Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Fri, 17 Apr 1992 15:59:37 +0000 Subject: * relax.c: added handling for new "padding" seclet type, used to fill out gaps between section. * ldgram.y, ldlex.l: now -defsym on the command line is done properly. --- ld/relax.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'ld/relax.c') diff --git a/ld/relax.c b/ld/relax.c index d3956ef..948dd8a 100644 --- a/ld/relax.c +++ b/ld/relax.c @@ -27,7 +27,6 @@ DEFUN(build_it,(statement), lang_statement_union_type *statement) { switch (statement->header.type) { - case lang_fill_statement_enum: { #if 0 bfd_byte play_area[SHORT_SIZE]; @@ -113,7 +112,27 @@ DEFUN(build_it,(statement), } break; + case lang_padding_statement_enum: + /* Make a new seclet with the right filler */ + { + /* Create a new seclet in the output section with this + attached */ + bfd_seclet_type *seclet = + bfd_new_seclet(statement->padding_statement.output_section->owner, + statement->padding_statement.output_section); + + seclet->type = bfd_fill_seclet; + seclet->size = statement->padding_statement.size; + seclet->offset = statement->padding_statement.output_offset; + seclet->u.fill.value = statement->padding_statement.fill; + seclet->next = 0; + } + break; + + + + break; default: /* All the other ones fall through */ ; -- cgit v1.1