forked from Imagelibrary/binutils-gdb
* ldwrite.c (build_link_order): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc or _raw_size. * pe-dll.c (process_def_file): Likewise.
This commit is contained in:
@@ -515,7 +515,7 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
|
||||
s = bfd_get_section_by_name (b, ".drectve");
|
||||
if (s)
|
||||
{
|
||||
int size = bfd_get_section_size_before_reloc (s);
|
||||
int size = bfd_get_section_size (s);
|
||||
char *buf = xmalloc (size);
|
||||
|
||||
bfd_get_section_contents (b, s, buf, 0, size);
|
||||
|
||||
Reference in New Issue
Block a user