Lines Matching +full:deep +full:- +full:touch
1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 1999-2019 Alibaba Group Holding Limited. by:
9 * Copyright 2011 - 2012 Cavium, Inc.
20 * Strategy: alter the vmlinux file in-place.
176 * the way to -256..-1, to avoid conflicting with real section
179 #define SPECIAL(i) ((i) - (SHN_HIRESERVE + 1))
186 /* Accessor for sym->st_shndx, hides ugliness of "64k sections" */
209 return -1; in compare_relative_table()
235 w(r(loc) - i, loc); in sort_relative_table()
249 /* Don't touch the fixup type or data */ in sort_relative_table_with_data()
260 w(r(loc) - i, loc); in sort_relative_table_with_data()
261 w(r(loc + 1) - (i + 4), loc + 1); in sort_relative_table_with_data()
262 /* Don't touch the fixup type or data */ in sort_relative_table_with_data()
270 int rc = -1; in do_file()
274 switch (ehdr->e_ident[EI_DATA]) { in do_file()
293 ehdr->e_ident[EI_DATA], fname); in do_file()
294 return -1; in do_file()
297 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 || in do_file()
298 (r2(&ehdr->e_type) != ET_EXEC && r2(&ehdr->e_type) != ET_DYN) || in do_file()
299 ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
301 return -1; in do_file()
304 switch (r2(&ehdr->e_machine)) { in do_file()
327 r2(&ehdr->e_machine), fname); in do_file()
328 return -1; in do_file()
331 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
333 if (r2(&ehdr->e_ehsize) != sizeof(Elf32_Ehdr) || in do_file()
334 r2(&ehdr->e_shentsize) != sizeof(Elf32_Shdr)) { in do_file()
344 if (r2(&ghdr->e_ehsize) != sizeof(Elf64_Ehdr) || in do_file()
345 r2(&ghdr->e_shentsize) != sizeof(Elf64_Shdr)) { in do_file()
356 ehdr->e_ident[EI_CLASS], fname); in do_file()
365 int i, n_error = 0; /* gcc-4.3.0 false positive complaint */ in main()
374 /* Process each file in turn, allowing deep failure. */ in main()