diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-06-01 20:27:45 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-06-01 20:27:45 -0400 |
commit | 14276f18072accb6ad36e8d784e44ee1e1a29c56 (patch) | |
tree | 2d24c7f1d799e0aba5b147801803fc5f83ecfcce /ldso | |
parent | a16022fc1e67009a89c2cbba253da3631286f235 (diff) |
Blackfin: make sure all relocs are uppercase
This is to match changes in the toolchain.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/bfin/dl-debug.h | 20 | ||||
-rw-r--r-- | ldso/ldso/bfin/dl-startup.h | 2 | ||||
-rw-r--r-- | ldso/ldso/bfin/elfinterp.c | 6 |
3 files changed, 14 insertions, 14 deletions
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; |