-
grischka authored
- remove calls to "find_..." for stuff that we know to exist and where. - rename find_section_create(s1,name,0) -> have_section(s1,name) Also: - call update_gnu_hash() from elf_output_file() gnu_hasn() functions could be moved down into an already existing !ELF_OBJ_ONLY clause, but in order to avoid too many diff lines I didn't. - avoid 'long' (elf_hash). sizeof (long) is host-dependent (4 or 8) - remove unnecessary checks (for dynsym, versym). Someone reading "if (dynsym == NULL) ..." must conclude that it actually can happen under certain circumstances, or otherwise, might conclude that the person who wrote that felt unsure what's going on exactly. arm64-gen.c: TCC_TARGET_MACHO instead of __APPLE__ (to support cross-compilers for the apple/M1 target)
312d28b0