rtld.c (c44bf7d2e9d2292867f2e23f291266af26762354) | rtld.c (d8925a5f42b517131f926d665538be95db710c4a) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>. 6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>. 7 * Copyright 2012 John Marino <draco@marino.st>. 8 * Copyright 2014-2017 The FreeBSD Foundation --- 1715 unchanged lines hidden (view full) --- 1724 const Elf_Note *note; 1725 const char *note_name; 1726 uintptr_t p; 1727 1728 for (note = (const Elf_Note *)note_start; (Elf_Addr)note < note_end; 1729 note = (const Elf_Note *)((const char *)(note + 1) + 1730 roundup2(note->n_namesz, sizeof(Elf32_Addr)) + 1731 roundup2(note->n_descsz, sizeof(Elf32_Addr)))) { | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>. 6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>. 7 * Copyright 2012 John Marino <draco@marino.st>. 8 * Copyright 2014-2017 The FreeBSD Foundation --- 1715 unchanged lines hidden (view full) --- 1724 const Elf_Note *note; 1725 const char *note_name; 1726 uintptr_t p; 1727 1728 for (note = (const Elf_Note *)note_start; (Elf_Addr)note < note_end; 1729 note = (const Elf_Note *)((const char *)(note + 1) + 1730 roundup2(note->n_namesz, sizeof(Elf32_Addr)) + 1731 roundup2(note->n_descsz, sizeof(Elf32_Addr)))) { |
1732 if (arch_digest_note(obj, note)) 1733 continue; 1734 |
|
1732 if (note->n_namesz != sizeof(NOTE_FREEBSD_VENDOR) || 1733 note->n_descsz != sizeof(int32_t)) 1734 continue; 1735 if (note->n_type != NT_FREEBSD_ABI_TAG && 1736 note->n_type != NT_FREEBSD_FEATURE_CTL && 1737 note->n_type != NT_FREEBSD_NOINIT_TAG) 1738 continue; 1739 note_name = (const char *)(note + 1); --- 4663 unchanged lines hidden --- | 1735 if (note->n_namesz != sizeof(NOTE_FREEBSD_VENDOR) || 1736 note->n_descsz != sizeof(int32_t)) 1737 continue; 1738 if (note->n_type != NT_FREEBSD_ABI_TAG && 1739 note->n_type != NT_FREEBSD_FEATURE_CTL && 1740 note->n_type != NT_FREEBSD_NOINIT_TAG) 1741 continue; 1742 note_name = (const char *)(note + 1); --- 4663 unchanged lines hidden --- |