aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-31bfd_follow_gnu_debuglink: New function. Follow the pointer contained inside aNick Clifton1-1/+334
.gnu_debuglink section.
2003-01-27* bfd.c (struct _bfd): Added id field.Alexandre Oliva1-0/+6
* opncls.c (_bfd_id_counter): New static variable. (_bfd_new_bfd): Use it. * bfd-in2.h: Rebuilt.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-32/+32
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-10-06 * opncls.c: Formatting.Alan Modra1-34/+36
(_bfd_new_bfd): Use a smaller section hash table.
2002-06-17 * opncls.c (bfd_openr): Remove redundant bfd_set_error.Alan Modra1-6/+2
(bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise.
2002-05-04 * opncls.c (_bfd_new_bfd_contained_in): Check return value ofAlan Modra1-0/+2
_bfd_new_bfd.
2002-04-26 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.Alan Modra1-2/+2
* xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
2002-04-15Write contents if writeable.Nick Clifton1-36/+32
2001-12-17hash bfd sections for fast lookup and create.Alan Modra1-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.
2001-09-18Touches most files in bfd/, so likely will be blamed for everything..Alan Modra1-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.
2001-03-08Update copyright noticesNick Clifton1-1/+2
2001-01-14Add parens like the comment says.Alan Modra1-2/+2
2000-05-26(bfd_close_all_done): Mask file perms with 0777 not 0x777.Alan Modra1-1/+1
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+683