/* CRIS ELF support for BFD.
- Copyright 2000, 2001, 2004 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2004, 2010 Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Written by Hans-Peter Nilsson.
-This file is part of BFD, the Binary File Descriptor library.
+ This file is part of BFD, the Binary File Descriptor library.
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef _ELF_CRIS_H
#define _ELF_CRIS_H
/* An assembler- and linker-generated relocation, instructing to
resolve the symbol in question yielding the TLS offset of the
- thread variable; relative to the module's TLS data if in a DSO,
- but relative to the executable's thread data if in an
- executable. Not allowed as input when generating a DSO. Assembly
- syntax: "expr:TPOFF". */
+ thread variable, relative to the global TLS block. Not allowed
+ as input when generating a DSO. Assembly syntax:
+ "expr:TPOFF". */
RELOC_NUMBER (R_CRIS_32_TPREL, 28)
/* Similar to R_CRIS_32_TPREL, but only applicable to executables
/* A linker-generated-only relocation, instructing the dynamic
linker to fill in the current module ID, used for GOT entries
- (always the fourth one). */
+ (usually the fourth one). */
RELOC_NUMBER (R_CRIS_DTPMOD, 30)
+ /* Similar to R_CRIS_32_GOT_TPREL, but the value is the absolute
+ address of the GOT entry. Disallowed in DSOs created with
+ -shared. Assembly syntax: "sym:IE". */
+ RELOC_NUMBER (R_CRIS_32_IE, 31)
+
/* No other relocs must be visible outside the assembler. */
END_RELOC_NUMBERS (R_CRIS_max)