diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-06-20 19:36:35 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-06-20 19:36:35 +0000 |
commit | 9ca108cdd07df42ff3331a61ce8bbd558de9b4da (patch) | |
tree | 09d6b65009e66c9ef16055eb83a9a354313f8df8 /bfd | |
parent | 180b9a3805e1435b699f51de0d04004daee0dcdd (diff) | |
download | gdb-9ca108cdd07df42ff3331a61ce8bbd558de9b4da.zip gdb-9ca108cdd07df42ff3331a61ce8bbd558de9b4da.tar.gz gdb-9ca108cdd07df42ff3331a61ce8bbd558de9b4da.tar.bz2 |
* peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/peicode.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 70f7005..931966d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com> + + * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. + Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com> * elf.c (map_sections_to_segments): Fix up the test for -Ttext to diff --git a/bfd/peicode.h b/bfd/peicode.h index 4e937cf..213c20c 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -783,7 +783,7 @@ static void add_data_entry (abfd, aout, idx, name, base) if (sec != NULL) { aout->DataDirectory[idx].VirtualAddress = sec->vma - base; - aout->DataDirectory[idx].Size = sec->_cooked_size; + aout->DataDirectory[idx].Size = pei_section_data (abfd, sec)->virt_size; sec->flags |= SEC_DATA; } } @@ -1065,7 +1065,6 @@ coff_swap_scnhdr_out (abfd, in, out) else if (strcmp (scnhdr_int->s_name, ".rdata") == 0 || strcmp (scnhdr_int->s_name, ".edata") == 0) flags = IMAGE_SCN_MEM_READ | SEC_DATA; - /* ppc-nt additions */ else if (strcmp (scnhdr_int->s_name, ".pdata") == 0) flags = IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_4BYTES | IMAGE_SCN_MEM_READ ; @@ -1077,9 +1076,8 @@ coff_swap_scnhdr_out (abfd, in, out) else if (strcmp (scnhdr_int->s_name, ".ydata") == 0) flags = IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_8BYTES | IMAGE_SCN_MEM_READ | IMAGE_SCN_MEM_WRITE ; - else if (strcmp (scnhdr_int->s_name, ".drectve") == 0) + else if (strncmp (scnhdr_int->s_name, ".drectve", strlen(".drectve")) == 0) flags = IMAGE_SCN_LNK_INFO | IMAGE_SCN_LNK_REMOVE ; - /* end of ppc-nt additions */ #ifdef POWERPC_LE_PE else if (strncmp (scnhdr_int->s_name, ".stabstr", strlen(".stabstr")) == 0) { |