[Bug 228934] objcopy (from elftoolchain) does not set ELF OS/ABI field for binary->ELF conversion

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 12 13:24:25 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228934

            Bug ID: 228934
           Summary: objcopy (from elftoolchain) does not set ELF OS/ABI
                    field for binary->ELF conversion
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

One of the steps in building the amd64 64-bit linuxulator vdso is:
> objcopy --input-target binary --output-target elf64-x86-64-freebsd -S -g --binary-architecture i386:x86-64 linux_locore.o linux_vdso.so

This should set the ELF header OS/ABI field to FreeBSD. GNU objcopy does; ELF
Tool Chain objcopy/elfcopy sets it to none/SYSV. With --output-target
elf64-x86-64 GNU objcopy sets it to none/SYSV.

(Using --output-target elf64-x86-64-freebsd is actually a bug in the
Linuxulator Makefile: the vdso is in fact supposed to be a Linux shared object,
which is a separate issue to be fixed.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list