diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-10-23 05:21:09 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-10-23 05:21:09 +0000 |
commit | 3a99b990358dce5d09f2d2e9a437f6c6fbb67c8c (patch) | |
tree | 5fbe9e152df4c10aa952fadc8db71d0bdb22535a /gas/config | |
parent | 322b3f65caeb835cb3a6c625aafbf8833cfb78dd (diff) | |
download | gdb-3a99b990358dce5d09f2d2e9a437f6c6fbb67c8c.zip gdb-3a99b990358dce5d09f2d2e9a437f6c6fbb67c8c.tar.gz gdb-3a99b990358dce5d09f2d2e9a437f6c6fbb67c8c.tar.bz2 |
* config/tc-mmix.h (tc_frob_file_before_adjust): Don't declare.
(tc_frob_file_before_adjust): Don't define.
* config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
function.
(mmix_frob_file_before_adjust): Remove ineffective function.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mmix.c | 45 | ||||
-rw-r--r-- | gas/config/tc-mmix.h | 3 |
2 files changed, 0 insertions, 48 deletions
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index 15dd5f2..06335bb 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -67,7 +67,6 @@ static void mmix_handle_rest_of_empty_line PARAMS ((void)); static void mmix_discard_rest_of_line PARAMS ((void)); static void mmix_byte PARAMS ((void)); static void mmix_cons PARAMS ((int)); -static void mmix_frob_local_reloc PARAMS ((bfd *, asection *, PTR)); /* Continue the tradition of symbols.c; use control characters to enforce magic. These are used when replacing e.g. 8F and 8B so we can handle @@ -3759,50 +3758,6 @@ mmix_parse_predefined_name (name, expP) return 1; } -/* Worker for mmix_frob_file_before_adjust. */ - -static void -mmix_frob_local_reloc (abfd, sec, xxx) - bfd *abfd ATTRIBUTE_UNUSED; - asection *sec; - PTR xxx ATTRIBUTE_UNUSED; -{ - segment_info_type *seginfo = seg_info (sec); - fixS *fixp; - - if (seginfo == NULL) - return; - - for (fixp = seginfo->fix_root; fixp; fixp = fixp->fx_next) - if (! fixp->fx_done && fixp->fx_addsy != NULL) - { - symbolS *sym = fixp->fx_addsy; - asection *section = S_GET_SEGMENT (sym); - - if (section == reg_section - && fixp->fx_r_type == BFD_RELOC_MMIX_LOCAL) - { - /* If the register is marked global, we don't need to replace - with the *real* register section since that will be done - when the symbol is changed. */ - if (! S_IS_EXTERNAL (sym)) - /* If it's a local symbol, we replace it with an anonymous - one with the same constant value. */ - fixp->fx_addsy = expr_build_uconstant (S_GET_VALUE (sym)); - } - } -} - -/* Change fixups for register symbols for BFD_MMIX_LOCAL to be for an - absolute symbol. */ - -void -mmix_frob_file_before_adjust () -{ - return; - bfd_map_over_sections (stdoutput, mmix_frob_local_reloc, (char *) 0); -} - /* Just check that we don't have a BSPEC/ESPEC pair active when changing sections "normally", and get knowledge about alignment from the new section. */ diff --git a/gas/config/tc-mmix.h b/gas/config/tc-mmix.h index cd54e0d..30d2c95 100644 --- a/gas/config/tc-mmix.h +++ b/gas/config/tc-mmix.h @@ -199,9 +199,6 @@ extern void mmix_frob_file PARAMS ((void)); struct mmix_symbol_gregs; #define TC_SYMFIELD_TYPE struct mmix_symbol_gregs * -extern void mmix_frob_file_before_adjust PARAMS ((void)); -#define tc_frob_file_before_adjust mmix_frob_file_before_adjust - extern void mmix_md_elf_section_change_hook PARAMS ((void)); #define md_elf_section_change_hook mmix_md_elf_section_change_hook |