• Home
  • Raw
  • Download

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.
170 * the way to -256..-1, to avoid conflicting with real section
173 #define SPECIAL(i) ((i) - (SHN_HIRESERVE + 1))
180 /* Accessor for sym->st_shndx, hides ugliness of "64k sections" */
203 return -1; in compare_relative_table()
229 w(r(loc) - i, loc); in sort_relative_table()
243 /* Don't touch the fixup type or data */ in sort_relative_table_with_data()
254 w(r(loc) - i, loc); in sort_relative_table_with_data()
255 w(r(loc + 1) - (i + 4), loc + 1); in sort_relative_table_with_data()
256 /* Don't touch the fixup type or data */ in sort_relative_table_with_data()
282 w(r(loc) - i, loc); in x86_sort_relative_table()
283 w(r(loc + 1) - (i + 4), loc + 1); in x86_sort_relative_table()
284 w(r(loc + 2) - (i + 8), loc + 2); in x86_sort_relative_table()
301 * 0 is a special self-relative handler value, which means that in s390_sort_relative_table()
304 * When creating extable-relative values, keep it as 0, since in s390_sort_relative_table()
320 w(r((uint32_t *)loc) - i, (uint32_t *)loc); in s390_sort_relative_table()
321 w(r((uint32_t *)(loc + 4)) - (i + 4), (uint32_t *)(loc + 4)); in s390_sort_relative_table()
324 handler -= i + 8; in s390_sort_relative_table()
331 int rc = -1; in do_file()
335 switch (ehdr->e_ident[EI_DATA]) { in do_file()
354 ehdr->e_ident[EI_DATA], fname); in do_file()
355 return -1; in do_file()
358 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 || in do_file()
359 (r2(&ehdr->e_type) != ET_EXEC && r2(&ehdr->e_type) != ET_DYN) || in do_file()
360 ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
362 return -1; in do_file()
365 switch (r2(&ehdr->e_machine)) { in do_file()
391 r2(&ehdr->e_machine), fname); in do_file()
392 return -1; in do_file()
395 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
397 if (r2(&ehdr->e_ehsize) != sizeof(Elf32_Ehdr) || in do_file()
398 r2(&ehdr->e_shentsize) != sizeof(Elf32_Shdr)) { in do_file()
408 if (r2(&ghdr->e_ehsize) != sizeof(Elf64_Ehdr) || in do_file()
409 r2(&ghdr->e_shentsize) != sizeof(Elf64_Shdr)) { in do_file()
420 ehdr->e_ident[EI_CLASS], fname); in do_file()
429 int i, n_error = 0; /* gcc-4.3.0 false positive complaint */ in main()
438 /* Process each file in turn, allowing deep failure. */ in main()