diff options
author | DJ Delorie <dj@redhat.com> | 2000-10-03 22:07:17 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-10-03 22:07:17 +0000 |
commit | c2a94a7afd8ce232632857a50f40202272670a06 (patch) | |
tree | a0fb6aee05d1df009550eb16e4d58493de970cf0 /ld | |
parent | 8c95a62eae0496f7aafd3224189dfd6c5b59445f (diff) | |
download | gdb-c2a94a7afd8ce232632857a50f40202272670a06.zip gdb-c2a94a7afd8ce232632857a50f40202272670a06.tar.gz gdb-c2a94a7afd8ce232632857a50f40202272670a06.tar.bz2 |
* pe-dll.c (fill_edata): initialize entire block
(make_one): fill in correct section.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/pe-dll.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7fe1bbd..395f351 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2000-10-03 DJ Delorie <dj@redhat.com> + + * pe-dll.c (fill_edata): initialize entire block + (make_one): fill in correct section. + 2000-10-03 Kazu Hirata <kazu@hxi.com> * ldexp.c: Fix formatting. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index a4be5f0..b869b3f 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -676,7 +676,7 @@ fill_edata (abfd, info) #define ERVA(ptr) (((unsigned char *)(ptr) - edata_d) + edata_s->output_section->vma - image_base) - memset (edata_d, 0, 40); + memset (edata_d, 0, edata_sz); bfd_put_32 (abfd, now, edata_d + 4); if (pe_def_file->version_major != -1) { @@ -1503,9 +1503,9 @@ make_one (exp, parent) memset (d4, 0, 4); if (exp->flag_noname) { - d5[0] = exp->ordinal; - d5[1] = exp->ordinal >> 8; - d5[3] = 0x80; + d4[0] = exp->ordinal; + d4[1] = exp->ordinal >> 8; + d4[3] = 0x80; } else { |