From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 20:49:13 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFA37346 for ; Sat, 9 Aug 2014 20:49:13 +0000 (UTC) Received: from felyko.com (felyko.com [IPv6:2001:470:1:2d5:26:3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id DA52B26B8 for ; Sat, 9 Aug 2014 20:49:13 +0000 (UTC) Received: from [IPv6:2601:9:8280:5fd:d5a4:20d0:8128:6903] (unknown [IPv6:2601:9:8280:5fd:d5a4:20d0:8128:6903]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 82AAA34A9E4 for ; Sat, 9 Aug 2014 13:49:13 -0700 (PDT) From: Rui Paulo Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ELF relocations on i386 Message-Id: Date: Sat, 9 Aug 2014 13:49:23 -0700 To: FreeBSD Hackers Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2014 20:49:14 -0000 Hi, I'm having difficulty understanding why I can't create a relocatable = i386 object file with ld: % ld -o test.o -b elf32-i386-freebsd --oformat=3Delf32-i386-freebsd -r = /usr/lib32/dtrace/drti.o=20 ld: Relocatable linking with relocations from format elf32-i386-freebsd = (/usr/lib32/dtrace/drti.o) to format elf32-i386-freebsd (test.o) is not = supported % objdump -x /usr/lib32/dtrace/drti.o /usr/lib32/dtrace/drti.o: file format elf32-i386-freebsd /usr/lib32/dtrace/drti.o architecture: i386, flags 0x00000011: HAS_RELOC, HAS_SYMS start address 0x00000000 [...] Any ideas why this isn't supported? The error message is odd. -- Rui Paulo