Fri Jun 19 20:23:21 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and correct calling of howto special functions and fixes from Raeburn for gas<>bfdness * archures.c: nuke bfd_reloc_code_type * bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint * coffcode.h (styp_to_sec_flags): STYP_INFO is marked as SEC_NEVER_LOAD, various other bfdgas newness * reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup * targets.c: change jump table vector to above
This commit is contained in:
parent
28df0c3e2d
commit
3860075f3f
@ -1,3 +1,15 @@
|
||||
Fri Jun 19 20:23:21 1992 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||
Lints for bfd_reloc_code_type->bfd_reloc_code_real_type, and
|
||||
correct calling of howto special functions and fixes from Raeburn
|
||||
for gas<>bfdness
|
||||
* archures.c: nuke bfd_reloc_code_type
|
||||
* bout.c, cpu-h8300.c, coff-i960.c, coff-m88k.c: special function lint
|
||||
* coffcode.h (styp_to_sec_flags): STYP_INFO is marked as
|
||||
SEC_NEVER_LOAD, various other bfdgas newness
|
||||
* reloc.c->libbfd.h: change protype of bfd_default_reloc_type_lookup
|
||||
* targets.c: change jump table vector to above
|
||||
|
||||
|
||||
Fri Jun 19 19:00:45 1992 John Gilmore (gnu at cygnus.com)
|
||||
|
||||
* elf.c (bfd_elf_find_section): Mark as INTERNAL_FUNCTION so
|
||||
|
@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
Most of this hacked by Steve Chamberlain,
|
||||
sac@cygnus.com
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
|
||||
SECTION
|
||||
@ -903,8 +899,8 @@ DEFUN(coff_swap_scnhdr_out,(abfd, in, out),
|
||||
*/
|
||||
|
||||
static boolean
|
||||
DEFUN(coff_new_section_hook,(abfd, section),
|
||||
bfd *abfd AND
|
||||
DEFUN(coff_new_section_hook,(abfd_ignore, section),
|
||||
bfd *abfd_ignore AND
|
||||
asection *section)
|
||||
{
|
||||
section->alignment_power = abfd->xvec->align_power_min;
|
||||
@ -1633,7 +1629,7 @@ coff_symbol_type *symbol AND
|
||||
unsigned int written)
|
||||
{
|
||||
/*
|
||||
Does this symbol have an associated line number - if so then
|
||||
Does this symbol have an ascociated line number - if so then
|
||||
make it remember this symbol index. Also tag the auxent of
|
||||
this symbol to point to the right place in the lineno table
|
||||
*/
|
||||
@ -1793,13 +1789,6 @@ DEFUN(coff_write_relocs,(abfd),
|
||||
struct internal_reloc n;
|
||||
arelent *q = p[i];
|
||||
memset((PTR)&n, 0, sizeof(n));
|
||||
|
||||
/* @@FIXME COFF relocs don't support addends. Code should probably be
|
||||
in the target-independent code, using a target flag to decide whether
|
||||
to fold the addend into the section contents. */
|
||||
if (q->addend != 0)
|
||||
abort ();
|
||||
|
||||
n.r_vaddr = q->address + s->vma;
|
||||
/* The 29k const/consth reloc pair is a real kludge - the consth
|
||||
part doesn't have a symbol - it has an offset. So rebuilt
|
||||
|
@ -212,7 +212,7 @@ void EXFUN(bfd_constructor_entry, (bfd *abfd,
|
||||
CONST char*type));
|
||||
CONST struct reloc_howto_struct *EXFUN(bfd_default_reloc_type_lookup
|
||||
, (CONST struct bfd_arch_info *,
|
||||
bfd_reloc_code_type code));
|
||||
bfd_reloc_code_real_type code));
|
||||
boolean EXFUN(bfd_generic_relax_section
|
||||
, (bfd *abfd,
|
||||
asection *section,
|
||||
@ -233,4 +233,3 @@ CONST bfd_arch_info_type *EXFUN(bfd_default_compatible
|
||||
, (CONST bfd_arch_info_type *a,
|
||||
CONST bfd_arch_info_type *b));
|
||||
boolean EXFUN(bfd_default_scan, (CONST struct bfd_arch_info *, CONST char *));
|
||||
struct elf_internal_shdr *EXFUN(bfd_elf_find_section , (bfd *abfd, char *name));
|
||||
|
10
bfd/reloc.c
10
bfd/reloc.c
@ -733,7 +733,7 @@ SECTION
|
||||
|
||||
SYNOPSIS
|
||||
CONST struct reloc_howto_struct *
|
||||
bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_type code);
|
||||
bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code);
|
||||
|
||||
DESCRIPTION
|
||||
This routine returns a pointer to a howto struct which when
|
||||
@ -744,9 +744,9 @@ DESCRIPTION
|
||||
|
||||
|
||||
CONST struct reloc_howto_struct *
|
||||
DEFUN(bfd_reloc_type_lookup,(arch, code),
|
||||
DEFUN(bfd_reloc_type_lookup,(abfd, code),
|
||||
bfd *abfd AND
|
||||
bfd_reloc_code_type code)
|
||||
bfd_reloc_code_real_type code)
|
||||
{
|
||||
return BFD_SEND (abfd, reloc_type_lookup, (abfd, code));
|
||||
}
|
||||
@ -762,7 +762,7 @@ INTERNAL_FUNCTION
|
||||
SYNOPSIS
|
||||
CONST struct reloc_howto_struct *bfd_default_reloc_type_lookup
|
||||
(CONST struct bfd_arch_info *,
|
||||
bfd_reloc_code_type code);
|
||||
bfd_reloc_code_real_type code);
|
||||
|
||||
DESCRIPTION
|
||||
Provides a default relocation lookuperer for any architectue
|
||||
@ -772,7 +772,7 @@ DESCRIPTION
|
||||
CONST struct reloc_howto_struct *
|
||||
DEFUN(bfd_default_reloc_type_lookup,(arch, code),
|
||||
CONST struct bfd_arch_info *arch AND
|
||||
bfd_reloc_code_type code)
|
||||
bfd_reloc_code_real_type code)
|
||||
{
|
||||
switch (code)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user