mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
e4c05f8cbc
Signed-off-by: B. Watson <yalhcru@gmail.com>
19 lines
849 B
Diff
19 lines
849 B
Diff
diff -Naur naev-0.7.0/src/naev.c naev-0.7.0.patched/src/naev.c
|
|
--- naev-0.7.0/src/naev.c 2017-07-15 18:51:22.000000000 -0400
|
|
+++ naev-0.7.0.patched/src/naev.c 2022-02-20 17:32:49.060133407 -0500
|
|
@@ -1375,12 +1375,11 @@
|
|
asection *section;
|
|
|
|
for (section = abfd->sections; section != NULL; section = section->next) {
|
|
- if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
|
|
+ if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
|
|
continue;
|
|
|
|
- bfd_vma vma = bfd_get_section_vma(abfd, section);
|
|
- bfd_size_type size = bfd_get_section_size(section);
|
|
- if (address < vma || address >= vma + size)
|
|
+ bfd_vma vma = bfd_section_vma(section);
|
|
+ if (address < vma || address >= vma + bfd_section_size(section))
|
|
continue;
|
|
|
|
if (!bfd_find_nearest_line(abfd, section, syms, address - vma,
|