summaryrefslogtreecommitdiff
path: root/bfd/opncls.c
Commit message (Collapse)AuthorAgeFilesLines
* * ChangeLog: Fix typos.Kazu Hirata2003-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ecoff.c: Fix comment typos. * ecofflink.c: Likewise. * format.c: Likewise. * hp300hpux.c: Likewise. * i386linux.c: Likewise. * ieee.c: Likewise. * m68klinux.c: Likewise. * mach-o.h: Likewise. * mipsbsd.c: Likewise. * oasys.c: Likewise. * opncls.c: Likewise. * peXXigen.c: Likewise. * reloc.c: Likewise. * reloc16.c: Likewise. * section.c: Likewise. * simple.c: Likewise. * som.c: Likewise. * som.h: Likewise. * sparclinux.c: Likewise. * srec.c: Likewise. * syms.c: Likewise. * targets.c: Likewise. * tekhex.c: Likewise. * versados.c: Likewise. * vms-gsd.c: Likewise. * vms-hdr.c: Likewise. * vms-misc.c: Likewise. * xcofflink.c: Likewise. * xsym.h: Likewise. * bfd-in2.h: Regenerate.
* 2003-10-19 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-10-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * targets.c: Replace "struct sec" with "struct bfd_section" * syms.c, sparclynx.c, section.c, opncls.c: Ditto. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. Index: binutils/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * coffgrok.h (coff_section): Replace 'struct sec" with "struct bfd_section". Index: gdb/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * symtab.c: Replace "struct sec" with "struct bfd_section". * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. Index: ld/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * pe-dll.c: Replace "struct sec" with "struct bfd_section". Index: sim/common/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * sim-base.h: Replace "struct sec" with "struct bfd_section".
* Convert to C90 and a few tweaks.Alan Modra2003-06-291-107/+68
|
* Fix --add-gnu-debuglinkNick Clifton2003-06-271-32/+76
|
* Add new switch to objcopy: --add-gnu-debuglink=<file>Nick Clifton2003-06-121-23/+152
| | | | | Allows packages to be shipped in two forms, a stripped executable and debug info file.
* Fix memory leaksNick Clifton2003-03-311-1/+6
|
* bfd_follow_gnu_debuglink: New function. Follow the pointer contained inside aNick Clifton2003-01-311-1/+334
| | | | .gnu_debuglink section.
* * bfd.c (struct _bfd): Added id field.Alexandre Oliva2003-01-271-0/+6
| | | | | | * opncls.c (_bfd_id_counter): New static variable. (_bfd_new_bfd): Use it. * bfd-in2.h: Rebuilt.
* s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra2002-11-301-32/+32
| | | | comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
* * opncls.c: Formatting.Alan Modra2002-10-061-34/+36
| | | | (_bfd_new_bfd): Use a smaller section hash table.
* * opncls.c (bfd_openr): Remove redundant bfd_set_error.Alan Modra2002-06-171-6/+2
| | | | | | (bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise.
* * opncls.c (_bfd_new_bfd_contained_in): Check return value ofAlan Modra2002-05-041-0/+2
| | | | _bfd_new_bfd.
* * opncls.c (bfd_make_readable): Call bfd_section_list_clear.Alan Modra2002-04-261-2/+2
| | | | * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
* Write contents if writeable.Nick Clifton2002-04-151-36/+32
|
* hash bfd sections for fast lookup and create.Alan Modra2001-12-171-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ChangeLog * bfd.c (struct _bfd): Add section_htab, section_tail. * libbfd-in.h (_bfd_delete_bfd): Declare. (bfd_section_hash_newfunc): Declare. * opncls.c (_bfd_new_bfd): Free memory on failure. Init section_htab and section_tail. (_bfd_delete_bfd): New function. (bfd_openr): Use it. (bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise. (bfd_close): Likewise. (bfd_close_all_done): Likewise. (bfd_release): Comment. * section.c (struct section_hash_entry): New. (bfd_section_hash_newfunc): New function. (section_hash_lookup): Define. (bfd_section_init): New function, split out from bfd_make_section_anyway. (bfd_get_section_by_name): Lookup via hash table. (bfd_get_unique_section_name): Likewise. (bfd_make_section_old_way): Rewrite to use hash table. (bfd_make_section_anyway): Likewise. (bfd_make_section): Likewise. Return NULL for attempts to make BFD_{ABS,COM,UND,IND}_SECTION_NAME. (_bfd_strip_section_from_output): Adjust section_tail if needed. * configure.in: Bump bfd version. * configure: Regenerate. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. ld/ChangeLog * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust section_tail when fiddling with section list. (gld${EMULATION_NAME}_list_options): Ensure sentences aren't broken into separate strings to make translation easier. * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when fiddling with section list. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
* Touches most files in bfd/, so likely will be blamed for everything..Alan Modra2001-09-181-22/+29
| | | | | | | | | | | | | | | | | | | | | | | | o bfd_read and bfd_write lose an unnecessary param and become bfd_bread and bfd_bwrite. o bfd_*alloc now all take a bfd_size_type arg, and will error if size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files or bugs in linker scripts etc. o file_ptr becomes a bfd_signed_vma. Besides matching sizes with various other types involved in handling sections, this should make it easier for bfd to support a 64 bit off_t on 32 bit hosts that provide it. o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*) generally available. They now cast their args to bfd_vma and bfd_byte * as appropriate, which removes a swag of casts from the source. o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and aout-encap.c. o Zillions of formatting and -Wconversion fixes.
* Update copyright noticesNick Clifton2001-03-081-1/+2
|
* Add parens like the comment says.Alan Modra2001-01-141-2/+2
|
* (bfd_close_all_done): Mask file perms with 0777 not 0x777.Alan Modra2000-05-261-1/+1
|
* 19990502 sourceware importbinu_ss_19990502Richard Henderson1999-05-031-0/+683