You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
Use the platform specific ELF branding expected under FreeBSD. |
|
This is similar to what the vendor ld(1) does on this platform. |
|
|
|
Index: bfd/elf.c |
|
--- bfd/elf.c.orig 2005-03-06 03:02:15 +0100 |
|
+++ bfd/elf.c 2005-05-03 19:48:25 +0200 |
|
@@ -4621,6 +4621,12 @@ |
|
else |
|
i_ehdrp->e_type = ET_REL; |
|
|
|
+ /* OpenPKG platform branding BEGIN */ |
|
+#if defined(OPENPKG_OS_FREEBSD) |
|
+ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; |
|
+#endif |
|
+ /* OpenPKG platform branding END */ |
|
+ |
|
switch (bfd_get_arch (abfd)) |
|
{ |
|
case bfd_arch_unknown: |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
Support FreeBSD >= 4.10 by fixing platform detection. |
|
|
|
Index: bfd/configure |
|
--- bfd/configure.orig 2005-05-02 21:43:54 +0200 |
|
+++ bfd/configure 2005-05-03 19:49:53 +0200 |
|
@@ -9956,6 +9956,10 @@ |
|
i[3-7]86-*-bsdi) |
|
COREFILE= |
|
;; |
|
+ i[3456]86-*-freebsd4.1[0-9]*) |
|
+ COREFILE='' |
|
+ TRAD_HEADER='"hosts/i386bsd.h"' |
|
+ ;; |
|
i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) |
|
COREFILE=trad-core.lo |
|
TRAD_HEADER='"hosts/i386bsd.h"'
|
|
|