URL
https://opencores.org/ocsvn/hf-risc/hf-risc/trunk
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
13 |
serginhofr |
/* Definitions for 64-bit RISC-V GNU/Linux systems with ELF format.
|
| 2 |
|
|
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011
|
| 3 |
|
|
Free Software Foundation, Inc.
|
| 4 |
|
|
|
| 5 |
|
|
This file is part of GCC.
|
| 6 |
|
|
|
| 7 |
|
|
GCC is free software; you can redistribute it and/or modify
|
| 8 |
|
|
it under the terms of the GNU General Public License as published by
|
| 9 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
| 10 |
|
|
any later version.
|
| 11 |
|
|
|
| 12 |
|
|
GCC is distributed in the hope that it will be useful,
|
| 13 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 14 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 15 |
|
|
GNU General Public License for more details.
|
| 16 |
|
|
|
| 17 |
|
|
You should have received a copy of the GNU General Public License
|
| 18 |
|
|
along with GCC; see the file COPYING3. If not see
|
| 19 |
|
|
<http://www.gnu.org/licenses/>. */
|
| 20 |
|
|
|
| 21 |
|
|
/* Force the default ABI flags onto the command line
|
| 22 |
|
|
in order to make the other specs easier to write. */
|
| 23 |
|
|
#undef LIB_SPEC
|
| 24 |
|
|
#define LIB_SPEC "\
|
| 25 |
|
|
%{pthread:-lpthread} \
|
| 26 |
|
|
%{shared:-lc} \
|
| 27 |
|
|
%{!shared: \
|
| 28 |
|
|
%{profile:-lc_p} %{!profile:-lc}}"
|
| 29 |
|
|
|
| 30 |
|
|
#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
|
| 31 |
|
|
#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
|
| 32 |
|
|
|
| 33 |
|
|
#undef LINK_SPEC
|
| 34 |
|
|
#define LINK_SPEC "\
|
| 35 |
|
|
%{shared} \
|
| 36 |
|
|
%{!shared: \
|
| 37 |
|
|
%{!static: \
|
| 38 |
|
|
%{rdynamic:-export-dynamic} \
|
| 39 |
|
|
%{" OPT_ARCH64 ": -dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "} \
|
| 40 |
|
|
%{" OPT_ARCH32 ": -dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "}} \
|
| 41 |
|
|
%{static:-static}} \
|
| 42 |
|
|
%{" OPT_ARCH64 ":-melf64lriscv} \
|
| 43 |
|
|
%{" OPT_ARCH32 ":-melf32lriscv}"
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.