FreeBSD Bugzilla – Attachment 187008 Details for
Bug 222865
[patch] ports-mgmt/pkg: pkg config ABI returns armv6 on an armv7 system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Recognize armv7 as new arm subarchitecture
pkg.diff (text/plain), 2.13 KB, created by
Michal Meloun
on 2017-10-08 16:37:54 UTC
(
hide
)
Description:
Recognize armv7 as new arm subarchitecture
Filename:
MIME Type:
Creator:
Michal Meloun
Created:
2017-10-08 16:37:54 UTC
Size:
2.13 KB
patch
obsolete
>Index: files/patch-libpkg_pkg__elf.c >=================================================================== >--- files/patch-libpkg_pkg__elf.c (nonexistent) >+++ files/patch-libpkg_pkg__elf.c (working copy) >@@ -0,0 +1,14 @@ >+--- libpkg/pkg_elf.c.orig 2017-10-08 07:32:25 UTC >++++ libpkg/pkg_elf.c >+@@ -665,8 +665,10 @@ aeabi_parse_arm_attributes(void *data, size_t length) >+ /* We have an ARMv4 or ARMv5 */ >+ if (val <= 5) >+ return ("arm"); >+- else /* We have an ARMv6+ */ >++ else if (val == 6) /* We have an ARMv6 */ >+ return ("armv6"); >++ else /* We have an ARMv7+ */ >++ return ("armv7"); >+ } else if (tag == 4 || tag == 5 || tag == 32 || >+ tag == 65 || tag == 67) { >+ while (*section != '\0' && length != 0) > >Property changes on: files/patch-libpkg_pkg__elf.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-libpkg_private_elf__tables.h >=================================================================== >--- files/patch-libpkg_private_elf__tables.h (nonexistent) >+++ files/patch-libpkg_private_elf__tables.h (working copy) >@@ -0,0 +1,11 @@ >+--- libpkg/private/elf_tables.h.orig 2017-10-08 07:32:31 UTC >++++ libpkg/private/elf_tables.h >+@@ -94,6 +94,8 @@ static struct arch_trans machine_arch_translation[] = >+ { "arm:32:eb:oabi:softfp", "armeb" }, >+ { "armv6:32:el:eabi:softfp", "armv6" }, >+ { "armv6:32:el:eabi:hardfp", "armv6" }, >++ { "armv7:32:el:eabi:softfp", "armv7" }, >++ { "armv7:32:el:eabi:hardfp", "armv7" }, >+ { "aarch64:64", "aarch64" }, >+ /* And now MIPS */ >+ { "mips:32:el:o32", "mipsel" }, > >Property changes on: files/patch-libpkg_private_elf__tables.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 222865
: 187008