mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 22:03:57 +08:00
* peicode.h (pe_mkobject_hook): Set DLL flag.
(pe_bfd_copy_private_bfd_data): Copy DLL flag.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
|
Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* peicode.h (pe_mkobject_hook): Set DLL flag.
|
||||||
|
(pe_bfd_copy_private_bfd_data): Copy DLL flag.
|
||||||
|
|
||||||
* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
|
* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
|
||||||
for .stab* sections. Replace strlen of constant strings with
|
for .stab* sections. Replace strlen of constant strings with
|
||||||
number.
|
number.
|
||||||
|
@ -1933,6 +1933,9 @@ pe_mkobject_hook (abfd, filehdr, aouthdr)
|
|||||||
|
|
||||||
pe->real_flags = internal_f->f_flags;
|
pe->real_flags = internal_f->f_flags;
|
||||||
|
|
||||||
|
if ((internal_f->f_flags & F_DLL) != 0)
|
||||||
|
pe->dll = 1;
|
||||||
|
|
||||||
#ifdef COFF_IMAGE_WITH_PE
|
#ifdef COFF_IMAGE_WITH_PE
|
||||||
if (aouthdr)
|
if (aouthdr)
|
||||||
{
|
{
|
||||||
@ -1960,7 +1963,8 @@ pe_bfd_copy_private_bfd_data (ibfd, obfd)
|
|||||||
|| obfd->xvec->flavour != bfd_target_coff_flavour)
|
|| obfd->xvec->flavour != bfd_target_coff_flavour)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
pe_data(obfd)->pe_opthdr = pe_data (ibfd)->pe_opthdr;
|
pe_data (obfd)->pe_opthdr = pe_data (ibfd)->pe_opthdr;
|
||||||
|
pe_data (obfd)->dll = pe_data (ibfd)->dll;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user