Lines Matching refs:f

150                     print(f'error: {lib.soname}: unresolved relocation to {sym.name}')
182 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n')
183 out.write(f'#include "{g_benchmark_name}_asm.h"\n')
196 f'.globl {sym}\n'
197 f'.type {sym},%function\n'
198 f'{sym}:\n'
202 f'.globl {sym}\n'
203 f'.type {sym},%object\n'
204 f'{sym}:\n'
205 f'.space __SIZEOF_POINTER__\n')
212 if r.is_weak: out.write(f'.weak {sym}\n')
213 out.write(f'CALL({sym})\n')
218 if r.is_weak: out.write(f'.weak {sym}\n')
219 out.write(f'GOT_RELOC({sym})\n')
226 image.append((off, f'DATA_WORD(local_label)\n'))
230 text = f'DATA_WORD({sym})\n'
231 if r.is_weak: text += f'.weak {sym}\n'
238 out.write(f'.space (__SIZEOF_POINTER__ * {off - cur_off})\n')
248 print(f'error: {out_filename} has both unversioned and versioned symbols')
253 out.write(f'{rot13(ver)} {{\n')
256 out.write(''.join(f' {x};\n' for x in versions[ver]))
257 out.write(f'}};\n')
269 self._names = {x : f'{i:0{num_digits}}' for i, x in enumerate(all_libs)}
275 return f'{g_benchmark_name}_main'
277 return f'lib{g_benchmark_name}_{self._names[lib]}'
292 common_flags = f"-Wl,-rpath-link,. -lm -I{include_path}"
293 ninja.write(textwrap.dedent(f'''\
313 ninja.write(f'build {lib_base_name}: exe {asm_name} {needed}\n')
315 ninja.write(f'build {lib_dso_name(lib)}: dso {asm_name} {needed}\n')
317 ninja.write(f' extra_args = -Wl,--version-script={map_name}\n')
329 bp.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit\n')
331 bp.write(f'cc_defaults {{\n')
332 bp.write(f' name: "{g_benchmark_name}_all_libs",\n')
333 bp.write(f' runtime_libs: [\n')
337 bp.write(f' "{lib_names.name(lib)}",\n')
338 bp.write(f' ],\n')
339 bp.write(f'}}\n')
353 bp.write(f'cc_binary {{\n')
354 bp.write(f' defaults: ["{g_benchmark_name}_binary"],\n')
356 bp.write(f'cc_test_library {{\n')
357 bp.write(f' defaults: ["{g_benchmark_name}_library"],\n')
358 bp.write(f' name: "{lib_base_name}",\n')
359 bp.write(f' srcs: ["{asm_name}"],\n')
360 bp.write(f' shared_libs: [\n')
363 bp.write(f' "{lib_names.name(need)}",\n')
364 bp.write(f' ],\n')
366 bp.write(f' version_script: "{map_name}",\n')
389 with open(Path(args.input)) as f:
390 root = json_to_elf_tree(json.load(f))