From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8668 invoked by alias); 9 Feb 2005 09:38:50 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 8611 invoked from network); 9 Feb 2005 09:38:49 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Feb 2005 09:38:49 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j199cnC6022611 for ; Wed, 9 Feb 2005 04:38:49 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j199cnO11470; Wed, 9 Feb 2005 04:38:49 -0500 Received: from livre.redhat.lsd.ic.unicamp.br (vpn50-61.rdu.redhat.com [172.16.50.61]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j199cm41032223; Wed, 9 Feb 2005 04:38:48 -0500 Received: from livre.redhat.lsd.ic.unicamp.br (livre.redhat.lsd.ic.unicamp.br [127.0.0.1]) by livre.redhat.lsd.ic.unicamp.br (8.13.3/8.13.3) with ESMTP id j199clbQ006983; Wed, 9 Feb 2005 07:38:47 -0200 Received: (from aoliva@localhost) by livre.redhat.lsd.ic.unicamp.br (8.13.3/8.13.3/Submit) id j199cliL006980; Wed, 9 Feb 2005 07:38:47 -0200 To: libc-hacker@sources.redhat.com Cc: roland@redhat.com Subject: elf.h changes for FR-V FDPIC and TLS References: From: Alexandre Oliva Organization: Red Hat Global Engineering Services Compiler Team Date: Wed, 09 Feb 2005 09:38:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2005-02/txt/msg00015.txt.bz2 --=-=-= Content-length: 128 Roland asked me to break the patch up into smaller pieces. Here goes the first one, that doesn't depend on any other patches. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=glibc-frv-elf-h.patch Content-length: 1565 Index: ChangeLog 2004-11-10 Alexandre Oliva * elf/elf.h (R_FRV_TLSDESC_VALUE, R_FRV_TLSOFF): New. 2004-02-27 Alexandre Oliva * elf/elf.h (EM_CYGNUS_FRV, R_FRV_NONE, R_FRV_32, R_FRV_FUNCDESC, R_FRV_FUNCDESC_VALUE, EF_FRV_PIC, EF_FRV_FDPIC): New. Index: elf/elf.h --- elf/elf.h 2004-12-05 00:18:32.000000000 -0200 +++ elf/elf.h 2005-01-31 04:07:08.000000000 -0200 @@ -254,6 +254,9 @@ pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision with official or non-GNU unofficial values. */ +/* Fujitsu FR-V. */ +#define EM_CYGNUS_FRV 0x5441 + #define EM_ALPHA 0x9026 /* Legal values for e_version (version). */ @@ -1137,6 +1140,24 @@ /* Keep this the last entry. */ #define R_386_NUM 38 +/* FR-V specific definitions. */ +#define R_FRV_NONE 0 /* No reloc. */ +#define R_FRV_32 1 /* Direct 32 bit. */ +/* Canonical function descriptor address. */ +#define R_FRV_FUNCDESC 14 +/* Private function descriptor initialization. */ +#define R_FRV_FUNCDESC_VALUE 18 +/* TLS descriptor initialization. First word points to an entry + point; second words holds an argument that can either be a + Thread-Pointer offset, for Static TLS, or a full TLS descriptor, + for Dynamic TLS. */ +#define R_FRV_TLSDESC_VALUE 26 +/* Biased Thread-Pointer offset. */ +#define R_FRV_TLSOFF 36 + +#define EF_FRV_PIC 0x00000100 +#define EF_FRV_FDPIC 0x00008000 + /* SUN SPARC specific definitions. */ /* Legal values for ST_TYPE subfield of st_info (symbol type). */ --=-=-= Content-length: 188 -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org} --=-=-=--