diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/config/tc-s390.c | 7 | ||||
-rw-r--r-- | gas/config/tc-s390.h | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a1195e8..ea20cf6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> + + * config/tc-s390.c (s390_elf_final_processing): New function. + * config/tc-s390.h (elf_tc_final_processing): New macro definition. + (s390_elf_final_processing): Added prototype. + + 2010-01-20 Nick Clifton <nickc@redhat.com> PR 11109 diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index b0c453a..70a1adc 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -2265,3 +2265,10 @@ tc_s390_regname_to_dw2regnum (char *regname) regnum = 33; return regnum; } + +void +s390_elf_final_processing (void) +{ + if (s390_arch_size == 32 && (current_mode_mask & (1 << S390_OPCODE_ZARCH))) + elf_elfheader (stdoutput)->e_flags |= EF_S390_HIGH_GPRS; +} diff --git a/gas/config/tc-s390.h b/gas/config/tc-s390.h index f8fe581..f896e44 100644 --- a/gas/config/tc-s390.h +++ b/gas/config/tc-s390.h @@ -95,3 +95,7 @@ extern int s390_cie_data_alignment; #define DWARF2_LINE_MIN_INSN_LENGTH 1 #define DWARF2_DEFAULT_RETURN_COLUMN 14 #define DWARF2_CIE_DATA_ALIGNMENT s390_cie_data_alignment + +extern void s390_elf_final_processing (void); + +#define elf_tc_final_processing s390_elf_final_processing |