projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce program_space::add_objfile
[deliverable/binutils-gdb.git]
/
bfd
/
pdp11.c
diff --git
a/bfd/pdp11.c
b/bfd/pdp11.c
index 1d34047fdc06ebe3a4bdbc5eabe5be7ed40ea0f8..a0c3ac0fa66b2062b310d91df677ae4e1cba4965 100644
(file)
--- a/
bfd/pdp11.c
+++ b/
bfd/pdp11.c
@@
-505,10
+505,10
@@
NAME (aout, some_aout_object_p) (bfd *abfd,
abort ();
}
abort ();
}
-
bfd_get_start_address (abfd)
= execp->a_entry;
+
abfd->start_address
= execp->a_entry;
obj_aout_symbols (abfd) = NULL;
obj_aout_symbols (abfd) = NULL;
-
bfd_get_symcount (abfd)
= execp->a_syms / sizeof (struct external_nlist);
+
abfd->symcount
= execp->a_syms / sizeof (struct external_nlist);
/* The default relocation entry size is that of traditional V7 Unix. */
obj_reloc_entry_size (abfd) = RELOC_SIZE;
/* The default relocation entry size is that of traditional V7 Unix. */
obj_reloc_entry_size (abfd) = RELOC_SIZE;
@@
-1352,7
+1352,7
@@
translate_to_native_sym_flags (bfd *abfd,
to another. */
sym_pointer->e_type[0] &= ~N_TYPE;
to another. */
sym_pointer->e_type[0] &= ~N_TYPE;
- sec = bfd_
get
_section (cache_ptr);
+ sec = bfd_
asymbol
_section (cache_ptr);
off = 0;
if (sec == NULL)
off = 0;
if (sec == NULL)
@@
-1512,7
+1512,7
@@
NAME (aout, slurp_symbol_table) (bfd *abfd)
return FALSE;
}
return FALSE;
}
-
bfd_get_symcount (abfd)
= obj_aout_external_sym_count (abfd);
+
abfd->symcount
= obj_aout_external_sym_count (abfd);
obj_aout_symbols (abfd) = cached;
obj_aout_symbols (abfd) = cached;
@@
-2802,17
+2802,17
@@
aout_link_add_symbols (bfd *abfd, struct bfd_link_info *info)
break;
case N_TEXT | N_EXT:
section = obj_textsec (abfd);
break;
case N_TEXT | N_EXT:
section = obj_textsec (abfd);
- value -= bfd_
get_section_vma (abfd,
section);
+ value -= bfd_
section_vma (
section);
break;
case N_DATA | N_EXT:
/* Treat N_SETV symbols as N_DATA symbol; see comment in
translate_from_native_sym_flags. */
section = obj_datasec (abfd);
break;
case N_DATA | N_EXT:
/* Treat N_SETV symbols as N_DATA symbol; see comment in
translate_from_native_sym_flags. */
section = obj_datasec (abfd);
- value -= bfd_
get_section_vma (abfd,
section);
+ value -= bfd_
section_vma (
section);
break;
case N_BSS | N_EXT:
section = obj_bsssec (abfd);
break;
case N_BSS | N_EXT:
section = obj_bsssec (abfd);
- value -= bfd_
get_section_vma (abfd,
section);
+ value -= bfd_
section_vma (
section);
break;
}
break;
}
@@
-3151,8
+3151,7
@@
aout_link_reloc_link_order (struct aout_final_link_info *flaginfo,
(*flaginfo->info->callbacks->reloc_overflow)
(flaginfo->info, NULL,
(p->type == bfd_section_reloc_link_order
(*flaginfo->info->callbacks->reloc_overflow)
(flaginfo->info, NULL,
(p->type == bfd_section_reloc_link_order
- ? bfd_section_name (flaginfo->output_bfd,
- pr->u.section)
+ ? bfd_section_name (pr->u.section)
: pr->u.name),
howto->name, pr->addend, NULL,
(asection *) NULL, (bfd_vma) 0);
: pr->u.name),
howto->name, pr->addend, NULL,
(asection *) NULL, (bfd_vma) 0);
@@
-3477,7
+3476,7
@@
pdp11_aout_link_input_section (struct aout_final_link_info *flaginfo,
asection *s;
s = aout_reloc_type_to_section (input_bfd, r_type);
asection *s;
s = aout_reloc_type_to_section (input_bfd, r_type);
- name = bfd_section_name (
input_bfd,
s);
+ name = bfd_section_name (s);
}
(*flaginfo->info->callbacks->reloc_overflow)
(flaginfo->info, (h ? &h->root : NULL), name, howto->name,
}
(*flaginfo->info->callbacks->reloc_overflow)
(flaginfo->info, (h ? &h->root : NULL), name, howto->name,
@@
-3997,8
+3996,7
@@
aout_link_write_symbols (struct aout_final_link_info *flaginfo, bfd *input_bfd)
return FALSE;
PUT_WORD (output_bfd, strtab_index, outsym->e_strx);
PUT_WORD (output_bfd,
return FALSE;
PUT_WORD (output_bfd, strtab_index, outsym->e_strx);
PUT_WORD (output_bfd,
- (bfd_get_section_vma (output_bfd,
- obj_textsec (input_bfd)->output_section)
+ (bfd_section_vma (obj_textsec (input_bfd)->output_section)
+ obj_textsec (input_bfd)->output_offset),
outsym->e_value);
++obj_aout_external_sym_count (output_bfd);
+ obj_textsec (input_bfd)->output_offset),
outsym->e_value);
++obj_aout_external_sym_count (output_bfd);
@@
-4206,7
+4204,7
@@
aout_link_write_symbols (struct aout_final_link_info *flaginfo, bfd *input_bfd)
BFD_ASSERT (bfd_is_abs_section (output_section)
|| output_section->owner == output_bfd);
val = (hresolve->root.u.def.value
BFD_ASSERT (bfd_is_abs_section (output_section)
|| output_section->owner == output_bfd);
val = (hresolve->root.u.def.value
- + bfd_
get_section_vma (output_bfd,
output_section)
+ + bfd_
section_vma (
output_section)
+ input_section->output_offset);
/* Get the correct type based on the section. If
+ input_section->output_offset);
/* Get the correct type based on the section. If
This page took
0.040489 seconds
and
4
git commands to generate.