diff options
author | Joan Bruguera | 2020-06-24 04:45:17 +0200 |
---|---|---|
committer | Joan Bruguera | 2020-06-24 04:45:17 +0200 |
commit | 44f5829a31337d849047d095f9944678944f7100 (patch) | |
tree | 9a6c8a3eeca350c89231e7b6c1a9d985e4f63efa /extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch | |
parent | 3d4915a479aadd11a5ff50a488b59031f1febf45 (diff) | |
download | aur-44f5829a31337d849047d095f9944678944f7100.tar.gz |
Upgrade to Extrae 3.8.0.
Diffstat (limited to 'extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch')
-rw-r--r-- | extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch b/extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch deleted file mode 100644 index 65357b12ad2a..000000000000 --- a/extrae-Fix-up-bfd_get_section_-macros-due-to-binutils-2.34.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 2564787ea16dbcfc1ebcccbebe17a2e85d433574 Mon Sep 17 00:00:00 2001 -From: Joan Bruguera <joanbrugueram@gmail.com> -Date: Tue, 3 Mar 2020 22:20:30 +0100 -Subject: [PATCH] Fix up bfd_get_section_* macros due to binutils 2.34 update. - See - https://wiki.gentoo.org/wiki/Binutils_2.34_porting_notes/undefined_reference_to_bfd_get_section_* - for more details. - ---- - src/merger/common/bfd_manager.c | 16 +++------------- - 1 file changed, 3 insertions(+), 13 deletions(-) - -diff --git a/src/merger/common/bfd_manager.c b/src/merger/common/bfd_manager.c -index 86777b7..79d49d0 100644 ---- a/src/merger/common/bfd_manager.c -+++ b/src/merger/common/bfd_manager.c -@@ -233,34 +233,24 @@ asymbol **BFDmanager_getDefaultSymbols (void) - */ - static void BFDmanager_findAddressInSection (bfd * abfd, asection * section, PTR data) - { --#if HAVE_BFD_GET_SECTION_SIZE || HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC - bfd_size_type size; --#endif - bfd_vma vma; - BFDmanager_symbolInfo_t *symdata = (BFDmanager_symbolInfo_t*) data; - - if (symdata->found) - return; - -- if ((bfd_get_section_flags (abfd, section) & SEC_ALLOC) == 0) -+ if ((bfd_section_flags (section) & SEC_ALLOC) == 0) - return; - -- vma = bfd_get_section_vma (abfd, section);; -+ vma = bfd_section_vma (section);; - - if (symdata->pc < vma) - return; - --#if HAVE_BFD_GET_SECTION_SIZE -- size = bfd_get_section_size (section); -- if (symdata->pc >= vma + size) -- return; --#elif HAVE_BFD_GET_SECTION_SIZE_BEFORE_RELOC -- size = bfd_get_section_size_before_reloc (section); -+ size = bfd_section_size (section); - if (symdata->pc >= vma + size) - return; --#else -- /* Do nothing? */ --#endif - - symdata->found = bfd_find_nearest_line (abfd, section, symdata->symbols, - symdata->pc - vma, &symdata->filename, &symdata->function, --- -2.25.1 - |