svn commit: r275370 - head/contrib/elftoolchain/size

Ed Maste emaste at FreeBSD.org
Mon Dec 1 16:10:04 UTC 2014


Author: emaste
Date: Mon Dec  1 16:10:03 2014
New Revision: 275370
URL: https://svnweb.freebsd.org/changeset/base/275370

Log:
  Temporarily disable non-FreeBSD NT_ note types

Modified:
  head/contrib/elftoolchain/size/size.c

Modified: head/contrib/elftoolchain/size/size.c
==============================================================================
--- head/contrib/elftoolchain/size/size.c	Mon Dec  1 16:07:31 2014	(r275369)
+++ head/contrib/elftoolchain/size/size.c	Mon Dec  1 16:10:03 2014	(r275370)
@@ -269,7 +269,7 @@ handle_core_note(Elf *elf, GElf_Ehdr *el
 	static pid_t pid;
 	uintptr_t ver;
 	Elf32_Nhdr *nhdr, nhdr_l;
-	static int reg_pseudo = 0, reg2_pseudo = 0, regxfp_pseudo = 0;
+	static int reg_pseudo = 0, reg2_pseudo = 0 /*, regxfp_pseudo = 0*/;
 	char buf[BUF_SIZE], *data, *name;
 
  	if (elf == NULL || elfhdr == NULL || phdr == NULL)
@@ -360,6 +360,7 @@ handle_core_note(Elf *elf, GElf_Ehdr *el
 				text_size_total += nhdr_l.n_descsz;
 			}
 			break;
+#if 0
 		case NT_AUXV:
 			if (style == STYLE_SYSV) {
 				tbl_append();
@@ -390,6 +391,7 @@ handle_core_note(Elf *elf, GElf_Ehdr *el
 			}
 			break;
 		case NT_PSINFO:
+#endif
 		case NT_PRPSINFO: {
 			/* FreeBSD 64-bit */
 			if (nhdr_l.n_descsz == 0x78 &&
@@ -415,8 +417,10 @@ handle_core_note(Elf *elf, GElf_Ehdr *el
 			}
 			break;
 		}
+#if 0
 		case NT_PSTATUS:
 		case NT_LWPSTATUS:
+#endif
 		default:
 			break;
 		}


More information about the svn-src-head mailing list