[Bug 1249] New: --hash-style=gnu support in ld not detected correctly

bugzilla at busybox.net bugzilla at busybox.net
Thu Mar 4 10:55:24 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1249

           Summary: --hash-style=gnu support in ld not detected correctly
           Product: uClibc
           Version: 0.9.31
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Other
        AssignedTo: unassigned at uclibc.org
        ReportedBy: bero at arklinux.org
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


When enabling gnu hash support, uClibc's build process errors out with

Rules.mak:585: *** Your binutils do not support --hash-style option, while you
want to use it.  Stop.
make: *** [pregen-headers] Error 2

even though binutils does support the --hash-style option.

Looking into what happens, Rules.mak runs this command to determine if
--hash-style is supported:

armv6j-blankpage-linux-gnueabi-ld --hash-style=gnu -o /dev/null -b binary
/dev/null

This fails, but not because of --hash-style=gnu:

armv6j-blankpage-linux-gnueabi-ld: fatal error: /dev/null: mmap failed: Invalid
argument

strace-ing ld shows:

open("/dev/null", O_RDONLY|0x80000)     = 3
fstat(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
mmap(NULL, 0, PROT_READ, MAP_PRIVATE, 3, 0) = -1 EINVAL (Invalid argument)

mmap with a size of 0 fails with EINVAL since Linux 2.6.12


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list