include/coff/
Fix references past allocated memory for i386-*-go32. * ti.h (COFF_ADJUST_FILEHDR_IN_POST, COFF_ADJUST_FILEHDR_OUT_POST): Reference F_TARGET_ID only when !COFF0_P.
This commit is contained in:
parent
4e9b47b8d4
commit
12fa1497c1
|
@ -1,3 +1,9 @@
|
||||||
|
2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix references past allocated memory for i386-*-go32.
|
||||||
|
* ti.h (COFF_ADJUST_FILEHDR_IN_POST, COFF_ADJUST_FILEHDR_OUT_POST):
|
||||||
|
Reference F_TARGET_ID only when !COFF0_P.
|
||||||
|
|
||||||
2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Stop using bfd_usrdata in libbfd.
|
Stop using bfd_usrdata in libbfd.
|
||||||
|
|
|
@ -102,19 +102,21 @@ struct external_filehdr
|
||||||
#define COFF_ADJUST_FILEHDR_IN_POST(abfd, src, dst) \
|
#define COFF_ADJUST_FILEHDR_IN_POST(abfd, src, dst) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
((struct internal_filehdr *)(dst))->f_target_id = \
|
if (!COFF0_P (abfd)) \
|
||||||
H_GET_16 (abfd, ((FILHDR *)(src))->f_target_id); \
|
((struct internal_filehdr *)(dst))->f_target_id = \
|
||||||
|
H_GET_16 (abfd, ((FILHDR *)(src))->f_target_id); \
|
||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef COFF_ADJUST_FILEHDR_OUT_POST
|
#ifndef COFF_ADJUST_FILEHDR_OUT_POST
|
||||||
#define COFF_ADJUST_FILEHDR_OUT_POST(abfd, src, dst) \
|
#define COFF_ADJUST_FILEHDR_OUT_POST(abfd, src, dst) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
H_PUT_16 (abfd, ((struct internal_filehdr *)(src))->f_target_id, \
|
if (!COFF0_P (abfd)) \
|
||||||
((FILHDR *)(dst))->f_target_id); \
|
H_PUT_16 (abfd, ((struct internal_filehdr *)(src))->f_target_id, \
|
||||||
} \
|
((FILHDR *)(dst))->f_target_id); \
|
||||||
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue