Ravenports generated: 16 Aug 2021 03:50
[ravenports.git] / bucket_98 / ravensys-binutils
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ravensys-binutils
4 VERSION=                2.37
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        GNU binary tools for Ravenports toolchain
8 HOMEPAGE=               http://sources.redhat.com/binutils/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            SOURCEWARE/binutils/releases
13 DISTFILE[1]=            binutils-2.37.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          mpfr:static:standard
21                         gmp:static:standard
22
23 USES=                   cpe bison gmake libtool zlib:build
24
25 DISTNAME=               binutils-2.37
26
27 LICENSE=                GPLv3+:single
28 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
29 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/COPYING3
30 LICENSE_AWK=            TERMS:"ifndef GAS"
31 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/gas/as.h
32 LICENSE_SCHEME=         solo
33
34 PREFIX=                 {{LOCALBASE}}/toolchain
35 CPE_VENDOR=             gnu
36 FPC_EQUIVALENT=         devel/binutils
37
38 INVALID_RPATH=          yes
39 MUST_CONFIGURE=         gnu
40 CONFIGURE_ARGS=         --disable-werror
41                         --disable-shared
42                         --with-gmp={{LOCALBASE}}
43                         --with-mpfr={{LOCALBASE}}
44                         --with-system-zlib
45                         --with-lib-path=/usr/lib
46                         --enable-targets=all
47                         --enable-x86-relax-relocations=no
48                         --enable-nls=no
49
50 INSTALL_TARGET=         install-strip
51 PLIST_SUB=              PLUGINAPI={{PLUGINAPI}}
52                         LINKER={{LINKER}}
53                         ASSEMBLER={{ASSEMBLER}}
54                         GPROF={{GPROF}}
55                         TARGET={{CONFIGURE_TARGET}}
56                         CTF={{SKIP_CTF:U}}
57
58 VAR_OPSYS[freebsd]=     VAR1=/libexec/ld-elf.so.1
59                         VAR2=/libexec/ld-elf.so.1
60                         MAKEFILE_LINE=BUILD_GOLD=yes
61                         MAKEFILE_LINE=GOLD_CONFIG=--enable-gold=default
62 VAR_OPSYS[sunos]=       VAR1=/lib/amd64/ld.so.1
63                         VAR2=/lib/ld.so.1
64                         MAKEFILE_LINE=BUILD_GOLD=yes
65                         MAKEFILE_LINE=GOLD_CONFIG=--enable-gold
66 VAR_OPSYS[linux]=       VAR1=/lib/ld64.so.1
67                         VAR2=/lib/ldx32.so.1
68                         MAKEFILE_LINE=BUILD_GOLD=yes
69                         MAKEFILE_LINE=GOLD_CONFIG=--enable-gold
70                         MAKEFILE_LINE=SKIP_CTF="@comment "
71 VAR_OPSYS[darwin]=      VAR1=/libexec/ld-elf.so.1
72                         VAR2=/libexec/ld-elf.so.1
73                         MAKEFILE_LINE=LINKER="@comment "
74                         MAKEFILE_LINE=ASSEMBLER="@comment "
75                         MAKEFILE_LINE=GPROF="@comment "
76 VAR_OPSYS[netbsd]=      MAKEFILE_LINE=PLUGINAPI="@comment "
77 VAR_OPSYS[openbsd]=     MAKEFILE_LINE=PLUGINAPI="@comment "
78 VAR_OPSYS[dragonfly]=   VAR1=/libexec/ld-elf.so.2
79                         VAR2=/libexec/ld-elf.so.2
80                         MAKEFILE_LINE=BUILD_GOLD=yes
81                         MAKEFILE_LINE=GOLD_CONFIG=--enable-gold=default
82
83 post-patch:
84         ${REINPLACE_CMD} \
85                 -e 's|@ELF64_INTERPRETER@|${VAR1}|' \
86                 -e 's|@ELF32_INTERPRETER@|${VAR2}|' \
87         ${WRKSRC}/bfd/elfxx-x86.c \
88         ${WRKSRC}/gold/x86_64.cc
89         # turn NLS off
90         ${REINPLACE_CMD} -e '/INFO_DEPS =/d' \
91                 ${WRKSRC}/ld/Makefile.in \
92                 ${WRKSRC}/gprof/Makefile.in \
93                 ${WRKSRC}/bfd/doc/Makefile.in \
94                 ${WRKSRC}/binutils/doc/Makefile.in \
95                 ${WRKSRC}/gas/doc/Makefile.in
96
97 post-install:
98         ${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h \
99                 ${STAGEDIR}${PREFIX}/include/
100         ${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h
101         ${SED} -i'' '/#include "ansidecl.h"/d' \
102                 ${STAGEDIR}${PREFIX}/include/bfd.h
103 .for tool in coffdump dlltool dllwrap nlmconv srconv sysdump windmc windres
104         ${RM} ${STAGEDIR}${PREFIX}/bin/${BUTARGET}-${tool} \
105                 ${STAGEDIR}${MANPREFIX}/man/man1/${BUTARGET}-${tool}.1 \
106                 ${STAGEDIR}${PREFIX}/${BUTARGET}/bin/${tool}
107 .endfor
108         # autoplist target files and ldscripts
109         ${FIND} ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} ! -type d | \
110                 ${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' \
111                 >> ${WRKDIR}/.manifest.single.mktmp
112
113 [FILE:164:descriptions/desc.single]
114 This package is part of the Ravenports Toolchain.  It mainly contains
115
116 * ld - the GNU linker.
117 * as - the GNU assembler.
118
119 which are used by the Ravenports compiler.
120
121
122 [FILE:99:distinfo]
123 820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c     22916924 binutils-2.37.tar.xz
124
125
126 [FILE:730:manifests/plist.single]
127 %%ASSEMBLER%%bin/as
128 %%ASSEMBLER%%share/man/man1/as.1.gz
129 %%CTF%%include/
130  ctf-api.h
131  ctf.h
132 %%CTF%%lib/
133  libctf-nobfd.a
134  libctf.a
135 %%GOLD%%bin/
136  dwp
137  ld.gold
138 %%GPROF%%bin/gprof
139 %%GPROF%%share/man/man1/gprof.1.gz
140 %%LINKER%%bin/
141  ld
142  ld.bfd
143 %%LINKER%%share/man/man1/ld.1.gz
144 %%PLUGINAPI%%include/plugin-api.h
145 bin/
146  addr2line
147  ar
148  c++filt
149  elfedit
150  nm
151  objcopy
152  objdump
153  ranlib
154  readelf
155  size
156  strings
157  strip
158 include/
159  bfd.h
160  bfdlink.h
161  diagnostics.h
162  dis-asm.h
163  symcat.h
164 lib/
165  libbfd.a
166  libopcodes.a
167 lib/bfd-plugins/libdep.a
168 share/man/man1/
169  addr2line.1.gz
170  ar.1.gz
171  c++filt.1.gz
172  dlltool.1.gz
173  elfedit.1.gz
174  nm.1.gz
175  objcopy.1.gz
176  objdump.1.gz
177  ranlib.1.gz
178  readelf.1.gz
179  size.1.gz
180  strings.1.gz
181  strip.1.gz
182  windmc.1.gz
183  windres.1.gz
184
185
186 [FILE:453:patches/patch-bfd_config.bfd]
187 For loader.efi linking support.
188
189 --- bfd/config.bfd.orig 2021-07-08 11:37:19 UTC
190 +++ bfd/config.bfd
191 @@ -661,7 +661,7 @@ case "${targ}" in
192      ;;
193    x86_64-*-dragonfly*)
194      targ_defvec=x86_64_elf64_vec
195 -    targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
196 +    targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
197      want64=true
198      ;;
199    x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
200
201
202 [FILE:1045:patches/patch-bfd_elfnn-aarch64.c]
203 --- bfd/elfnn-aarch64.c.orig    2021-07-08 11:37:19 UTC
204 +++ bfd/elfnn-aarch64.c
205 @@ -4851,7 +4851,9 @@ aarch64_calculate_got_entry_vma (struct
206        off = h->got.offset;
207        BFD_ASSERT (off != (bfd_vma) - 1);
208        if (!WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, bfd_link_pic (info), h)
209 -         || (bfd_link_pic (info)
210 +         || ((bfd_link_pic (info)
211 +             || (!bfd_link_relocatable (info)
212 +                 && (info->export_dynamic || info->dynamic)))
213               && SYMBOL_REFERENCES_LOCAL (info, h))
214           || (ELF_ST_VISIBILITY (h->other)
215               && h->root.type == bfd_link_hash_undefweak))
216 @@ -9429,6 +9431,14 @@ elfNN_aarch64_finish_dynamic_symbol (bfd
217                            + h->root.u.def.section->output_section->vma
218                            + h->root.u.def.section->output_offset);
219         }
220 +      else if (!bfd_link_relocatable (info)
221 +           && (info->export_dynamic || info->dynamic)
222 +           && SYMBOL_REFERENCES_LOCAL (info, h))
223 +       {
224 +         BFD_ASSERT ((h->got.offset & 1) != 0);
225 +         rela.r_info = ELFNN_R_INFO (h->dynindx, AARCH64_R (GLOB_DAT));
226 +         rela.r_addend = 0;
227 +       }
228        else
229         {
230         do_glob_dat:
231
232
233 [FILE:426:patches/patch-bfd_elfxx-x86.c]
234 --- bfd/elfxx-x86.c.orig        2021-07-08 11:37:19 UTC
235 +++ bfd/elfxx-x86.c
236 @@ -28,8 +28,8 @@
237     section.  */
238  
239  #define ELF32_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
240 -#define ELF64_DYNAMIC_INTERPRETER "/lib/ld64.so.1"
241 -#define ELFX32_DYNAMIC_INTERPRETER "/lib/ldx32.so.1"
242 +#define ELF64_DYNAMIC_INTERPRETER "@ELF64_INTERPRETER@"
243 +#define ELFX32_DYNAMIC_INTERPRETER "@ELF32_INTERPRETER@"
244  
245  bool
246  _bfd_x86_elf_mkobject (bfd *abfd)
247
248
249 [FILE:963:patches/patch-gold_x86__64.cc]
250 --- gold/x86_64.cc.orig 2021-07-08 11:37:20 UTC
251 +++ gold/x86_64.cc
252 @@ -1411,7 +1411,7 @@ const Target::Target_info Target_x86_64<
253    true,                        // is_default_stack_executable
254    true,                        // can_icf_inline_merge_sections
255    '\0',                        // wrap_char
256 -  "/lib/ld64.so.1",     // program interpreter
257 +  "@ELF64_INTERPRETER@",     // program interpreter
258    0x400000,            // default_text_segment_address
259    0x1000,              // abi_pagesize (overridable by -z max-page-size)
260    0x1000,              // common_pagesize (overridable by -z common-page-size)
261 @@ -1440,7 +1440,7 @@ const Target::Target_info Target_x86_64<
262    true,                        // is_default_stack_executable
263    true,                        // can_icf_inline_merge_sections
264    '\0',                        // wrap_char
265 -  "/libx32/ldx32.so.1", // program interpreter
266 +  "@ELF32_INTERPRETER@", // program interpreter
267    0x400000,            // default_text_segment_address
268    0x1000,              // abi_pagesize (overridable by -z max-page-size)
269    0x1000,              // common_pagesize (overridable by -z common-page-size)
270
271
272 [FILE:611:patches/patch-include__safe-ctype.h]
273 --- include/safe-ctype.h.orig   2021-07-08 11:37:20 UTC
274 +++ include/safe-ctype.h
275 @@ -119,6 +119,7 @@ extern const unsigned char  _sch_tolower
276     including another system header (for instance gnulib's stdint.h).
277     So we include ctype.h here and then immediately redefine its macros.  */
278  
279 +#if 0
280  #include <ctype.h>
281  #undef isalpha
282  #define isalpha(c) do_not_use_isalpha_with_safe_ctype
283 @@ -146,5 +147,6 @@ extern const unsigned char  _sch_tolower
284  #define toupper(c) do_not_use_toupper_with_safe_ctype
285  #undef tolower
286  #define tolower(c) do_not_use_tolower_with_safe_ctype
287 +#endif
288  
289  #endif /* SAFE_CTYPE_H */
290
291
292 [FILE:236:patches/patch-ld_deffilep.c]
293 --- ld/deffilep.c.orig  2021-07-18 16:48:53 UTC
294 +++ ld/deffilep.c
295 @@ -222,6 +222,8 @@ static const char *lex_parse_string_end
296  extern int yydebug;
297  #endif
298  
299 +#undef SHARED
300 +
301  /* Token type.  */
302  #ifndef YYTOKENTYPE
303  # define YYTOKENTYPE
304
305
306 [FILE:221:files/special.mk]
307 .if defined(BUILD_GOLD)
308 CONFIGURE_ARGS+=        ${GOLD_CONFIG}
309 CONFIGURE_ARGS+=        --enable-plugins
310 PLIST_SUB+=             GOLD=""
311 .else
312 CONFIGURE_ARGS+=        --disable-gold
313 CONFIGURE_ARGS+=        --disable-plugins
314 PLIST_SUB+=             GOLD="@comment "
315 .endif
316