From 14276f18072accb6ad36e8d784e44ee1e1a29c56 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Jun 2009 20:27:45 -0400 Subject: Blackfin: make sure all relocs are uppercase This is to match changes in the toolchain. Signed-off-by: Mike Frysinger --- ldso/ldso/bfin/dl-debug.h | 20 ++++++++++---------- ldso/ldso/bfin/dl-startup.h | 2 +- ldso/ldso/bfin/elfinterp.c | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'ldso/ldso/bfin') diff --git a/ldso/ldso/bfin/dl-debug.h b/ldso/ldso/bfin/dl-debug.h index 9dd316240..3ba0a9832 100644 --- a/ldso/ldso/bfin/dl-debug.h +++ b/ldso/ldso/bfin/dl-debug.h @@ -31,16 +31,16 @@ static const char *_dl_reltypes_tab[] = { - [0] "R_BFIN_unused0", "R_BFIN_pcrel5m2", - [2] "R_BFIN_unused1", "R_BFIN_pcrel10", - [4] "R_BFIN_pcrel12_jump", "R_BFIN_rimm16", - [6] "R_BFIN_luimm16", "R_BFIN_huimm16", - [8] "R_BFIN_pcrel12_jump_s","R_BFIN_pcrel24_jump_x", - [10] "R_BFIN_pcrel24", "R_BFIN_unusedb", - [12] "R_BFIN_unusedc", "R_BFIN_pcrel24_jump_l", - [14] "R_BFIN_pcrel24_call_x","R_BFIN_var_eq_symb", - [16] "R_BFIN_byte_data", "R_BFIN_byte2_data", "R_BFIN_byte4_data", - [19] "R_BFIN_pcrel11", + [0] "R_BFIN_UNUSED0", "R_BFIN_PCREL5M2", + [2] "R_BFIN_UNUSED1", "R_BFIN_PCREL10", + [4] "R_BFIN_PCREL12_JUMP", "R_BFIN_RIMM16", + [6] "R_BFIN_LUIMM16", "R_BFIN_HUIMM16", + [8] "R_BFIN_PCREL12_JUMP_S","R_BFIN_PCREL24_JUMP_X", + [10] "R_BFIN_PCREL24", "R_BFIN_UNUSEDB", + [12] "R_BFIN_UNUSEDC", "R_BFIN_PCREL24_JUMP_L", + [14] "R_BFIN_PCREL24_CALL_X","R_BFIN_var_eq_symb", + [16] "R_BFIN_BYTE_DATA", "R_BFIN_BYTE2_DATA", "R_BFIN_BYTE4_DATA", + [19] "R_BFIN_PCREL11", [20] "R_BFIN_GOT17M4", "R_BFIN_GOTHI", "R_BFIN_GOTLO", [23] "R_BFIN_FUNCDESC", diff --git a/ldso/ldso/bfin/dl-startup.h b/ldso/ldso/bfin/dl-startup.h index ea62dada2..57a8ec80c 100644 --- a/ldso/ldso/bfin/dl-startup.h +++ b/ldso/ldso/bfin/dl-startup.h @@ -114,7 +114,7 @@ struct elf32_fdpic_loadmap; */ #define PERFORM_BOOTSTRAP_RELOC(RELP,REL,SYMBOL,LOAD,SYMTAB) \ switch(ELF32_R_TYPE((RELP)->r_info)){ \ - case R_BFIN_byte4_data: \ + case R_BFIN_BYTE4_DATA: \ *(REL) += (SYMBOL); \ break; \ case R_BFIN_FUNCDESC_VALUE: \ diff --git a/ldso/ldso/bfin/elfinterp.c b/ldso/ldso/bfin/elfinterp.c index 329c419a6..559a948a3 100644 --- a/ldso/ldso/bfin/elfinterp.c +++ b/ldso/ldso/bfin/elfinterp.c @@ -205,9 +205,9 @@ _dl_do_reloc (struct elf_resolve *tpnt,struct dyn_elf *scope, old_val = 0; #endif switch (reloc_type) { - case R_BFIN_unused0: + case R_BFIN_UNUSED0: break; - case R_BFIN_byte4_data: + case R_BFIN_BYTE4_DATA: if ((long)reloc_addr_packed & 3) reloc_value = reloc_addr_packed->v += symbol_addr; else @@ -292,7 +292,7 @@ _dl_do_lazy_reloc (struct elf_resolve *tpnt, old_val = (unsigned long)reloc_addr->entry_point; #endif switch (reloc_type) { - case R_BFIN_unused0: + case R_BFIN_UNUSED0: break; case R_BFIN_FUNCDESC_VALUE: funcval = *reloc_addr; -- cgit v1.2.3