* relax.c (build_it): re-enable the processing of data_statements
in scripts, makes counted contructor lists work again.
This commit is contained in:
parent
cd98a82fc1
commit
85c838d613
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||||
|
|
||||||
|
* relax.c (build_it): re-enable the processing of data_statements
|
||||||
|
in scripts, makes counted contructor lists work again.
|
||||||
|
|
||||||
Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
|
Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
|
||||||
|
|
||||||
* ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
|
* ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
|
||||||
|
|
13
ld/relax.c
13
ld/relax.c
|
@ -62,28 +62,29 @@ DEFUN(build_it,(statement),
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case lang_data_statement_enum:
|
case lang_data_statement_enum:
|
||||||
#if 0
|
|
||||||
{
|
{
|
||||||
|
|
||||||
bfd_vma value = statement->data_statement.value;
|
bfd_vma value = statement->data_statement.value;
|
||||||
bfd_byte play_area[LONG_SIZE];
|
bfd_byte play_area[LONG_SIZE];
|
||||||
unsigned int size = 0;
|
unsigned int size = 0;
|
||||||
|
asection * output_section = statement->data_statement.output_section;
|
||||||
switch (statement->data_statement.type) {
|
switch (statement->data_statement.type) {
|
||||||
case LONG:
|
case LONG:
|
||||||
bfd_put_32(output_bfd, value, play_area);
|
bfd_put_32(output_section->owner, value, play_area);
|
||||||
size = LONG_SIZE;
|
size = LONG_SIZE;
|
||||||
break;
|
break;
|
||||||
case SHORT:
|
case SHORT:
|
||||||
bfd_put_16(output_bfd, value, play_area);
|
bfd_put_16(output_section->owner, value, play_area);
|
||||||
size = SHORT_SIZE;
|
size = SHORT_SIZE;
|
||||||
break;
|
break;
|
||||||
case BYTE:
|
case BYTE:
|
||||||
bfd_put_8(output_bfd, value, play_area);
|
bfd_put_8(output_section->owner, value, play_area);
|
||||||
size = BYTE_SIZE;
|
size = BYTE_SIZE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
bfd_set_section_contents(output_bfd,
|
bfd_set_section_contents(output_section->owner,
|
||||||
statement->data_statement.output_section,
|
statement->data_statement.output_section,
|
||||||
play_area,
|
play_area,
|
||||||
statement->data_statement.output_vma,
|
statement->data_statement.output_vma,
|
||||||
|
@ -92,7 +93,7 @@ DEFUN(build_it,(statement),
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case lang_input_section_enum:
|
case lang_input_section_enum:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue