mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-03 07:21:58 +00:00
* 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:
parent
67cf9bc5a1
commit
a9e0c0c668
@ -1,3 +1,9 @@
|
||||
2004-06-15 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* 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.
|
||||
|
||||
2004-06-14 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
From Richard Wirth <r.wirth@wirthware.de>
|
||||
|
@ -254,7 +254,7 @@ build_link_order (lang_statement_union_type *statement)
|
||||
if (i->_cooked_size)
|
||||
link_order->size = i->_cooked_size;
|
||||
else
|
||||
link_order->size = bfd_get_section_size_before_reloc (i);
|
||||
link_order->size = bfd_get_section_size (i);
|
||||
link_order->offset = i->output_offset;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user