Lines Matching refs:ph
118 unsigned long ph, ps, np; in main() local
151 ph = (e_class == ELFCLASS32 ? GET_32(E_PHOFF) : GET_64(E_PHOFF)); in main()
154 if (ph < E_HSIZE || ps < PH_HSIZE || np < 1) in main()
156 if (ph + (np + 2) * ps + nnote + nnote2 > n) in main()
160 if (GET_32(ph + PH_TYPE) == PT_NOTE) { in main()
165 ph += ps; in main()
170 if (buf[ph + i] != 0) in main()
174 ns = ph + 2 * ps; in main()
175 PUT_32(ph + PH_TYPE, PT_NOTE); in main()
177 PUT_32(ph + PH_OFFSET, ns); in main()
179 PUT_64(ph + PH_OFFSET, ns); in main()
182 PUT_32(ph + PH_FILESZ, nnote); in main()
184 PUT_64(ph + PH_FILESZ, nnote); in main()
197 ph += ps; in main()
198 PUT_32(ph + PH_TYPE, PT_NOTE); in main()
200 PUT_32(ph + PH_OFFSET, ns); in main()
202 PUT_64(ph + PH_OFFSET, ns); in main()
205 PUT_32(ph + PH_FILESZ, nnote); in main()
207 PUT_64(ph + PH_FILESZ, nnote2); in main()