[Bug 215999] binmisctl(8) man page provides wrong powerpc64 magic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 12 15:54:34 UTC 2017


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

            Bug ID: 215999
           Summary: binmisctl(8) man page provides wrong powerpc64 magic
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc at FreeBSD.org
          Reporter: luca.pizzamiglio at gmail.com
             Flags: maintainer-feedback?, mfc-stable11?

Created attachment 178795
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178795&action=edit
The fixing patch

The binmiscctl(8) man page provides several examples of magics that can be used
with several architectures.

The powerpc64 example has a little error in the magic string: the EI_CLASS
field (offset 0x04) should be 0x02 (64 bit) instead of 0x01 (32 bit)

Cross-compiled powerpc64 FreeBSD binaries confirm the error:

# hexdump -C -n 20 id
00000000  7f 45 4c 46 02 02 01 09  00 00 00 00 00 00 00 00  |.ELF............|
00000010  00 02 00 15                                       |....|

The attached patch can be applied to fix the man page

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


More information about the freebsd-doc mailing list