bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/16456] New: Wrong directory is searched with non-default emulati


From: hjl.tools at gmail dot com
Subject: [Bug ld/16456] New: Wrong directory is searched with non-default emulation
Date: Wed, 15 Jan 2014 20:28:50 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16456

            Bug ID: 16456
           Summary: Wrong directory is searched with non-default emulation
           Product: binutils
           Version: 2.25 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

On Linux/x86-64, when binutils is configured with --libdir=/usr/lib64,
genscripts.sh treats /usr/lib64 as the default search directory. It
put /usr/lib64 in linker scripts for all emulations, like

---
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
          "elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-redhat-linux/lib32");
SEARCH_DIR("/usr/i386-redhat-linux/lib32"); SEARCH_DIR("/usr/lib6432");
SEARCH_DIR("/usr/local/lib32"); SEARCH_DIR("/lib32"); SEARCH_DIR("/usr/lib32");
SEARCH_DIR("/usr/i386-redhat-linux/lib"); SEARCH_DIR("/usr/lib64");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
---

When I install my own 32bit GCC on Linux/x86-64, I got:

address@hidden tmp]$
/export/build/gnu/gcc-32bit-4.7/release.original/usr/gcc-4.7.4/bin/gcc x.o 
/usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
address@hidden tmp]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]