aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-tic80.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coff-tic80.c')
-rw-r--r--bfd/coff-tic80.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/coff-tic80.c b/bfd/coff-tic80.c
index d23a6f4..737db75 100644
--- a/bfd/coff-tic80.c
+++ b/bfd/coff-tic80.c
@@ -516,9 +516,9 @@ coff_tic80_relocate_section (bfd *output_bfd,
}
/* COFF treats common symbols in one of two ways. Either the
- size of the symbol is included in the section contents, or it
- is not. We assume that the size is not included, and force
- the rtype_to_howto function to adjust the addend as needed. */
+ size of the symbol is included in the section contents, or it
+ is not. We assume that the size is not included, and force
+ the rtype_to_howto function to adjust the addend as needed. */
if (sym != NULL && sym->n_scnum != 0)
addend = - sym->n_value;
@@ -544,7 +544,7 @@ coff_tic80_relocate_section (bfd *output_bfd,
else
{
sec = sections[symndx];
- val = (sec->output_section->vma
+ val = (sec->output_section->vma
+ sec->output_offset
+ sym->n_value);
if (! obj_pe (output_bfd))
@@ -573,8 +573,8 @@ coff_tic80_relocate_section (bfd *output_bfd,
addr = rel->r_vaddr - input_section->vma;
/* FIXME: This code assumes little endian, but the PP can
- apparently be bi-endian. I don't know if the bi-endianness
- applies to the instruction set or just to the data. */
+ apparently be bi-endian. I don't know if the bi-endianness
+ applies to the instruction set or just to the data. */
switch (howto->type)
{
default: