1#! /bin/sh 2# Copyright (C) 2012, 2013, 2014 Red Hat, Inc. 3# This file is part of elfutils. 4# 5# This file is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 3 of the License, or 8# (at your option) any later version. 9# 10# elfutils is distributed in the hope that it will be useful, but 11# WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18. $srcdir/test-subr.sh 19 20testfiles testfile63 21 22testrun_compare ${abs_top_builddir}/src/readelf -n testfile63 <<\EOF 23 24Note segment of 892 bytes at offset 0x274: 25 Owner Data size Type 26 CORE 148 PRSTATUS 27 info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11 28 sigpend: <> 29 sighold: <> 30 pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063 31 utime: 0.000000, stime: 0.010000, cutime: 0.000000, cstime: 0.000000 32 orig_r0: -1, fpvalid: 1 33 r0: 1 r1: -1091672508 r2: -1091672500 34 r3: 0 r4: 0 r5: 0 35 r6: 33728 r7: 0 r8: 0 36 r9: 0 r10: -1225703496 r11: -1091672844 37 r12: 0 sp: 0xbeee64f4 lr: 0xb6dc3f48 38 pc: 0x00008500 spsr: 0x60000010 39 CORE 124 PRPSINFO 40 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500 41 uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063 42 fname: a.out, psargs: ./a.out 43 CORE 144 AUXV 44 HWCAP: 0xe8d7 <swp half thumb fast-mult vfp edsp> 45 PAGESZ: 4096 46 CLKTCK: 100 47 PHDR: 0x8034 48 PHENT: 32 49 PHNUM: 8 50 BASE: 0xb6eee000 51 FLAGS: 0 52 ENTRY: 0x83c0 53 UID: 0 54 EUID: 0 55 GID: 0 56 EGID: 0 57 SECURE: 0 58 RANDOM: 0xbeee674e 59 EXECFN: 0xbeee6ff4 60 PLATFORM: 0xbeee675e 61 NULL 62 CORE 116 FPREGSET 63 f0: 0x000000000000000000000000 f1: 0x000000000000000000000000 64 f2: 0x000000000000000000000000 f3: 0x000000000000000000000000 65 f4: 0x000000000000000000000000 f5: 0x000000000000000000000000 66 f6: 0x000000000000000000000000 f7: 0x000000000000000000000000 67 LINUX 260 ARM_VFP 68 fpscr: 0x00000000 69 d0: 0x0000000000000000 d1: 0x0000000000000000 70 d2: 0x0000000000000000 d3: 0x0000000000000000 71 d4: 0x0000000000000000 d5: 0x0000000000000000 72 d6: 0x0000000000000000 d7: 0x0000000000000000 73 d8: 0x0000000000000000 d9: 0x0000000000000000 74 d10: 0x0000000000000000 d11: 0x0000000000000000 75 d12: 0x0000000000000000 d13: 0x0000000000000000 76 d14: 0x0000000000000000 d15: 0x0000000000000000 77 d16: 0x0000000000000000 d17: 0x0000000000000000 78 d18: 0x0000000000000000 d19: 0x0000000000000000 79 d20: 0x0000000000000000 d21: 0x0000000000000000 80 d22: 0x0000000000000000 d23: 0x0000000000000000 81 d24: 0x0000000000000000 d25: 0x0000000000000000 82 d26: 0x0000000000000000 d27: 0x0000000000000000 83 d28: 0x0000000000000000 d29: 0x0000000000000000 84 d30: 0x0000000000000000 d31: 0x0000000000000000 85EOF 86 87testfiles testfile67 88testrun_compare ${abs_top_builddir}/src/readelf -n testfile67 <<\EOF 89 90Note segment of 1044 bytes at offset 0xe8: 91 Owner Data size Type 92 CORE 336 PRSTATUS 93 info.si_signo: 4, info.si_code: 0, info.si_errno: 0, cursig: 4 94 sigpend: <> 95 sighold: <> 96 pid: 805, ppid: 804, pgrp: 804, sid: 699 97 utime: 0.000042, stime: 0.000103, cutime: 0.000000, cstime: 0.000000 98 orig_r2: 2571552016, fpvalid: 1 99 pswm: 0x0705c00180000000 pswa: 0x00000000800000d6 100 r0: 4393751543808 r1: 4398002544388 101 r2: 11 r3: 2571578208 102 r4: 2571702016 r5: 4398003235624 103 r6: 2571580768 r7: 2571702016 104 r8: 2571578208 r9: 2571552016 105 r10: 2571552016 r11: 0 106 r12: 4398003499008 r13: 2148274656 107 r14: 0 r15: 4398040761216 108 a0: 0x000003ff a1: 0xfd54a6f0 a2: 0x00000000 a3: 0x00000000 109 a4: 0x00000000 a5: 0x00000000 a6: 0x00000000 a7: 0x00000000 110 a8: 0x00000000 a9: 0x00000000 a10: 0x00000000 a11: 0x00000000 111 a12: 0x00000000 a13: 0x00000000 a14: 0x00000000 a15: 0x00000000 112 CORE 136 PRPSINFO 113 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000400400 114 uid: 0, gid: 0, pid: 805, ppid: 804, pgrp: 804, sid: 699 115 fname: 1, psargs: ./1 116 CORE 304 AUXV 117 SYSINFO_EHDR: 0 118 HWCAP: 0x37f 119 PAGESZ: 4096 120 CLKTCK: 100 121 PHDR: 0x80000040 122 PHENT: 56 123 PHNUM: 2 124 BASE: 0 125 FLAGS: 0 126 ENTRY: 0x800000d4 127 UID: 0 128 EUID: 0 129 GID: 0 130 EGID: 0 131 SECURE: 0 132 RANDOM: 0x3ffffa8463c 133 EXECFN: 0x3ffffa85ff4 134 PLATFORM: 0x3ffffa8464c 135 NULL 136 CORE 136 FPREGSET 137 fpc: 0x00000000 138 f0: 0x0000000000000040 f1: 0x4b00000000000000 139 f2: 0x0000000000000041 f3: 0x3ad50b5555555600 140 f4: 0x0000000000000000 f5: 0x0000000000000000 141 f6: 0x0000000000000000 f7: 0x0000000000000000 142 f8: 0x0000000000000000 f9: 0x0000000000000000 143 f10: 0x0000000000000000 f11: 0x0000000000000000 144 f12: 0x0000000000000000 f13: 0x0000000000000000 145 f14: 0x0000000000000000 f15: 0x0000000000000000 146 LINUX 8 S390_LAST_BREAK 147 last_break: 0x000003fffd75ccbe 148 LINUX 4 S390_SYSTEM_CALL 149 system_call: 0 150EOF 151 152testfiles testfile68 153testrun_compare ${abs_top_builddir}/src/readelf -n testfile68 <<\EOF 154 155Note segment of 852 bytes at offset 0x94: 156 Owner Data size Type 157 CORE 224 PRSTATUS 158 info.si_signo: 4, info.si_code: 0, info.si_errno: 0, cursig: 4 159 sigpend: <> 160 sighold: <> 161 pid: 839, ppid: 838, pgrp: 838, sid: 699 162 utime: 0.000043, stime: 0.000102, cutime: 0.000000, cstime: 0.000000 163 orig_r2: -1723388288, fpvalid: 1 164 pswm: 0x070dc000 pswa: 0x8040009a 165 r0: 0 r1: -43966716 r2: 11 r3: -1723238816 166 r4: -1723265280 r5: -43275480 r6: -1723245280 r7: -1723265280 167 r8: -1723238816 r9: -1723388288 r10: -1723388288 r11: 0 168 r12: -43012096 r13: -2146692640 r14: 0 r15: 2139883440 169 a0: 0x000003ff a1: 0xfd54a6f0 a2: 0x00000000 a3: 0x00000000 170 a4: 0x00000000 a5: 0x00000000 a6: 0x00000000 a7: 0x00000000 171 a8: 0x00000000 a9: 0x00000000 a10: 0x00000000 a11: 0x00000000 172 a12: 0x00000000 a13: 0x00000000 a14: 0x00000000 a15: 0x00000000 173 CORE 124 PRPSINFO 174 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400400 175 uid: 0, gid: 0, pid: 839, ppid: 838, pgrp: 838, sid: 699 176 fname: 2, psargs: ./2 177 CORE 152 AUXV 178 SYSINFO_EHDR: 0 179 HWCAP: 0x37f 180 PAGESZ: 4096 181 CLKTCK: 100 182 PHDR: 0x400034 183 PHENT: 32 184 PHNUM: 2 185 BASE: 0 186 FLAGS: 0 187 ENTRY: 0x400098 188 UID: 0 189 EUID: 0 190 GID: 0 191 EGID: 0 192 SECURE: 0 193 RANDOM: 0x7f8c090c 194 EXECFN: 0x7f8c1ff4 195 PLATFORM: 0x7f8c091c 196 NULL 197 CORE 136 FPREGSET 198 fpc: 0x00000000 199 f0: 0x0000000000000040 f1: 0x4b00000000000000 200 f2: 0x0000000000000041 f3: 0x3ad50b5555555600 201 f4: 0x0000000000000000 f5: 0x0000000000000000 202 f6: 0x0000000000000000 f7: 0x0000000000000000 203 f8: 0x0000000000000000 f9: 0x0000000000000000 204 f10: 0x0000000000000000 f11: 0x0000000000000000 205 f12: 0x0000000000000000 f13: 0x0000000000000000 206 f14: 0x0000000000000000 f15: 0x0000000000000000 207 LINUX 8 S390_LAST_BREAK 208 last_break: 0xfd75ccbe 209 LINUX 4 S390_SYSTEM_CALL 210 system_call: 0 211 LINUX 64 S390_HIGH_GPRS 212 high_r0: 0x000003ff, high_r1: 0x000003ff, high_r2: 0x00000000 213 high_r3: 0x00000000, high_r4: 0x00000000, high_r5: 0x000003ff 214 high_r6: 0x00000000, high_r7: 0x00000000, high_r8: 0x00000000 215 high_r9: 0x00000000, high_r10: 0x00000000, high_r11: 0x00000000 216 high_r12: 0x000003ff, high_r13: 0x00000000, high_r14: 0x00000000 217 high_r15: 0x00000000 218EOF 219 220# To reproduce this core dump, do this on x86_64 machine with Linux 221# 3.7 or later: 222# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }') 223# $ ./a.out 224testfiles testfile71 225testrun_compare ${abs_top_builddir}/src/readelf -n testfile71 <<\EOF 226 227Note segment of 1476 bytes at offset 0x430: 228 Owner Data size Type 229 CORE 336 PRSTATUS 230 info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11 231 sigpend: <> 232 sighold: <> 233 pid: 9664, ppid: 2868, pgrp: 9664, sid: 2868 234 utime: 0.000000, stime: 0.004000, cutime: 0.000000, cstime: 0.000000 235 orig_rax: -1, fpvalid: 0 236 r15: 0 r14: 0 237 r13: 140734971656848 r12: 4195328 238 rbp: 0x00007fff69fe39b0 rbx: 0 239 r11: 266286012928 r10: 140734971656256 240 r9: 0 r8: 266289790592 241 rax: 305419896 rcx: 4195584 242 rdx: 140734971656872 rsi: 140734971656856 243 rdi: 1 rip: 0x00000000004004f9 244 rflags: 0x0000000000010246 rsp: 0x00007fff69fe39b0 245 fs.base: 0x00007fa1c8933740 gs.base: 0x0000000000000000 246 cs: 0x0033 ss: 0x002b ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000 247 CORE 136 PRPSINFO 248 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000000200 249 uid: 1000, gid: 1000, pid: 9664, ppid: 2868, pgrp: 9664, sid: 2868 250 fname: a.out, psargs: ./a.out 251 CORE 128 SIGINFO 252 si_signo: 11, si_errno: 0, si_code: 1 253 fault address: 0x12345678 254 CORE 304 AUXV 255 SYSINFO_EHDR: 0x7fff69ffe000 256 HWCAP: 0xafebfbff <fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe> 257 PAGESZ: 4096 258 CLKTCK: 100 259 PHDR: 0x400040 260 PHENT: 56 261 PHNUM: 9 262 BASE: 0 263 FLAGS: 0 264 ENTRY: 0x400400 265 UID: 1000 266 EUID: 1000 267 GID: 1000 268 EGID: 1000 269 SECURE: 0 270 RANDOM: 0x7fff69fe3d19 271 EXECFN: 0x7fff69fe4ff0 272 PLATFORM: 0x7fff69fe3d29 273 NULL 274 CORE 469 FILE 275 10 files: 276 00400000-00401000 00000000 4096 /home/petr/a.out 277 00600000-00601000 00000000 4096 /home/petr/a.out 278 00601000-00602000 00001000 4096 /home/petr/a.out 279 3dffa00000-3dffa21000 00000000 135168 /usr/lib64/ld-2.17.so 280 3dffc20000-3dffc21000 00020000 4096 /usr/lib64/ld-2.17.so 281 3dffc21000-3dffc22000 00021000 4096 /usr/lib64/ld-2.17.so 282 3dffe00000-3dfffb6000 00000000 1794048 /usr/lib64/libc-2.17.so 283 3dfffb6000-3e001b6000 001b6000 2097152 /usr/lib64/libc-2.17.so 284 3e001b6000-3e001ba000 001b6000 16384 /usr/lib64/libc-2.17.so 285 3e001ba000-3e001bc000 001ba000 8192 /usr/lib64/libc-2.17.so 286EOF 287 288# To reproduce this core dump, do this on an aarch64 machine: 289# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }') 290# $ ./a.out 291testfiles testfile_aarch64_core 292testrun_compare ${abs_top_builddir}/src/readelf -n testfile_aarch64_core <<\EOF 293 294Note segment of 2512 bytes at offset 0x270: 295 Owner Data size Type 296 CORE 392 PRSTATUS 297 info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11 298 sigpend: <> 299 sighold: <> 300 pid: 16547, ppid: 3822, pgrp: 16547, sid: 3822 301 utime: 0.010000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000 302 pc: 0x0000000000400548, pstate: 0x0000000060000000, fpvalid: 1 303 x0: 305419896 x1: 548685596648 304 x2: 548685596664 x3: 4195648 305 x4: 0 x5: 548536191688 306 x6: 0 x7: -6341196323062964528 307 x8: 135 x9: 4294967295 308 x10: 4195026 x11: 184256 309 x12: 144 x13: 15 310 x14: 548536635328 x15: 0 311 x16: 548534815304 x17: 4262024 312 x18: 548685596000 x19: 0 313 x20: 0 x21: 4195296 314 x22: 0 x23: 0 315 x24: 0 x25: 0 316 x26: 0 x27: 0 317 x28: 0 x29: 548685596320 318 x30: 548534815544 sp: 0x0000007fc035c6a0 319 CORE 136 PRPSINFO 320 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000400400 321 uid: 0, gid: 0, pid: 16547, ppid: 3822, pgrp: 16547, sid: 3822 322 fname: a.out, psargs: ./a.out 323 CORE 128 SIGINFO 324 si_signo: 11, si_errno: 0, si_code: 1 325 fault address: 0x12345678 326 CORE 304 AUXV 327 SYSINFO_EHDR: 0x7fb7500000 328 HWCAP: 0x3 329 PAGESZ: 65536 330 CLKTCK: 100 331 PHDR: 0x400040 332 PHENT: 56 333 PHNUM: 7 334 BASE: 0x7fb7520000 335 FLAGS: 0 336 ENTRY: 0x4003e0 337 UID: 0 338 EUID: 0 339 GID: 0 340 EGID: 0 341 SECURE: 0 342 RANDOM: 0x7fc035c9e8 343 EXECFN: 0x7fc035fff0 344 PLATFORM: 0x7fc035c9f8 345 NULL 346 CORE 306 FILE 347 6 files: 348 00400000-00410000 00000000 65536 /root/elfutils/build/a.out 349 00410000-00420000 00000000 65536 /root/elfutils/build/a.out 350 7fb7370000-7fb74d0000 00000000 1441792 /usr/lib64/libc-2.17.so 351 7fb74d0000-7fb74f0000 00150000 131072 /usr/lib64/libc-2.17.so 352 7fb7520000-7fb7540000 00000000 131072 /usr/lib64/ld-2.17.so 353 7fb7540000-7fb7550000 00010000 65536 /usr/lib64/ld-2.17.so 354 CORE 528 FPREGSET 355 fpsr: 0x00000000, fpcr: 0x00000000 356 v0: 0x00000000000af54b000000000000fe02 357 v1: 0x00000000000000000000000000000000 358 v2: 0x00000000000000000000000000000000 359 v3: 0x00000000000000000000000000000000 360 v4: 0x00000000000000000000000000000000 361 v5: 0x00000000000000000000000000000000 362 v6: 0x00000000000000000000000000000000 363 v7: 0x00000000000000000000000000000000 364 v8: 0x00000000000000000000000000000000 365 v9: 0x00000000000000000000000000000000 366 v10: 0x00000000000000000000000000000000 367 v11: 0x00000000000000000000000000000000 368 v12: 0x00000000000000000000000000000000 369 v13: 0x00000000000000000000000000000000 370 v14: 0x00000000000000000000000000000000 371 v15: 0x00000000000000000000000000000000 372 v16: 0x00000000000000000000000000000000 373 v17: 0x00000000000000000000000000000000 374 v18: 0x00000000000000000000000000000000 375 v19: 0x00000000000000000000000000000000 376 v20: 0x00000000000000000000000000000000 377 v21: 0x00000000000000000000000000000000 378 v22: 0x00000000000000000000000000000000 379 v23: 0x00000000000000000000000000000000 380 v24: 0x00000000000000000000000000000000 381 v25: 0x00000000000000000000000000000000 382 v26: 0x00000000000000000000000000000000 383 v27: 0x00000000000000000000000000000000 384 v28: 0x00000000000000000000000000000000 385 v29: 0x00000000000000000000000000000000 386 v30: 0x00000000000000000000000000000000 387 v31: 0x00000000000000000000000000000000 388 LINUX 8 ARM_TLS 389 tls: 0x0000007fb73606f0 390 LINUX 264 ARM_HW_BREAK 391 dbg_info: 0x00000610 392 DBGBVR0_EL1: 0x0000000000000000, DBGBCR0_EL1: 0x00000000 393 DBGBVR1_EL1: 0x0000000000000000, DBGBCR1_EL1: 0x00000000 394 DBGBVR2_EL1: 0x0000000000000000, DBGBCR2_EL1: 0x00000000 395 DBGBVR3_EL1: 0x0000000000000000, DBGBCR3_EL1: 0x00000000 396 DBGBVR4_EL1: 0x0000000000000000, DBGBCR4_EL1: 0x00000000 397 DBGBVR5_EL1: 0x0000000000000000, DBGBCR5_EL1: 0x00000000 398 DBGBVR6_EL1: 0x0000000000000000, DBGBCR6_EL1: 0x00000000 399 DBGBVR7_EL1: 0x0000000000000000, DBGBCR7_EL1: 0x00000000 400 DBGBVR8_EL1: 0x0000000000000000, DBGBCR8_EL1: 0x00000000 401 DBGBVR9_EL1: 0x0000000000000000, DBGBCR9_EL1: 0x00000000 402 DBGBVR10_EL1: 0x0000000000000000, DBGBCR10_EL1: 0x00000000 403 DBGBVR11_EL1: 0x0000000000000000, DBGBCR11_EL1: 0x00000000 404 DBGBVR12_EL1: 0x0000000000000000, DBGBCR12_EL1: 0x00000000 405 DBGBVR13_EL1: 0x0000000000000000, DBGBCR13_EL1: 0x00000000 406 DBGBVR14_EL1: 0x0000000000000000, DBGBCR14_EL1: 0x00000000 407 DBGBVR15_EL1: 0x0000000000000000, DBGBCR15_EL1: 0x00000000 408 LINUX 264 ARM_HW_WATCH 409 dbg_info: 0x00000610 410 DBGWVR0_EL1: 0x0000000000000000, DBGWCR0_EL1: 0x00000000 411 DBGWVR1_EL1: 0x0000000000000000, DBGWCR1_EL1: 0x00000000 412 DBGWVR2_EL1: 0x0000000000000000, DBGWCR2_EL1: 0x00000000 413 DBGWVR3_EL1: 0x0000000000000000, DBGWCR3_EL1: 0x00000000 414 DBGWVR4_EL1: 0x0000000000000000, DBGWCR4_EL1: 0x00000000 415 DBGWVR5_EL1: 0x0000000000000000, DBGWCR5_EL1: 0x00000000 416 DBGWVR6_EL1: 0x0000000000000000, DBGWCR6_EL1: 0x00000000 417 DBGWVR7_EL1: 0x0000000000000000, DBGWCR7_EL1: 0x00000000 418 DBGWVR8_EL1: 0x0000000000000000, DBGWCR8_EL1: 0x00000000 419 DBGWVR9_EL1: 0x0000000000000000, DBGWCR9_EL1: 0x00000000 420 DBGWVR10_EL1: 0x0000000000000000, DBGWCR10_EL1: 0x00000000 421 DBGWVR11_EL1: 0x0000000000000000, DBGWCR11_EL1: 0x00000000 422 DBGWVR12_EL1: 0x0000000000000000, DBGWCR12_EL1: 0x00000000 423 DBGWVR13_EL1: 0x0000000000000000, DBGWCR13_EL1: 0x00000000 424 DBGWVR14_EL1: 0x0000000000000000, DBGWCR14_EL1: 0x00000000 425 DBGWVR15_EL1: 0x0000000000000000, DBGWCR15_EL1: 0x00000000 426EOF 427 428# To reproduce this core dump, do this on an i686 machine: 429# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }') 430# $ ./a.out 431testfiles testfile_i686_core 432testrun_compare ${abs_top_builddir}/src/readelf -n testfile_i686_core <<\EOF 433 434Note segment of 1000 bytes at offset 0x214: 435 Owner Data size Type 436 CORE 144 PRSTATUS 437 info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11 438 sigpend: <> 439 sighold: <> 440 pid: 27395, ppid: 1130, pgrp: 27395, sid: 1130 441 utime: 0.000000, stime: 0.001000, cutime: 0.000000, cstime: 0.000000 442 orig_eax: -1, fpvalid: 0 443 ebx: 1334976512 ecx: -1239415396 edx: -1079283900 444 esi: 0 edi: 0 ebp: 0xbfab6f18 445 eax: 305419896 eip: 0x08048408 eflags: 0x00010246 446 esp: 0xbfab6f18 447 ds: 0x007b es: 0x007b fs: 0x0000 gs: 0x0033 cs: 0x0073 ss: 0x007b 448 CORE 124 PRPSINFO 449 state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00000200 450 uid: 1000, gid: 1000, pid: 27395, ppid: 1130, pgrp: 27395, sid: 1130 451 fname: a.out, psargs: ./a.out 452 CORE 128 SIGINFO 453 si_signo: 11, si_errno: 0, si_code: 1 454 fault address: 0x12345678 455 CORE 160 AUXV 456 SYSINFO: 0xb77fc414 457 SYSINFO_EHDR: 0xb77fc000 458 HWCAP: 0x780abfd <fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2> 459 PAGESZ: 4096 460 CLKTCK: 100 461 PHDR: 0x8048034 462 PHENT: 32 463 PHNUM: 9 464 BASE: 0 465 FLAGS: 0 466 ENTRY: 0x80482f0 467 UID: 1000 468 EUID: 1000 469 GID: 1000 470 EGID: 1000 471 SECURE: 0 472 RANDOM: 0xbfab70eb 473 EXECFN: 0xbfab7ff4 474 PLATFORM: 0xbfab70fb 475 NULL 476 CORE 275 FILE 477 9 files: 478 08048000-08049000 00000000 4096 /tmp/a.out 479 08049000-0804a000 00000000 4096 /tmp/a.out 480 0804a000-0804b000 00001000 4096 /tmp/a.out 481 4f744000-4f763000 00000000 126976 /usr/lib/ld-2.18.so 482 4f764000-4f765000 0001f000 4096 /usr/lib/ld-2.18.so 483 4f765000-4f766000 00020000 4096 /usr/lib/ld-2.18.so 484 4f768000-4f920000 00000000 1802240 /usr/lib/libc-2.18.so 485 4f920000-4f922000 001b8000 8192 /usr/lib/libc-2.18.so 486 4f922000-4f923000 001ba000 4096 /usr/lib/libc-2.18.so 487 LINUX 48 386_TLS 488 index: 6, base: 0xb77da700, limit: 0x000fffff, flags: 0x00000051 489 index: 7, base: 0x00000000, limit: 0x00000000, flags: 0x00000028 490 index: 8, base: 0x00000000, limit: 0x00000000, flags: 0x00000028 491EOF 492 493exit 0 494