Lines Matching refs:f

154                     print(f'error: {lib.soname}: unresolved relocation to {sym.name}')
186 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n')
187 out.write(f'#include "{g_benchmark_name}_asm.h"\n')
201 f'.{binding} {sym}\n'
202 f'.type {sym},%function\n'
203 f'{sym}:\n'
207 f'.{binding} {sym}\n'
208 f'.type {sym},%object\n'
209 f'{sym}:\n'
210 f'.space __SIZEOF_POINTER__\n')
217 if r.is_weak: out.write(f'.weak {sym}\n')
218 out.write(f'CALL({sym})\n')
223 if r.is_weak: out.write(f'.weak {sym}\n')
224 out.write(f'GOT_RELOC({sym})\n')
231 image.append((off, f'DATA_WORD(local_label)\n'))
235 text = f'DATA_WORD({sym})\n'
236 if r.is_weak: text += f'.weak {sym}\n'
243 out.write(f'.space (__SIZEOF_POINTER__ * {off - cur_off})\n')
253 print(f'error: {out_filename} has both unversioned and versioned symbols')
258 out.write(f'{rot13(ver)} {{\n')
261 out.write(''.join(f' {x};\n' for x in versions[ver]))
262 out.write(f'}};\n')
274 self._names = {x : f'{i:0{num_digits}}' for i, x in enumerate(all_libs)}
280 return f'{g_benchmark_name}_main'
282 return f'lib{g_benchmark_name}_{self._names[lib]}'
297 common_flags = f"-Wl,-rpath-link,. -lm -I{include_path}"
298 ninja.write(textwrap.dedent(f'''\
318 ninja.write(f'build {lib_base_name}: exe {asm_name} {needed}\n')
320 ninja.write(f'build {lib_dso_name(lib)}: dso {asm_name} {needed}\n')
322 ninja.write(f' extra_args = -Wl,--version-script={map_name}\n')
334 bp.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit\n')
336 bp.write(f'package {{ default_applicable_licenses: ["bionic_benchmarks_license"], }}\n')
337 bp.write(f'cc_defaults {{\n')
338 bp.write(f' name: "{g_benchmark_name}_all_libs",\n')
339 bp.write(f' runtime_libs: [\n')
343 bp.write(f' "{lib_names.name(lib)}",\n')
344 bp.write(f' ],\n')
345 bp.write(f'}}\n')
359 bp.write(f'cc_binary {{\n')
360 bp.write(f' defaults: ["{g_benchmark_name}_binary"],\n')
362 bp.write(f'cc_test_library {{\n')
363 bp.write(f' defaults: ["{g_benchmark_name}_library"],\n')
364 bp.write(f' name: "{lib_base_name}",\n')
365 bp.write(f' srcs: ["{asm_name}"],\n')
366 bp.write(f' shared_libs: [\n')
369 bp.write(f' "{lib_names.name(need)}",\n')
370 bp.write(f' ],\n')
372 bp.write(f' version_script: "{map_name}",\n')
395 with open(Path(args.input)) as f:
396 root = json_to_elf_tree(json.load(f))