summaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
Commit message (Collapse)AuthorAgeFilesLines
...
* * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zeroAlan Modra2004-04-171-8/+11
| | | | | | | filepos for the SizeOfHeaders field. (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc overflow. (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
* * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Cleardrow_intercu-20040221-branchpointDanny Smith2004-02-211-4/+3
| | | | IMAGE_SCN_MEM_WRITE on known sections only.
* * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't removeDanny Smith2004-01-201-5/+13
| | | | | IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT flag has been cleared.
* Ensure that correct flags are set on known PE section types.Nick Clifton2003-12-151-14/+50
|
* * ChangeLog: Fix typos.Kazu Hirata2003-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add initial support for TLS sections in PE format files.Nick Clifton2003-11-101-3/+16
|
* * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't calculate image size forChristopher Faylor2003-10-171-1/+3
| | | | sections which lack size info.
* * coffcode.h (coff_set_alignment_hook): With PE_COFF relocNathan Sidwell2003-10-071-1/+5
| | | | | | | | | | overflow, set reloc start position to after the count reloc. Subtract one from num relocs. Give error on 0xffff relocs and no overflow. * cofflink.c (_bfd_coff_final_link): Deal with PE_COFF reloc overflow. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Do overflow if >= 0xffff.
* Correct spelling of "relocatable".Alan Modra2003-06-251-1/+1
|
* (_bfd_XXi_swap_scnhdr_out): Compute ps and ss differently for object files andcagney_frameaddr-20030403-branchpointNick Clifton2003-04-031-4/+16
| | | | | | | | executables. (coff_swap_scnhdr_in): Only set the s_size field for object files or for executables who have not already initialised the field. (bfd_pe_executable_p): New macro. Return true if the PE format bfd is an executable.
* Initialise $idata2 and $idata5 in case bfd_coff_final_link is not called.Nick Clifton2003-03-201-15/+26
|
* s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra2002-11-301-45/+45
| | | | comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
* * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.Alan Modra2002-07-161-1/+1
|
* * peXXigen.c (pe_print_idata): Remove unused variable.Alan Modra2002-06-061-1/+0
|
* Remove double printed import table lines; add Bound-To comment.Nick Clifton2002-05-301-69/+32
|
* * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables withChristopher Faylor2002-05-291-71/+72
| | | | auto-imported symbols.
* Do not assume that the first thunk is located in the same section as theNick Clifton2002-05-151-3/+54
| | | | | import table. Instead check, and if necessary load the section containing the thunk.
* Fixes for better translation into other languagesNick Clifton2002-01-301-12/+9
|
* * peXXigen.c (_bfd_XX_print_private_bfd_data_common): CopyRichard Henderson2001-10-251-1/+4
| | | | timestamp to time_t for ctime.
* Touches most files in bfd/, so likely will be blamed for everything..Alan Modra2001-09-181-240/+196
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add missing protypesNick Clifton2001-08-141-129/+120
|
* Update copyright noticesNick Clifton2001-03-081-1/+2
|
* * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: DefineDJ Delorie2001-02-131-0/+2042
as _bfd_XXi_only_swap_filehdr_out. (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set pe->force_minimum_alignment to TRUE. (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to PEI_TARGET_SUBSYSTEM. (pe_print_private_bfd_data): Call _bfd_XX_print_private_bfd_data_common() instead of _bfd_pe_print_private_bfd_data_common(). (pe_bfd_copy_private_bfd_data): Call _bfd_XX_bfd_copy_private_bfd_data_common() instead of _bfd_pe_bfd_copy_private_bfd_data_common(). (coff_bfd_copy_private_section_data): Define as _bfd_XX_bfd_copy_private_section_data instead of _bfd_pe_bfd_copy_private_section_data. (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead of a _bfd_pe_get_symbol_info. * peigen.c: Delete. * peXXigen.c: Renamed from peigen.c. (COFF_WITH_XX): Define this macro (will get expanded into COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being compiled as peigen.c or pepigen.c. [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to define the canonical PEP structures and definitions. (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in effect, enforce minimum file and section alignments. If extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, so, by default, this is a no-op). * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to _bfd_pefoo if it's not defined. Use these macros to define coff swap macros. * libcoff.h (pe_tdata): Add members target_subsystem and force_minimum_alignment. * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to COFF_WITH_pep. (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of peigen.lo. * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and PEPAOUTHDR. * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. (BFD64_BACKENDS_CFILES): Mention pepigen.c (peigen.c): Add rule to generate from peXXigen.c. (pepigen.c): Ditto. (pepigen.lo): List dependencies for pepigen.lo. * unwind-ia64.c (unw_decode_x1): Declare code arg with ATTRIBUTE_UNUSED. (unw_decode_x2): Ditto. (unw_decode_x3): Ditto. (unw_decode_x4): Ditto. * pe.h (PEPAOUTSZ): Rename from PEP64AOUTSZ. Rename from PEPAOUTHDR.