diff options
author | Steve Chamberlain <sac@cygnus> | 1992-04-15 23:11:09 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-04-15 23:11:09 +0000 |
commit | 2e38b71d27d48f7a1698560a71decb528422174c (patch) | |
tree | a0fdb76b896ab62af0655e78238a2c5585dc251b /ld/mri.c | |
parent | 3d2b83ea49dc76204b0b068a56d8c9c37075b0d5 (diff) | |
download | gdb-2e38b71d27d48f7a1698560a71decb528422174c.zip gdb-2e38b71d27d48f7a1698560a71decb528422174c.tar.gz gdb-2e38b71d27d48f7a1698560a71decb528422174c.tar.bz2 |
Strange link script support
Diffstat (limited to 'ld/mri.c')
-rw-r--r-- | ld/mri.c | 43 |
1 files changed, 41 insertions, 2 deletions
@@ -47,15 +47,19 @@ DEFUN(mri_output_section, (name, vma), os->flags = 0; os->block_value = 0; - } +} /* if any ABSOLUTE <name> are in the script, only load those files marked thus */ void DEFUN(mri_only_load,(name), CONST char *name) - { +{ + lang_output_section_statement_type *os; + os = lang_output_section_statement_lookup(name); + os->flags = 0; + os->block_value = 0; } @@ -67,3 +71,38 @@ DEFUN(mri_load,(name), lang_add_input_file(name, lang_input_file_is_file_enum, (char *)NULL); } + + +void +DEFUN(mri_order,(name), + CONST char *name) +{ +einfo("Ignoring ORDER %s for the moment\n", name); + +} + +void +DEFUN(mri_name,(name), + CONST char *name) +{ + lang_add_output(name); + +} + + +void +DEFUN(mri_format,(name), + CONST char *name) +{ + if (strcmp(name, "S") == 0) + { + lang_add_output_format("srec"); + } + else if (strcmp(name, "IEEE") == 0) + { + lang_add_output_format("ieee"); + } + else { + einfo("%P%F: unknown format type %s\n", name); + } +} |