diff options
author | Thiemo Seufer <ths@networkno.de> | 2002-09-17 07:43:25 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2002-09-17 07:43:25 +0000 |
commit | 8e83a169dc088e3e88f5e79f8407a7ba430e32ea (patch) | |
tree | 0beaf66a0185e4da22d6d403725137b14f875650 | |
parent | 448373fbff82b85a9504144a5e9f5c1aa66d2429 (diff) | |
download | binutils-redhat-8e83a169dc088e3e88f5e79f8407a7ba430e32ea.tar.gz |
* config/tc-mips.c (pdr_seg): Define only for ELF.
(s_change_section): Remove unused variable. Don't use for nonELF.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 41ca0c34d0..91e2ec8fb7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> + * config/tc-mips.c (pdr_seg): Define only for ELF. + (s_change_section): Remove unused variable. Don't use for nonELF. + +2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> + * config/obj-elf.c (obj_elf_change_section): Move prototype to obj-elf.h * config/obj-elf.h (obj_elf_change_section): Likewise. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 638d1df9a8..0d5eff274c 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -956,10 +956,12 @@ static boolean imm_unmatched_hi; static boolean mips16_small, mips16_ext; +#ifdef OBJ_ELF /* The pdr segment for per procedure frame/regmask info. Not used for ECOFF debugging. */ static segT pdr_seg; +#endif /* The default target format to use. */ @@ -11258,8 +11260,7 @@ void s_change_section (ignore) int ignore ATTRIBUTE_UNUSED; { - expressionS rep_exp; - +#ifdef OBJ_ELF char *section_name; char c; char *next_c; @@ -11268,9 +11269,10 @@ s_change_section (ignore) int section_flag; int section_entry_size; int section_alignment; - int log = -1; - flagword flags; + if (OUTPUT_FLAVOR != bfd_target_elf_flavour) + return; + section_name = input_line_pointer; c = get_symbol_end (); next_c = input_line_pointer + 1; @@ -11307,6 +11309,7 @@ s_change_section (ignore) obj_elf_change_section (section_name, section_type, section_flag, section_entry_size, 0, 0, 0); +#endif /* OBJ_ELF */ } void |