mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
* objcopy.c (copy_section): Use bfd_get_section_size instead of
_raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done. (compare_section_lma): Likewise. * addr2line.c (find_address_in_section): Likewise. * coffgrok.c (do_sections_p1): Likewise. * dlltool.c (scan_drectve_symbols): Likewise. * nlmconv.c (main): Likewise. (copy_sections): Likewise. (powerpc_mangle_relocs): Likewise. * objdump.c (disassemble_section): Likewise. * prdbg.c (find_address_in_section): Likewise. * size.c (berkeley_sum): Likewise. * srconv.c (wr_ob): Likewise. * strings.c (strings_a_section): Likewise.
This commit is contained in:
@ -1206,7 +1206,7 @@ scan_drectve_symbols (bfd *abfd)
|
||||
if (s == NULL)
|
||||
return;
|
||||
|
||||
size = bfd_get_section_size_before_reloc (s);
|
||||
size = bfd_get_section_size (s);
|
||||
buf = xmalloc (size);
|
||||
|
||||
bfd_get_section_contents (abfd, s, buf, 0, size);
|
||||
|
Reference in New Issue
Block a user