This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello,
This patch is ..
Support PIC and m32r-linux target.
m32r-*-as generates objects with RELA relocations instead of REL
relocations.
m32r-*-ld can link both of RELA and REL relocations.
Please commit it.
Kazuhiro Inaoka
bfd/ChangLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
m32r-linux and PIC support. Add new ABI of USE_RELA.
* config.bfd (m32r*-*-linux*, m32r*le-*-linux*, m32r*le-*-*): Added.
* configure.in (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec,
bfd_elf32_m32rle_vec): Added
* elf32-m32r.c (m32r_info_to_howto, m32r_elf_adjust_dynamic_symbol,
m32r_elf_size_dynamic_sections, m32r_elf_create_dynamic_sections,
m32r_elf_finish_dynamic_sections, m32r_elf_finish_dynamic_symbol,
allocate_dynrelocs, readonly_dynrelocs, m32r_elf_reloc_type_class,
m32r_elf_fake_sections): Added.
(m32r_elf_howto_table): Added
R_M32R_16_RELA, R_M32R_32_RELA, R_M32R_24_RELA,
R_M32R_10_PCREL_RELA, R_M32R_18_PCREL_RELA,
R_M32R_26_PCREL_RELA, R_M32R_HI16_ULO_RELA,
R_M32R_HI16_SLO_RELA, R_M32R_LO16_RELA,
R_M32R_SDA16_RELA, R_M32R_RELA_GNU_VTINHERIT,
R_M32R_RELA_GNU_VTENTRY, R_M32R_GOT24,
R_M32R_26_PLTREL, R_M32R_COPY, R_M32R_GLOB_DAT,
R_M32R_JMP_SLOT, R_M32R_RELATIVE, R_M32R_GOTOFF,
R_M32R_GOTPC24, R_M32R_GOT16_HI_ULO,
R_M32R_GOT16_HI_SLO, R_M32R_GOT16_LO,
R_M32R_GOTPC_HI_ULO, R_M32R_GOTPC_HI_SLO,
R_M32R_GOTPC_LO.
(m32r_elf_relocate_section, m32r_elf_check_relocs): Changed for New
ABI.
* reloc.c: Added
BFD_RELOC_M32R_GOT24, BFD_RELOC_M32R_26_PLTREL,
BFD_RELOC_M32R_COPY, BFD_RELOC_M32R_GLOB_DAT,
BFD_RELOC_M32R_JMP_SLOT, BFD_RELOC_M32R_RELATIVE,
BFD_RELOC_M32R_GOTOFF, BFD_RELOC_M32R_GOTPC24,
BFD_RELOC_M32R_GOT16_HI_ULO, BFD_RELOC_M32R_GOT16_HI_SLO,
BFD_RELOC_M32R_GOT16_LO, BFD_RELOC_M32R_GOTPC_HI_ULO,
BFD_RELOC_M32R_GOTPC_HI_SLO, BFD_RELOC_M32R_GOTPC_LO.
* targets.c (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec,
bfd_elf32_m32rle_vec): Added
gas/ChangeLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
m32r-linux and PIC support. Add new ABI of USE_RELA.
* configure.in: Add m32r-linux targets.
* config/tc-m32r.c (md_parse_option): Add -KPIC option.
(tc_gen_reloc): Added.
(debug_sym, md_estimate_size_before_relax, md_convert_frag,
md_pcrel_from_section, m32r_fix_adjustable): Changed for PIC.
* config/tc-m32r.h (tc_gen_reloc, EXTERN_FORCE_RELOC): Undefined.
(TC_HANDLES_FX_DONE, TC_FIX_ADJUSTABLE, TC_RELOC_RTSYM_LOC_FIXUP,
): Defined.
gdb/configure.host
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
m32r-linux and PIC support. Add new ABI of USE_RELA.
* configure.host: Add m32r-linux targets.
include/ChangeLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
m32r-linux and PIC support. Add new ABI of USE_RELA.
* elf/m32r.h : Added
R_M32R_16_RELA, R_M32R_32_RELA, R_M32R_24_RELA,
R_M32R_10_PCREL_RELA, R_M32R_18_PCREL_RELA,
R_M32R_26_PCREL_RELA, R_M32R_HI16_ULO_RELA,
R_M32R_HI16_SLO_RELA, R_M32R_LO16_RELA,
R_M32R_SDA16_RELA, R_M32R_RELA_GNU_VTINHERIT,
R_M32R_RELA_GNU_VTENTRY, R_M32R_GOT24,
R_M32R_26_PLTREL, R_M32R_COPY, R_M32R_GLOB_DAT,
R_M32R_JMP_SLOT, R_M32R_RELATIVE, R_M32R_GOTOFF,
R_M32R_GOTPC24, R_M32R_GOT16_HI_ULO,
R_M32R_GOT16_HI_SLO, R_M32R_GOT16_LO,
R_M32R_GOTPC_HI_ULO, R_M32R_GOTPC_HI_SLO,
R_M32R_GOTPC_LO.
ld/ChangeLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
m32r-linux and PIC support. Add new ABI of USE_RELA.
* Makefile.am: Added em32rlelf.c, em32relf_linux.c,
em32rlelf_linux.c.
* configure.tgt (m32r*-*-linux*, m32r*le-*-linux*, m32r*le-*-*):
Added.
* emulparams/m32relf_linux.sh: Added.
* emulparams/m32rlelf.sh: Ditto.
* emulparams/m32rlelf_linux.sh: Ditto.
sim/ChangeLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
* common/sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
sim/m32r/ChangeLog
2003-12-18 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com >
* configure.in: Changed for dummy simulator of m32r-linux.
* Makefile.in: Added traps-linux.o for dummy simulator of
m32r-linux.
* traps-linux.c: Added for dummy simulator of m32r-linux.
* syscall.h: Ditto.
* sim-if.c (sim_create_inferior): Changed to setup SP for dummy
simulator for m32r-linux.
* sim-main.h (M32R_DEFAULT_MEM_SIZE): Changed for dummy simulator of
m32r-linux.
Attachment:
newreloc.patch
Description: Binary data
Attachment:
m32rlelf.sh
Description: Binary data
Attachment:
m32relf_linux.sh
Description: Binary data
Attachment:
m32rlelf_linux.sh
Description: Binary data
Attachment:
traps-linux.c
Description: Binary data
Attachment:
syscall.h
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |