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: b...@freebsd.org
          Reporter: ema...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to