OSDN Git Service
(root)
/
uclinux-h8
/
elf2flt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8784cd9
)
h8/300 forbid relocation of absolute symbol
author
Yoshinori Sato
<ysato@users.sourceforge.jp>
Thu, 28 Oct 2004 16:54:25 +0000
(16:54 +0000)
committer
Yoshinori Sato
<ysato@users.sourceforge.jp>
Thu, 28 Oct 2004 16:54:25 +0000
(16:54 +0000)
elf2flt.c
patch
|
blob
|
history
diff --git
a/elf2flt.c
b/elf2flt.c
index
23e5e97
..
31f23f2
100644
(file)
--- a/
elf2flt.c
+++ b/
elf2flt.c
@@
-716,13
+716,11
@@
dump_symbols(symbols, number_of_symbols);
bad_relocs++;
continue;
}
- relocation_needed = 1;
+ /* Absolute symbol done not relocation */
+ relocation_needed = !bfd_is_abs_section(sym_section);
sym_addr = (*(q->sym_ptr_ptr))->value;
sym_vma = bfd_section_vma(abs_bfd, sym_section);
sym_addr += sym_vma + q->addend;
- /* no reloc from area7 */
- if (sym_addr > 0xe00000)
- relocation_needed = 0;
break;
case R_H8_DIR32:
case R_H8_DIR32A16: /* currently 32, could be made 16 */