diff options
author | John Gilmore <gnu@cygnus> | 1991-10-25 07:06:02 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-10-25 07:06:02 +0000 |
commit | cbdc790909da22bc1114e681765b152e650aa92b (patch) | |
tree | ca55e91a8ba4fc80a9eed11c59049bdbf1f35dac /bfd/aoutx.h | |
parent | c8c0a2bd59cf277c1ebaf857b4e84eff91b94580 (diff) | |
download | gdb-cbdc790909da22bc1114e681765b152e650aa92b.zip gdb-cbdc790909da22bc1114e681765b152e650aa92b.tar.gz gdb-cbdc790909da22bc1114e681765b152e650aa92b.tar.bz2 |
RS/6000 support, by Metin G. Ozisik, Mimi Phûông-Thåo Võ, and John Gilmore.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index ae53c8d..1cdba1b 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -700,7 +700,10 @@ bfd *abfd) asection *section ; arelent_chain *reloc = (arelent_chain *)bfd_alloc(abfd, sizeof(arelent_chain)); strcpy(copy, cache_ptr->symbol.name); - section = bfd_make_section(abfd,copy); + section = bfd_get_section_by_name (abfd, copy); + if (!section) + section = bfd_make_section(abfd,copy); + switch ( (cache_ptr->type & N_TYPE) ) { case N_SETA: section->flags = SEC_CONSTRUCTOR; @@ -1700,9 +1703,9 @@ DEFUN(NAME(aout,find_nearest_line),(abfd, } int -DEFUN(NAME(aout,sizeof_headers),(ignore_abfd, execable), - bfd *ignore_abfd AND +DEFUN(NAME(aout,sizeof_headers),(abfd, execable), + bfd *abfd AND boolean execable) { - return EXEC_BYTES_SIZE; + return adata(abfd)->exec_bytes_size; } |