2005-12-15 13:04:00 +00:00
|
|
|
.\" $OpenBSD: elf.5,v 1.12 2003/10/27 20:23:58 jmc Exp $
|
|
|
|
.\"Copyright (c) 1999 Jeroen Ruigrok van der Werven
|
|
|
|
.\"All rights reserved.
|
|
|
|
.\"
|
2013-03-10 09:29:43 +00:00
|
|
|
.\" %%%LICENSE_START(PERMISSIVE_MISC)
|
2005-12-15 13:04:00 +00:00
|
|
|
.\"Redistribution and use in source and binary forms, with or without
|
|
|
|
.\"modification, are permitted provided that the following conditions
|
|
|
|
.\"are met:
|
|
|
|
.\"1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\"2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\"THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\"ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\"ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\"DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\"OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\"HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\"LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\"OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\"SUCH DAMAGE.
|
epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, fallocate.2, futex.2, getcpu.2, getitimer.2, ioctl_list.2, ioprio_set.2, migrate_pages.2, move_pages.2, pciconfig_read.2, sendfile.2, setns.2, signalfd.2, spu_create.2, spu_run.2, sysinfo.2, timerfd_create.2, backtrace.3, cmsg.3, error.3, getpt.3, getrpcent.3, getrpcport.3, getsubopt.3, offsetof.3, program_invocation_name.3, rpc.3, rpmatch.3, rtnetlink.3, xdr.3, cciss.4, hpsa.4, pts.4, charmap.5, dir_colors.5, elf.5, gai.conf.5, locale.5, nscd.conf.5, nss.5, resolv.conf.5, rpc.5, arp.7, cpuset.7, ddp.7, epoll.7, fifo.7, futex.7, icmp.7, ip.7, ipv6.7, mailaddr.7, netdevice.7, packet.7, raw.7, regex.7, rtnetlink.7, socket.7, spufs.7, tcp.7, udp.7, unix.7, x25.7, ldconfig.8, nscd.8: Global fix: s/END_LICENSE/LICENSE_END/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-12 09:26:07 +00:00
|
|
|
.\" %%%LICENSE_END
|
2005-12-15 13:04:00 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD: src/share/man/man5/elf.5,v 1.21 2001/10/01 16:09:23 ru Exp $
|
|
|
|
.\"
|
|
|
|
.\" Slightly adapted - aeb, 2004-01-01
|
|
|
|
.\" 2005-07-15, Mike Frysinger <vapier@gentoo.org>, various fixes
|
2007-09-23 17:26:09 +00:00
|
|
|
.\" 2007-10-11, Mike Frysinger <vapier@gentoo.org>, various fixes
|
2007-12-03 19:59:38 +00:00
|
|
|
.\" 2007-12-08, mtk, Converted from mdoc to man macros
|
2005-12-15 13:04:00 +00:00
|
|
|
.\"
|
getent.1, ldd.1, locale.1, localedef.1, memusage.1, memusagestat.1, mtrace.1, _exit.2, _syscall.2, accept.2, access.2, acct.2, add_key.2, adjtimex.2, alloc_hugepages.2, arch_prctl.2, bdflush.2, bind.2, bpf.2, brk.2, cacheflush.2, capget.2, chdir.2, chmod.2, chown.2, chroot.2, clock_getres.2, clock_nanosleep.2, clone.2, close.2, close_range.2, connect.2, copy_file_range.2, create_module.2, delete_module.2, dup.2, epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, execve.2, execveat.2, fanotify_init.2, fanotify_mark.2, fcntl.2, flock.2, fork.2, fsync.2, futex.2, get_kernel_syms.2, get_mempolicy.2, get_robust_list.2, getcpu.2, getdents.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getitimer.2, getpagesize.2, getpeername.2, getpid.2, getpriority.2, getrandom.2, getresuid.2, getrlimit.2, getrusage.2, getsid.2, getsockname.2, getsockopt.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, getxattr.2, idle.2, init_module.2, inotify_add_watch.2, inotify_rm_watch.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, ioctl.2, ioctl_console.2, ioctl_fat.2, ioctl_ficlonerange.2, ioctl_fideduperange.2, ioctl_fslabel.2, ioctl_getfsmap.2, ioctl_ns.2, ioctl_tty.2, ioctl_userfaultfd.2, ioperm.2, iopl.2, ipc.2, kcmp.2, kexec_load.2, keyctl.2, kill.2, link.2, listen.2, listxattr.2, llseek.2, lookup_dcookie.2, lseek.2, madvise.2, mbind.2, membarrier.2, memfd_create.2, migrate_pages.2, mincore.2, mkdir.2, mknod.2, mlock.2, mmap.2, mmap2.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, mq_getsetattr.2, mremap.2, msgctl.2, msgget.2, msgop.2, msync.2, nanosleep.2, nfsservctl.2, nice.2, open.2, open_by_handle_at.2, openat2.2, pause.2, pciconfig_read.2, perf_event_open.2, perfmonctl.2, personality.2, pidfd_getfd.2, pidfd_open.2, pidfd_send_signal.2, pipe.2, pivot_root.2, pkey_alloc.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, read.2, readahead.2, readdir.2, readlink.2, readv.2, reboot.2, recv.2, remap_file_pages.2, removexattr.2, rename.2, request_key.2, restart_syscall.2, rmdir.2, rt_sigqueueinfo.2, s390_guarded_storage.2, s390_pci_mmio_write.2, s390_runtime_instr.2, s390_sthyi.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, seccomp.2, select.2, select_tut.2, semctl.2, semget.2, semop.2, send.2, sendfile.2, set_thread_area.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, setup.2, setxattr.2, sgetmask.2, shmctl.2, shmget.2, shmop.2, shutdown.2, sigaction.2, sigaltstack.2, signal.2, signalfd.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, socketcall.2, socketpair.2, splice.2, spu_create.2, spu_run.2, stat.2, statfs.2, statx.2, stime.2, subpage_prot.2, swapon.2, symlink.2, sync.2, sync_file_range.2, syscall.2, syscalls.2, sysctl.2, sysfs.2, sysinfo.2, syslog.2, time.2, timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, timerfd_create.2, times.2, tkill.2, truncate.2, umask.2, umount.2, uname.2, unimplemented.2, unlink.2, unshare.2, uselib.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, vmsplice.2, wait.2, wait4.2, write.2, CPU_SET.3, __ppc_get_timebase.3, __ppc_set_ppr_med.3, __ppc_yield.3, __setfpucw.3, a64l.3, abort.3, abs.3, acos.3, acosh.3, addseverity.3, adjtime.3, aio_cancel.3, aio_error.3, aio_fsync.3, aio_read.3, aio_return.3, aio_suspend.3, aio_write.3, alloca.3, argz_add.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, backtrace.3, basename.3, bcmp.3, bcopy.3, bindresvport.3, bsd_signal.3, bsearch.3, bstring.3, btowc.3, byteorder.3, bzero.3, cabs.3, cacos.3, cacosh.3, canonicalize_file_name.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, catgets.3, catopen.3, cbrt.3, ccos.3, ccosh.3, ceil.3, cexp.3, cexp2.3, cfree.3, cimag.3, circleq.3, clearenv.3, clock.3, clock_getcpuclockid.3, clog.3, clog10.3, clog2.3, closedir.3, cmsg.3, confstr.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, cproj.3, creal.3, crypt.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, ctermid.3, ctime.3, daemon.3, des_crypt.3, difftime.3, dirfd.3, div.3, dl_iterate_phdr.3, dladdr.3, dlerror.3, dlinfo.3, dlopen.3, dlsym.3, drand48.3, drand48_r.3, duplocale.3, dysize.3, ecvt.3, ecvt_r.3, encrypt.3, endian.3, envz_add.3, erf.3, erfc.3, err.3, errno.3, error.3, ether_aton.3, euidaccess.3, exec.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fclose.3, fcloseall.3, fdim.3, fenv.3, ferror.3, fexecve.3, fflush.3, ffs.3, fgetc.3, fgetgrent.3, fgetpwent.3, fgetwc.3, fgetws.3, fileno.3, finite.3, flockfile.3, floor.3, fma.3, fmax.3, fmemopen.3, fmin.3, fmod.3, fmtmsg.3, fnmatch.3, fopen.3, fopencookie.3, fpathconf.3, fpclassify.3, fpurge.3, fputwc.3, fputws.3, fread.3, frexp.3, fseek.3, fseeko.3, ftime.3, ftok.3, fts.3, ftw.3, futimes.3, fwide.3, gamma.3, gcvt.3, get_nprocs_conf.3, get_phys_pages.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getentropy.3, getenv.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getifaddrs.3, getipnodebyname.3, getline.3, getloadavg.3, getlogin.3, getmntent.3, getnameinfo.3, getnetent.3, getnetent_r.3, getopt.3, getpass.3, getprotoent.3, getprotoent_r.3, getpt.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getrpcent_r.3, getrpcport.3, gets.3, getservent.3, getservent_r.3, getspnam.3, getsubopt.3, getttyent.3, getumask.3, getusershell.3, getutent.3, getutmp.3, getw.3, getwchar.3, glob.3, gnu_get_libc_version.3, grantpt.3, group_member.3, gsignal.3, hsearch.3, hypot.3, iconv.3, iconv_close.3, iconv_open.3, if_nameindex.3, if_nametoindex.3, ilogb.3, index.3, inet.3, inet_net_pton.3, inet_ntop.3, inet_pton.3, initgroups.3, insque.3, isalpha.3, isatty.3, isfdtype.3, isgreater.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, j0.3, key_setsecret.3, killpg.3, ldexp.3, lgamma.3, lio_listio.3, list.3, localeconv.3, lockf.3, log.3, log10.3, log1p.3, log2.3, logb.3, login.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, makedev.3, mallinfo.3, malloc.3, malloc_get_state.3, malloc_hook.3, malloc_info.3, malloc_stats.3, malloc_trim.3, malloc_usable_size.3, mallopt.3, matherr.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mcheck.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, mempcpy.3, memset.3, mkdtemp.3, mkfifo.3, mkstemp.3, mktemp.3, modf.3, mpool.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, nan.3, newlocale.3, nextafter.3, nextup.3, nl_langinfo.3, ntp_gettime.3, on_exit.3, open_memstream.3, opendir.3, openpty.3, perror.3, popen.3, posix_fallocate.3, posix_madvise.3, posix_memalign.3, posix_openpt.3, posix_spawn.3, pow.3, pow10.3, printf.3, profil.3, psignal.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setsigmask_np.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_detach.3, pthread_equal.3, pthread_exit.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_join.3, pthread_kill.3, pthread_kill_other_threads_np.3, pthread_mutex_consistent.3, pthread_mutexattr_getpshared.3, pthread_mutexattr_setrobust.3, pthread_rwlockattr_setkind_np.3, pthread_self.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_sigmask.3, pthread_sigqueue.3, pthread_spin_init.3, pthread_spin_lock.3, pthread_testcancel.3, pthread_tryjoin_np.3, pthread_yield.3, ptsname.3, putenv.3, putgrent.3, putpwent.3, puts.3, putwchar.3, qecvt.3, qsort.3, raise.3, rand.3, random.3, random_r.3, rcmd.3, re_comp.3, readdir.3, readdir_r.3, realpath.3, regex.3, remainder.3, remove.3, remquo.3, resolver.3, rewinddir.3, rexec.3, rint.3, round.3, rpc.3, rpmatch.3, rtime.3, rtnetlink.3, scalb.3, scalbln.3, scandir.3, scanf.3, sched_getcpu.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, setlocale.3, setlogmask.3, setnetgrent.3, shm_open.3, siginterrupt.3, signbit.3, significand.3, sigpause.3, sigqueue.3, sigset.3, sigsetops.3, sigvec.3, sigwait.3, sin.3, sincos.3, sinh.3, sleep.3, slist.3, sockatmark.3, sqrt.3, stailq.3, statvfs.3, stdarg.3, stdio.3, stdio_ext.3, stpcpy.3, stpncpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfmon.3, strfromd.3, strfry.3, strftime.3, string.3, strlen.3, strnlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtod.3, strtoimax.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tailq.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, termios.3, tgamma.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, towctrans.3, towlower.3, towupper.3, trunc.3, tsearch.3, ttyname.3, ttyslot.3, tzset.3, ualarm.3, ulimit.3, undocumented.3, ungetwc.3, unlocked_stdio.3, unlockpt.3, updwtmp.3, uselocale.3, usleep.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstoimax.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wordexp.3, wprintf.3, xcrypt.3, xdr.3, y0.3, cciss.4, console_codes.4, dsp56k.4, hpsa.4, initrd.4, loop.4, lp.4, msr.4, random.4, rtc.4, smartpqi.4, veth.4, wavelan.4, acct.5, core.5, elf.5, hosts.5, locale.5, proc.5, resolv.conf.5, rpc.5, slabinfo.5, sysfs.5, tmpfs.5, utmp.5, address_families.7, aio.7, attributes.7, bootparam.7, capabilities.7, cgroups.7, complex.7, ddp.7, environ.7, epoll.7, fanotify.7, feature_test_macros.7, hier.7, inode.7, inotify.7, ip.7, ipv6.7, keyrings.7, locale.7, man-pages.7, man.7, math_error.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, numa.7, packet.7, pkeys.7, pthreads.7, queue.7, raw.7, rtnetlink.7, sched.7, session-keyring.7, shm_overview.7, sigevent.7, signal-safety.7, signal.7, sock_diag.7, socket.7, spufs.7, symlink.7, system_data_types.7, tcp.7, time_namespaces.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, user_namespaces.7, vdso.7, vsock.7, x25.7, iconvconfig.8, ld.so.8, ldconfig.8, sln.8, tzselect.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-03-21 23:15:34 +00:00
|
|
|
.TH ELF 5 2021-03-22 "Linux" "Linux Programmer's Manual"
|
2007-12-03 19:53:53 +00:00
|
|
|
.SH NAME
|
|
|
|
elf \- format of Executable and Linking Format (ELF) files
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
.\" .B #include <elf_abi.h>
|
|
|
|
.B #include <elf.h>
|
|
|
|
.fi
|
|
|
|
.SH DESCRIPTION
|
2004-11-03 13:51:07 +00:00
|
|
|
The header file
|
2007-12-03 19:53:53 +00:00
|
|
|
.I <elf.h>
|
2004-11-03 13:51:07 +00:00
|
|
|
defines the format of ELF executable binary files.
|
|
|
|
Amongst these files are
|
2015-07-10 19:13:50 +00:00
|
|
|
normal executable files, relocatable object files, core files, and shared
|
2015-07-10 19:14:47 +00:00
|
|
|
objects.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
An executable file using the ELF file format consists of an ELF header,
|
|
|
|
followed by a program header table or a section header table, or both.
|
|
|
|
The ELF header is always at offset zero of the file.
|
|
|
|
The program header
|
|
|
|
table and the section header table's offset in the file are defined in the
|
|
|
|
ELF header.
|
|
|
|
The two tables describe the rest of the particularities of
|
|
|
|
the file.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Applications which wish to process ELF binary files for their native
|
|
|
|
.\" architecture only should include
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .I <elf_abi.h>
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" in their source code.
|
|
|
|
.\" These applications should need to refer to
|
|
|
|
.\" all the types and structures by their generic names
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" "Elf_xxx"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" and to the macros by
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" ELF_xxx".
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Applications written this way can be compiled on any architecture,
|
|
|
|
.\" regardless of whether the host is 32-bit or 64-bit.
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .PP
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Should an application need to process ELF files of an unknown
|
|
|
|
.\" architecture, then the application needs to explicitly use either
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" "Elf32_xxx"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" or
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" "Elf64_xxx"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" type and structure names.
|
|
|
|
.\" Likewise, the macros need to be identified by
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" "ELF32_xxx"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" or
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" "ELF64_xxx".
|
|
|
|
.\" .PP
|
2004-11-03 13:51:07 +00:00
|
|
|
This header file describes the above mentioned headers as C structures
|
|
|
|
and also includes structures for dynamic sections, relocation sections and
|
|
|
|
symbol tables.
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS Basic types
|
2004-11-03 13:51:07 +00:00
|
|
|
The following types are used for N-bit architectures (N=32,64,
|
2007-12-09 14:27:30 +00:00
|
|
|
.I ElfN
|
|
|
|
stands for
|
|
|
|
.I Elf32
|
|
|
|
or
|
|
|
|
.IR Elf64 ,
|
|
|
|
.I uintN_t
|
|
|
|
stands for
|
|
|
|
.I uint32_t
|
|
|
|
or
|
|
|
|
.IR uint64_t ):
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2007-12-03 19:53:53 +00:00
|
|
|
ElfN_Addr Unsigned program address, uintN_t
|
|
|
|
ElfN_Off Unsigned file offset, uintN_t
|
|
|
|
ElfN_Section Unsigned section index, uint16_t
|
|
|
|
ElfN_Versym Unsigned version symbol information, uint16_t
|
|
|
|
Elf_Byte unsigned char
|
|
|
|
ElfN_Half uint16_t
|
|
|
|
ElfN_Sword int32_t
|
|
|
|
ElfN_Word uint32_t
|
|
|
|
ElfN_Sxword int64_t
|
|
|
|
ElfN_Xword uint64_t
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Elf32_Size Unsigned object size
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
killpg.2, crypt.3, mbsinit.3, printf.3, rpc.3, ulimit.3, wprintf.3, xdr.3, fd.4, elf.5, group.5: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-10-12 13:12:47 +00:00
|
|
|
(Note: the *BSD terminology is a bit different.
|
2016-01-28 07:52:08 +00:00
|
|
|
There,
|
2007-12-09 14:27:30 +00:00
|
|
|
.I Elf64_Half
|
|
|
|
is
|
|
|
|
twice as large as
|
|
|
|
.IR Elf32_Half ,
|
|
|
|
and
|
|
|
|
.I Elf64Quarter
|
|
|
|
is used for
|
|
|
|
.IR uint16_t .
|
2004-11-03 13:51:07 +00:00
|
|
|
In order to avoid confusion these types are replaced by explicit ones
|
|
|
|
in the below.)
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
All data structures that the file format defines follow the
|
2007-12-03 19:53:53 +00:00
|
|
|
"natural"
|
2004-11-03 13:51:07 +00:00
|
|
|
size and alignment guidelines for the relevant class.
|
|
|
|
If necessary,
|
|
|
|
data structures contain explicit padding to ensure 4-byte alignment
|
madvise.2, perf_event_open.2, query_module.2, stat.2, sem_init.3, hpsa.4, rtc.4, st.4, elf.5, filesystems.5, proc.5, environ.7, man-pages.7, regex.7, units.7: Reword to avoid use of "etc."
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-18 10:58:39 +00:00
|
|
|
for 4-byte objects, to force structure sizes to a multiple of 4, and so on.
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS ELF header (Ehdr)
|
2007-12-09 14:27:30 +00:00
|
|
|
The ELF header is described by the type
|
|
|
|
.I Elf32_Ehdr
|
|
|
|
or
|
|
|
|
.IR Elf64_Ehdr :
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
#define EI_NIDENT 16
|
|
|
|
|
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
unsigned char e_ident[EI_NIDENT];
|
|
|
|
uint16_t e_type;
|
|
|
|
uint16_t e_machine;
|
|
|
|
uint32_t e_version;
|
|
|
|
ElfN_Addr e_entry;
|
|
|
|
ElfN_Off e_phoff;
|
|
|
|
ElfN_Off e_shoff;
|
|
|
|
uint32_t e_flags;
|
|
|
|
uint16_t e_ehsize;
|
|
|
|
uint16_t e_phentsize;
|
|
|
|
uint16_t e_phnum;
|
|
|
|
uint16_t e_shentsize;
|
|
|
|
uint16_t e_shnum;
|
|
|
|
uint16_t e_shstrndx;
|
2004-11-03 13:51:07 +00:00
|
|
|
} ElfN_Ehdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
The fields have the following meanings:
|
2016-01-28 09:19:47 +00:00
|
|
|
.\"
|
|
|
|
.\"
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_ident
|
2015-05-29 18:31:41 +00:00
|
|
|
This array of bytes specifies how to interpret the file,
|
2005-12-15 13:04:00 +00:00
|
|
|
independent of the processor or the file's remaining contents.
|
|
|
|
Within this array everything is named by macros, which start with
|
|
|
|
the prefix
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR EI_
|
2005-12-15 13:04:00 +00:00
|
|
|
and may contain values which start with the prefix
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELF .
|
2005-12-15 13:04:00 +00:00
|
|
|
The following macros are defined:
|
2016-01-28 09:03:51 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR EI_MAG0
|
2005-12-15 13:04:00 +00:00
|
|
|
The first byte of the magic number.
|
|
|
|
It must be filled with
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFMAG0 .
|
2005-12-15 13:04:00 +00:00
|
|
|
(0: 0x7f)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_MAG1
|
2005-12-15 13:04:00 +00:00
|
|
|
The second byte of the magic number.
|
|
|
|
It must be filled with
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFMAG1 .
|
2008-06-09 15:49:35 +00:00
|
|
|
(1: \(aqE\(aq)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_MAG2
|
2005-12-15 13:04:00 +00:00
|
|
|
The third byte of the magic number.
|
|
|
|
It must be filled with
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFMAG2 .
|
2008-06-09 15:49:35 +00:00
|
|
|
(2: \(aqL\(aq)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_MAG3
|
2005-12-15 13:04:00 +00:00
|
|
|
The fourth byte of the magic number.
|
|
|
|
It must be filled with
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFMAG3 .
|
2008-06-09 15:49:35 +00:00
|
|
|
(3: \(aqF\(aq)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_CLASS
|
2005-12-15 13:04:00 +00:00
|
|
|
The fifth byte identifies the architecture for this binary:
|
2016-01-28 09:03:51 +00:00
|
|
|
.RS
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP 14
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFCLASSNONE
|
2005-12-15 13:04:00 +00:00
|
|
|
This class is invalid.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFCLASS32
|
2005-12-15 13:04:00 +00:00
|
|
|
This defines the 32-bit architecture.
|
|
|
|
It supports machines with files
|
|
|
|
and virtual address spaces up to 4 Gigabytes.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFCLASS64
|
2005-12-15 13:04:00 +00:00
|
|
|
This defines the 64-bit architecture.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.BR EI_DATA
|
2005-12-15 13:04:00 +00:00
|
|
|
The sixth byte specifies the data encoding of the processor-specific
|
|
|
|
data in the file.
|
2016-01-28 07:52:52 +00:00
|
|
|
Currently, these encodings are supported:
|
2016-01-28 09:03:51 +00:00
|
|
|
.RS 9
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP 14
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFDATANONE
|
2005-12-15 13:04:00 +00:00
|
|
|
Unknown data format.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFDATA2LSB
|
2005-12-15 13:04:00 +00:00
|
|
|
Two's complement, little-endian.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFDATA2MSB
|
2005-12-15 13:04:00 +00:00
|
|
|
Two's complement, big-endian.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.BR EI_VERSION
|
2013-04-08 09:27:27 +00:00
|
|
|
The seventh byte is the version number of the ELF specification:
|
2017-08-16 00:59:28 +00:00
|
|
|
.IP
|
|
|
|
.PD 0
|
2016-01-28 09:03:51 +00:00
|
|
|
.RS
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP 14
|
|
|
|
.BR EV_NONE
|
2005-12-15 13:04:00 +00:00
|
|
|
Invalid version.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EV_CURRENT
|
2005-12-15 13:04:00 +00:00
|
|
|
Current version.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.\".El
|
|
|
|
.TP
|
|
|
|
.BR EI_OSABI
|
2013-04-08 09:27:27 +00:00
|
|
|
The eighth byte identifies the operating system
|
2005-12-15 13:04:00 +00:00
|
|
|
and ABI to which the object is targeted.
|
|
|
|
Some fields in other ELF structures have flags
|
2007-12-25 20:50:22 +00:00
|
|
|
and values that have platform-specific meanings;
|
2005-12-15 13:04:00 +00:00
|
|
|
the interpretation of those fields is determined by the value of this byte.
|
2014-05-01 10:05:29 +00:00
|
|
|
For example:
|
2016-01-28 09:03:51 +00:00
|
|
|
.RS
|
2016-01-28 09:23:13 +00:00
|
|
|
.TP 21
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELFOSABI_NONE
|
2005-12-15 13:04:00 +00:00
|
|
|
Same as ELFOSABI_SYSV
|
|
|
|
.\" 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_SYSV
|
2016-01-28 08:50:50 +00:00
|
|
|
UNIX System V ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 0
|
|
|
|
.\" synonym: ELFOSABI_NONE
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_HPUX
|
2016-01-28 08:50:50 +00:00
|
|
|
HP-UX ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 1
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_NETBSD
|
2016-01-28 08:50:50 +00:00
|
|
|
NetBSD ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 2
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_LINUX
|
2016-01-28 08:50:50 +00:00
|
|
|
Linux ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 3
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR ELFOSABI_HURD
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" Hurd ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 4
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR ELFOSABI_86OPEN
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" 86Open Common IA32 ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 5
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_SOLARIS
|
2016-01-28 08:50:50 +00:00
|
|
|
Solaris ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 6
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR ELFOSABI_MONTEREY
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" Monterey project ABI
|
2012-05-05 03:10:16 +00:00
|
|
|
.\" Now replaced by
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" ELFOSABI_AIX
|
|
|
|
.\" 7
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_IRIX
|
2016-01-28 08:50:50 +00:00
|
|
|
IRIX ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 8
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_FREEBSD
|
2016-01-28 08:50:50 +00:00
|
|
|
FreeBSD ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 9
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_TRU64
|
2016-01-28 08:50:50 +00:00
|
|
|
TRU64 UNIX ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 10
|
|
|
|
.\" ELFOSABI_MODESTO
|
|
|
|
.\" 11
|
|
|
|
.\" ELFOSABI_OPENBSD
|
|
|
|
.\" 12
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_ARM
|
2016-01-28 08:50:50 +00:00
|
|
|
ARM architecture ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 97
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ELFOSABI_STANDALONE
|
2016-01-28 08:50:50 +00:00
|
|
|
Stand-alone (embedded) ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 255
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.BR EI_ABIVERSION
|
2013-04-08 09:27:27 +00:00
|
|
|
The ninth byte identifies the version of the ABI
|
2005-12-15 13:04:00 +00:00
|
|
|
to which the object is targeted.
|
|
|
|
This field is used to distinguish among incompatible versions of an ABI.
|
|
|
|
The interpretation of this version number
|
2007-12-29 17:21:41 +00:00
|
|
|
is dependent on the ABI identified by the
|
|
|
|
.B EI_OSABI
|
|
|
|
field.
|
2005-12-15 13:04:00 +00:00
|
|
|
Applications conforming to this specification use the value 0.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_PAD
|
2005-12-15 13:04:00 +00:00
|
|
|
Start of padding.
|
|
|
|
These bytes are reserved and set to zero.
|
|
|
|
Programs
|
|
|
|
which read them should ignore them.
|
2007-12-29 17:21:41 +00:00
|
|
|
The value for
|
|
|
|
.B EI_PAD
|
|
|
|
will change in
|
2005-12-15 13:04:00 +00:00
|
|
|
the future if currently unused bytes are given meanings.
|
clock_getres.2, clone.2, mbind.2, set_mempolicy.2, atan2.3, getipnodebyname.3, ilogb.3, lgamma.3, elf.5, capabilities.7, math_error.7: srcfix: Remove double space
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-27 03:17:10 +00:00
|
|
|
.\" As reported by Yuri Kozlov and confirmed by Mike Frysinger, EI_BRAND is
|
2010-06-19 09:43:32 +00:00
|
|
|
.\" not in GABI (http://www.sco.com/developers/gabi/latest/ch4.eheader.html)
|
|
|
|
.\" It looks to be a BSDism
|
|
|
|
.\" .TP
|
|
|
|
.\" .BR EI_BRAND
|
|
|
|
.\" Start of architecture identification.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EI_NIDENT
|
2007-12-29 17:21:41 +00:00
|
|
|
The size of the
|
|
|
|
.I e_ident
|
|
|
|
array.
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR e_type
|
2005-12-15 13:04:00 +00:00
|
|
|
This member of the structure identifies the object file type:
|
2016-01-28 08:54:12 +00:00
|
|
|
.RS
|
|
|
|
.TP 16
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ET_NONE
|
2005-12-15 13:04:00 +00:00
|
|
|
An unknown type.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ET_REL
|
2005-12-15 13:04:00 +00:00
|
|
|
A relocatable file.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ET_EXEC
|
2005-12-15 13:04:00 +00:00
|
|
|
An executable file.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ET_DYN
|
2005-12-15 13:04:00 +00:00
|
|
|
A shared object.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR ET_CORE
|
2005-12-15 13:04:00 +00:00
|
|
|
A core file.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR e_machine
|
2005-12-15 13:04:00 +00:00
|
|
|
This member specifies the required architecture for an individual file.
|
2014-05-01 10:05:29 +00:00
|
|
|
For example:
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
2016-01-28 08:54:12 +00:00
|
|
|
.TP 16
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR EM_NONE
|
2016-01-28 08:50:50 +00:00
|
|
|
An unknown machine
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_M32
|
2016-01-28 08:50:50 +00:00
|
|
|
AT&T WE 32100
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 1
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_SPARC
|
2016-01-28 08:50:50 +00:00
|
|
|
Sun Microsystems SPARC
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 2
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_386
|
2016-01-28 08:50:50 +00:00
|
|
|
Intel 80386
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 3
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_68K
|
2016-01-28 08:50:50 +00:00
|
|
|
Motorola 68000
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 4
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_88K
|
2016-01-28 08:50:50 +00:00
|
|
|
Motorola 88000
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 5
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR EM_486
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" Intel 80486
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 6
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_860
|
2016-01-28 08:50:50 +00:00
|
|
|
Intel 80860
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 7
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_MIPS
|
2016-01-28 08:50:50 +00:00
|
|
|
MIPS RS3000 (big-endian only)
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 8
|
|
|
|
.\" EM_S370
|
|
|
|
.\" 9
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR EM_MIPS_RS4_BE
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" MIPS RS4000 (big-endian only). Deprecated
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 10
|
|
|
|
.\" EM_MIPS_RS3_LE (MIPS R3000 little-endian)
|
|
|
|
.\" 10
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_PARISC
|
2016-01-28 08:50:50 +00:00
|
|
|
HP/PA
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 15
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_SPARC32PLUS
|
2016-01-28 08:50:50 +00:00
|
|
|
SPARC with enhanced instruction set
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 18
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_PPC
|
2016-01-28 08:50:50 +00:00
|
|
|
PowerPC
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 20
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_PPC64
|
2016-01-28 08:50:50 +00:00
|
|
|
PowerPC 64-bit
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 21
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_S390
|
2005-12-15 13:04:00 +00:00
|
|
|
IBM S/390
|
|
|
|
.\" 22
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_ARM
|
2005-12-15 13:04:00 +00:00
|
|
|
Advanced RISC Machines
|
|
|
|
.\" 40
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_SH
|
2005-12-15 13:04:00 +00:00
|
|
|
Renesas SuperH
|
|
|
|
.\" 42
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_SPARCV9
|
2016-01-28 08:50:50 +00:00
|
|
|
SPARC v9 64-bit
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 43
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_IA_64
|
2005-12-15 13:04:00 +00:00
|
|
|
Intel Itanium
|
|
|
|
.\" 50
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_X86_64
|
2005-12-15 13:04:00 +00:00
|
|
|
AMD x86-64
|
|
|
|
.\" 62
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EM_VAX
|
2016-01-28 08:50:50 +00:00
|
|
|
DEC Vax
|
2005-12-15 13:04:00 +00:00
|
|
|
.\" 75
|
|
|
|
.\" EM_CRIS
|
|
|
|
.\" 76
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR EM_ALPHA
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" Compaq [DEC] Alpha
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .TP
|
|
|
|
.\" .BR EM_ALPHA_EXP
|
2016-01-28 08:50:50 +00:00
|
|
|
.\" Compaq [DEC] Alpha with enhanced instruction set
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR e_version
|
2005-12-15 13:04:00 +00:00
|
|
|
This member identifies the file version:
|
2016-01-28 08:54:12 +00:00
|
|
|
.RS
|
|
|
|
.TP 16
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR EV_NONE
|
2016-01-28 08:50:50 +00:00
|
|
|
Invalid version
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR EV_CURRENT
|
2016-01-28 08:50:50 +00:00
|
|
|
Current version
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR e_entry
|
2005-12-15 13:04:00 +00:00
|
|
|
This member gives the virtual address to which the system first transfers
|
|
|
|
control, thus starting the process.
|
|
|
|
If the file has no associated entry
|
|
|
|
point, this member holds zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_phoff
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the program header table's file offset in bytes.
|
|
|
|
If
|
|
|
|
the file has no program header table, this member holds zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_shoff
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the section header table's file offset in bytes.
|
|
|
|
If the
|
2014-03-26 04:56:02 +00:00
|
|
|
file has no section header table, this member holds zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_flags
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds processor-specific flags associated with the file.
|
|
|
|
Flag names take the form EF_`machine_flag'.
|
2016-01-28 07:52:52 +00:00
|
|
|
Currently, no flags have been defined.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_ehsize
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the ELF header's size in bytes.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_phentsize
|
2016-11-27 11:05:32 +00:00
|
|
|
This member holds the size in bytes of one entry in the file's
|
|
|
|
program header table; all entries are the same size.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_phnum
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the number of entries in the program header
|
|
|
|
table.
|
|
|
|
Thus the product of
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_phentsize
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_phnum
|
2005-12-15 13:04:00 +00:00
|
|
|
gives the table's size
|
|
|
|
in bytes.
|
|
|
|
If a file has no program header,
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_phnum
|
2005-12-15 13:04:00 +00:00
|
|
|
holds the value zero.
|
2010-06-19 10:42:51 +00:00
|
|
|
.IP
|
2016-11-27 11:05:32 +00:00
|
|
|
If the number of entries in the program header table is
|
|
|
|
larger than or equal to
|
2010-06-19 10:42:51 +00:00
|
|
|
.\" This is a Linux extension, added in Linux 2.6.34.
|
|
|
|
.BR PN_XNUM
|
|
|
|
(0xffff), this member holds
|
|
|
|
.BR PN_XNUM
|
|
|
|
(0xffff) and the real number of entries in the program header table is held
|
|
|
|
in the
|
|
|
|
.IR sh_info
|
|
|
|
member of the initial entry in section header table.
|
|
|
|
Otherwise, the
|
|
|
|
.IR sh_info
|
|
|
|
member of the initial entry contains the value zero.
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2010-06-19 10:42:51 +00:00
|
|
|
.BR PN_XNUM
|
|
|
|
This is defined as 0xffff, the largest number
|
|
|
|
.IR e_phnum
|
|
|
|
can have, specifying where the actual number of program headers is assigned.
|
|
|
|
.PD
|
|
|
|
.RE
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_shentsize
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds a sections header's size in bytes.
|
|
|
|
A section header is one
|
|
|
|
entry in the section header table; all entries are the same size.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_shnum
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the number of entries in the section header table.
|
|
|
|
Thus
|
|
|
|
the product of
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shentsize
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shnum
|
2005-12-15 13:04:00 +00:00
|
|
|
gives the section header table's size in bytes.
|
|
|
|
If a file has no section
|
|
|
|
header table,
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shnum
|
2005-12-15 13:04:00 +00:00
|
|
|
holds the value of zero.
|
2010-06-19 10:42:51 +00:00
|
|
|
.IP
|
2016-11-27 11:05:32 +00:00
|
|
|
If the number of entries in the section header table is
|
|
|
|
larger than or equal to
|
2010-06-19 10:42:51 +00:00
|
|
|
.BR SHN_LORESERVE
|
|
|
|
(0xff00),
|
|
|
|
.IR e_shnum
|
|
|
|
holds the value zero and the real number of entries in the section header
|
|
|
|
table is held in the
|
|
|
|
.IR sh_size
|
|
|
|
member of the initial entry in section header table.
|
|
|
|
Otherwise, the
|
|
|
|
.IR sh_size
|
2016-11-27 11:05:32 +00:00
|
|
|
member of the initial entry in the section header table holds
|
|
|
|
the value zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR e_shstrndx
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the section header table index of the entry associated
|
|
|
|
with the section name string table.
|
|
|
|
If the file has no section name string
|
|
|
|
table, this member holds the value
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_UNDEF .
|
2010-06-19 10:42:51 +00:00
|
|
|
.IP
|
2016-11-27 11:05:32 +00:00
|
|
|
If the index of section name string table section is
|
|
|
|
larger than or equal to
|
2010-06-19 10:42:51 +00:00
|
|
|
.BR SHN_LORESERVE
|
|
|
|
(0xff00), this member holds
|
|
|
|
.BR SHN_XINDEX
|
|
|
|
(0xffff) and the real index of the section name string table section
|
|
|
|
is held in the
|
|
|
|
.IR sh_link
|
2012-05-05 03:10:16 +00:00
|
|
|
member of the initial entry in section header table.
|
|
|
|
Otherwise, the
|
2010-06-19 10:42:51 +00:00
|
|
|
.IR sh_link
|
|
|
|
member of the initial entry in section header table contains the value zero.
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS Program header (Phdr)
|
2005-12-15 13:04:00 +00:00
|
|
|
An executable or shared object file's program header table is an array of
|
|
|
|
structures, each describing a segment or other information the system needs
|
|
|
|
to prepare the program for execution.
|
|
|
|
An object file
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR segment
|
2005-12-15 13:04:00 +00:00
|
|
|
contains one or more
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sections .
|
2005-12-15 13:04:00 +00:00
|
|
|
Program headers are meaningful only for executable and shared object files.
|
|
|
|
A file specifies its own program header size with the ELF header's
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_phentsize
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_phnum
|
2005-12-15 13:04:00 +00:00
|
|
|
members.
|
2007-12-09 14:27:30 +00:00
|
|
|
The ELF program header is described by the type
|
|
|
|
.I Elf32_Phdr
|
|
|
|
or
|
|
|
|
.I Elf64_Phdr
|
2005-12-15 13:04:00 +00:00
|
|
|
depending on the architecture:
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t p_type;
|
|
|
|
Elf32_Off p_offset;
|
|
|
|
Elf32_Addr p_vaddr;
|
|
|
|
Elf32_Addr p_paddr;
|
|
|
|
uint32_t p_filesz;
|
|
|
|
uint32_t p_memsz;
|
|
|
|
uint32_t p_flags;
|
|
|
|
uint32_t p_align;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf32_Phdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t p_type;
|
|
|
|
uint32_t p_flags;
|
|
|
|
Elf64_Off p_offset;
|
|
|
|
Elf64_Addr p_vaddr;
|
|
|
|
Elf64_Addr p_paddr;
|
|
|
|
uint64_t p_filesz;
|
|
|
|
uint64_t p_memsz;
|
|
|
|
uint64_t p_align;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf64_Phdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2005-12-15 13:04:00 +00:00
|
|
|
The main difference between the 32-bit and the 64-bit program header lies
|
|
|
|
in the location of the
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_flags
|
2005-12-15 13:04:00 +00:00
|
|
|
member in the total struct.
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_type
|
2016-01-28 08:38:46 +00:00
|
|
|
This member of the structure indicates what kind of segment this array
|
2005-12-15 13:04:00 +00:00
|
|
|
element describes or how to interpret the array element's information.
|
2016-01-28 09:10:00 +00:00
|
|
|
.RS 10
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PT_NULL
|
2005-12-15 13:04:00 +00:00
|
|
|
The array element is unused and the other members' values are undefined.
|
|
|
|
This lets the program header have ignored entries.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_LOAD
|
2005-12-15 13:04:00 +00:00
|
|
|
The array element specifies a loadable segment, described by
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_filesz
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_memsz .
|
2005-12-15 13:04:00 +00:00
|
|
|
The bytes from the file are mapped to the beginning of the memory
|
|
|
|
segment.
|
|
|
|
If the segment's memory size
|
2007-12-09 14:27:30 +00:00
|
|
|
.IR p_memsz
|
2005-12-15 13:04:00 +00:00
|
|
|
is larger than the file size
|
2007-12-09 14:27:30 +00:00
|
|
|
.IR p_filesz ,
|
2005-12-15 13:04:00 +00:00
|
|
|
the
|
2007-12-03 19:53:53 +00:00
|
|
|
"extra"
|
2005-12-15 13:04:00 +00:00
|
|
|
bytes are defined to hold the value 0 and to follow the segment's
|
|
|
|
initialized area.
|
|
|
|
The file size may not be larger than the memory size.
|
|
|
|
Loadable segment entries in the program header table appear in ascending
|
|
|
|
order, sorted on the
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_vaddr
|
2005-12-15 13:04:00 +00:00
|
|
|
member.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_DYNAMIC
|
2005-12-15 13:04:00 +00:00
|
|
|
The array element specifies dynamic linking information.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_INTERP
|
2005-12-15 13:04:00 +00:00
|
|
|
The array element specifies the location and size of a null-terminated
|
2006-02-12 22:19:08 +00:00
|
|
|
pathname to invoke as an interpreter.
|
2005-12-15 13:04:00 +00:00
|
|
|
This segment type is meaningful
|
|
|
|
only for executable files (though it may occur for shared objects).
|
|
|
|
However it may not occur more than once in a file.
|
|
|
|
If it is present, it must precede any loadable segment entry.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_NOTE
|
2016-11-27 03:31:37 +00:00
|
|
|
The array element specifies the location of notes (ElfN_Nhdr).
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_SHLIB
|
2005-12-15 13:04:00 +00:00
|
|
|
This segment type is reserved but has unspecified semantics.
|
|
|
|
Programs that
|
|
|
|
contain an array element of this type do not conform to the ABI.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PT_PHDR
|
2016-11-27 11:05:32 +00:00
|
|
|
The array element, if present,
|
|
|
|
specifies the location and size of the program header table itself,
|
|
|
|
both in the file and in the memory image of the program.
|
2005-12-15 13:04:00 +00:00
|
|
|
This segment type may not occur more than once in a file.
|
|
|
|
Moreover, it may
|
intro.1, _syscall.2, access.2, arch_prctl.2, cacheflush.2, chown.2, clock_getres.2, clone.2, create_module.2, fcntl.2, flock.2, get_kernel_syms.2, get_robust_list.2, get_thread_area.2, getcpu.2, getpriority.2, getrlimit.2, getrusage.2, ioprio_set.2, kexec_load.2, madvise.2, mbind.2, migrate_pages.2, mknod.2, mmap.2, mount.2, move_pages.2, mprotect.2, open.2, pause.2, pciconfig_read.2, perf_event_open.2, prctl.2, ptrace.2, query_module.2, read.2, reboot.2, recv.2, s390_runtime_instr.2, sched_setscheduler.2, select_tut.2, send.2, set_mempolicy.2, setfsgid.2, setfsuid.2, sigaction.2, spu_create.2, spu_run.2, stime.2, swapon.2, syslog.2, timer_create.2, timer_getoverrun.2, times.2, tkill.2, umount.2, unimplemented.2, ustat.2, vm86.2, wait.2, abs.3, aio_read.3, aio_write.3, bsd_signal.3, catgets.3, clearenv.3, cmsg.3, dbopen.3, dirfd.3, dlopen.3, exec.3, fenv.3, ferror.3, fmemopen.3, fnmatch.3, fopen.3, futimes.3, getaddrinfo.3, getifaddrs.3, getipnodebyname.3, hsearch.3, if_nameindex.3, inet_pton.3, mblen.3, mbrlen.3, mbsrtowcs.3, mbtowc.3, mcheck.3, memfrob.3, mq_notify.3, netlink.3, posix_memalign.3, printf.3, pthread_attr_setscope.3, pthread_cleanup_push.3, pthread_kill_other_threads_np.3, pthread_self.3, pthread_setcancelstate.3, pthread_setconcurrency.3, raise.3, resolver.3, rpc.3, rtime.3, rtnetlink.3, scanf.3, setbuf.3, setnetgrent.3, shm_open.3, sigpause.3, sigset.3, sigwait.3, sockatmark.3, strcasecmp.3, strcmp.3, strdup.3, strftime.3, strptime.3, strsignal.3, strverscmp.3, sysv_signal.3, termios.3, wcrtomb.3, wcsnlen.3, wcsnrtombs.3, wcsrtombs.3, wctomb.3, wprintf.3, console_codes.4, cpuid.4, msr.4, rtc.4, sk98lin.4, st.4, tty.4, charmap.5, core.5, elf.5, hosts.equiv.5, proc.5, resolv.conf.5, services.5, slabinfo.5, arp.7, bootparam.7, capabilities.7, charsets.7, cpuset.7, ddp.7, epoll.7, feature_test_macros.7, futex.7, hier.7, icmp.7, inotify.7, ip.7, ipv6.7, man-pages.7, mdoc.7, mdoc.samples.7, netdevice.7, netlink.7, numa.7, packet.7, path_resolution.7, posixoptions.7, pthreads.7, raw.7, rtld-audit.7, rtnetlink.7, sem_overview.7, sigevent.7, socket.7, spufs.7, tcp.7, udp.7, unicode.7, uri.7, utf-8.7, intro.8, ldconfig.8, sync.8: Global fix: fix placement of word "only"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-31 08:53:00 +00:00
|
|
|
occur only if the program header table is part of the memory image of the
|
2005-12-15 13:04:00 +00:00
|
|
|
program.
|
|
|
|
If it is present, it must precede any loadable segment entry.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR PT_LOPROC ", " PT_HIPROC
|
|
|
|
Values in the inclusive range
|
|
|
|
.RB [ PT_LOPROC ", " PT_HIPROC ]
|
2005-12-15 13:04:00 +00:00
|
|
|
are reserved for processor-specific semantics.
|
2012-03-23 22:51:26 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PT_GNU_STACK
|
2007-09-23 17:26:09 +00:00
|
|
|
GNU extension which is used by the Linux kernel to control the state of the
|
2007-11-15 03:28:33 +00:00
|
|
|
stack via the flags set in the
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_flags
|
2007-09-23 17:26:09 +00:00
|
|
|
member.
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR p_offset
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the offset from the beginning of the file at which
|
|
|
|
the first byte of the segment resides.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR p_vaddr
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the virtual address at which the first byte of the
|
|
|
|
segment resides in memory.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR p_paddr
|
2005-12-15 13:04:00 +00:00
|
|
|
On systems for which physical addressing is relevant, this member is
|
|
|
|
reserved for the segment's physical address.
|
|
|
|
Under
|
2007-12-03 19:53:53 +00:00
|
|
|
BSD
|
2005-12-15 13:04:00 +00:00
|
|
|
this member is
|
|
|
|
not used and must be zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR p_filesz
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the number of bytes in the file image of the segment.
|
|
|
|
It may be zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR p_memsz
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the number of bytes in the memory image of the segment.
|
|
|
|
It may be zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR p_flags
|
2013-03-11 11:57:15 +00:00
|
|
|
This member holds a bit mask of flags relevant to the segment:
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.RS
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PF_X
|
2005-12-15 13:04:00 +00:00
|
|
|
An executable segment.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PF_W
|
2005-12-15 13:04:00 +00:00
|
|
|
A writable segment.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR PF_R
|
2005-12-15 13:04:00 +00:00
|
|
|
A readable segment.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
2007-12-28 05:38:10 +00:00
|
|
|
.IP
|
2005-12-15 13:04:00 +00:00
|
|
|
A text segment commonly has the flags
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PF_X
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PF_R .
|
2005-12-15 13:04:00 +00:00
|
|
|
A data segment commonly has
|
2019-04-15 15:09:32 +00:00
|
|
|
.BR PF_W
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR PF_R .
|
|
|
|
.TP
|
|
|
|
.IR p_align
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the value to which the segments are aligned in memory
|
|
|
|
and in the file.
|
|
|
|
Loadable process segments must have congruent values for
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_vaddr
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_offset ,
|
2005-12-15 13:04:00 +00:00
|
|
|
modulo the page size.
|
|
|
|
Values of zero and one mean no alignment is required.
|
|
|
|
Otherwise,
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_align
|
2005-12-15 13:04:00 +00:00
|
|
|
should be a positive, integral power of two, and
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_vaddr
|
2005-12-15 13:04:00 +00:00
|
|
|
should equal
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_offset ,
|
2005-12-15 13:04:00 +00:00
|
|
|
modulo
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR p_align .
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS Section header (Shdr)
|
2005-12-15 13:04:00 +00:00
|
|
|
A file's section header table lets one locate all the file's sections.
|
|
|
|
The
|
2007-12-09 14:27:30 +00:00
|
|
|
section header table is an array of
|
|
|
|
.I Elf32_Shdr
|
|
|
|
or
|
|
|
|
.I Elf64_Shdr
|
|
|
|
structures.
|
2005-12-15 13:04:00 +00:00
|
|
|
The
|
|
|
|
ELF header's
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shoff
|
2005-12-15 13:04:00 +00:00
|
|
|
member gives the byte offset from the beginning of the file to the section
|
|
|
|
header table.
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shnum
|
2005-12-15 13:04:00 +00:00
|
|
|
holds the number of entries the section header table contains.
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR e_shentsize
|
2005-12-15 13:04:00 +00:00
|
|
|
holds the size in bytes of each entry.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2005-12-15 13:04:00 +00:00
|
|
|
A section header table index is a subscript into this array.
|
|
|
|
Some section
|
2010-06-19 10:42:51 +00:00
|
|
|
header table indices are reserved:
|
|
|
|
the initial entry and the indices between
|
|
|
|
.B SHN_LORESERVE
|
|
|
|
and
|
|
|
|
.BR SHN_HIRESERVE .
|
|
|
|
The initial entry is used in ELF extensions for
|
|
|
|
.IR e_phnum ,
|
getent.1, fanotify_mark.2, fcntl.2, futex.2, membarrier.2, mmap.2, mount.2, msgctl.2, readv.2, semctl.2, set_mempolicy.2, shmctl.2, syscalls.2, abs.3, bstring.3, btree.3, ctime.3, drand48.3, fgetc.3, fopen.3, gethostbyname.3, getnetent.3, getprotoent.3, getservent.3, INFINITY.3, __ppc_set_ppr_med.3, inet.3, j0.3, makecontext.3, printf.3, puts.3, resolver.3, sigsetops.3, elf.5, nscd.conf.5, proc.5, inotify.7, ipv6.7, spufs.7, system_data_types.7: Use Oxford comma
Found using:
pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nand" man? |grep ^man |sort
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15 12:32:31 +00:00
|
|
|
.IR e_shnum ,
|
2010-06-19 10:42:51 +00:00
|
|
|
and
|
2019-12-11 21:16:54 +00:00
|
|
|
.IR e_shstrndx ;
|
2010-06-19 10:42:51 +00:00
|
|
|
in other cases, each field in the initial entry is set to zero.
|
2005-12-15 13:04:00 +00:00
|
|
|
An object file does not have sections for
|
|
|
|
these special indices:
|
2016-01-28 08:58:31 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_UNDEF
|
2016-11-27 11:05:32 +00:00
|
|
|
This value marks an undefined, missing, irrelevant,
|
|
|
|
or otherwise meaningless section reference.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHN_LORESERVE
|
2005-12-15 13:04:00 +00:00
|
|
|
This value specifies the lower bound of the range of reserved indices.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR SHN_LOPROC ", " SHN_HIPROC
|
|
|
|
Values greater in the inclusive range
|
|
|
|
.RB [ SHN_LOPROC ", " SHN_HIPROC ]
|
2005-12-15 13:04:00 +00:00
|
|
|
are reserved for processor-specific semantics.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHN_ABS
|
2005-12-15 13:04:00 +00:00
|
|
|
This value specifies the absolute value for the corresponding reference.
|
|
|
|
For
|
|
|
|
example, a symbol defined relative to section number
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_ABS
|
2005-12-15 13:04:00 +00:00
|
|
|
has an absolute value and is not affected by relocation.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHN_COMMON
|
2016-11-27 11:05:32 +00:00
|
|
|
Symbols defined relative to this section are common symbols,
|
|
|
|
such as FORTRAN COMMON or unallocated C external variables.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHN_HIRESERVE
|
2005-12-15 13:04:00 +00:00
|
|
|
This value specifies the upper bound of the range of reserved indices.
|
|
|
|
The
|
|
|
|
system reserves indices between
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_LORESERVE
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_HIRESERVE ,
|
2005-12-15 13:04:00 +00:00
|
|
|
inclusive.
|
|
|
|
The section header table does not contain entries for the
|
|
|
|
reserved indices.
|
2007-12-03 19:53:53 +00:00
|
|
|
.PP
|
2005-12-15 13:04:00 +00:00
|
|
|
The section header has the following structure:
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t sh_name;
|
|
|
|
uint32_t sh_type;
|
|
|
|
uint32_t sh_flags;
|
|
|
|
Elf32_Addr sh_addr;
|
|
|
|
Elf32_Off sh_offset;
|
|
|
|
uint32_t sh_size;
|
|
|
|
uint32_t sh_link;
|
|
|
|
uint32_t sh_info;
|
|
|
|
uint32_t sh_addralign;
|
|
|
|
uint32_t sh_entsize;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf32_Shdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t sh_name;
|
|
|
|
uint32_t sh_type;
|
|
|
|
uint64_t sh_flags;
|
|
|
|
Elf64_Addr sh_addr;
|
|
|
|
Elf64_Off sh_offset;
|
|
|
|
uint64_t sh_size;
|
|
|
|
uint32_t sh_link;
|
|
|
|
uint32_t sh_info;
|
|
|
|
uint64_t sh_addralign;
|
|
|
|
uint64_t sh_entsize;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf64_Shdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2005-12-15 13:04:00 +00:00
|
|
|
No real differences exist between the 32-bit and 64-bit section headers.
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_name
|
2005-12-15 13:04:00 +00:00
|
|
|
This member specifies the name of the section.
|
|
|
|
Its value is an index
|
|
|
|
into the section header string table section, giving the location of
|
|
|
|
a null-terminated string.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_type
|
2005-12-15 13:04:00 +00:00
|
|
|
This member categorizes the section's contents and semantics.
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NULL
|
2005-12-15 13:04:00 +00:00
|
|
|
This value marks the section header as inactive.
|
|
|
|
It does not
|
|
|
|
have an associated section.
|
|
|
|
Other members of the section header
|
|
|
|
have undefined values.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_PROGBITS
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds information defined by the program, whose
|
|
|
|
format and meaning are determined solely by the program.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_SYMTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a symbol table.
|
|
|
|
Typically,
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_SYMTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
provides symbols for link editing, though it may also be used
|
|
|
|
for dynamic linking.
|
|
|
|
As a complete symbol table, it may contain
|
|
|
|
many symbols unnecessary for dynamic linking.
|
|
|
|
An object file can
|
|
|
|
also contain a
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_DYNSYM
|
2005-12-15 13:04:00 +00:00
|
|
|
section.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_STRTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a string table.
|
|
|
|
An object file may have multiple
|
|
|
|
string table sections.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_RELA
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds relocation entries with explicit addends, such
|
|
|
|
as type
|
2007-12-09 14:27:30 +00:00
|
|
|
.IR Elf32_Rela
|
2005-12-15 13:04:00 +00:00
|
|
|
for the 32-bit class of object files.
|
|
|
|
An object may have multiple
|
|
|
|
relocation sections.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_HASH
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a symbol hash table.
|
|
|
|
An object participating in
|
|
|
|
dynamic linking must contain a symbol hash table.
|
|
|
|
An object file may
|
|
|
|
have only one hash table.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_DYNAMIC
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds information for dynamic linking.
|
|
|
|
An object file may
|
|
|
|
have only one dynamic section.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_NOTE
|
2016-11-27 03:31:37 +00:00
|
|
|
This section holds notes (ElfN_Nhdr).
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_NOBITS
|
2005-12-15 13:04:00 +00:00
|
|
|
A section of this type occupies no space in the file but otherwise
|
|
|
|
resembles
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
Although this section contains no bytes, the
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_offset
|
2005-12-15 13:04:00 +00:00
|
|
|
member contains the conceptual file offset.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_REL
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds relocation offsets without explicit addends, such
|
|
|
|
as type
|
2007-12-09 14:27:30 +00:00
|
|
|
.IR Elf32_Rel
|
2005-12-15 13:04:00 +00:00
|
|
|
for the 32-bit class of object files.
|
|
|
|
An object file may have multiple
|
|
|
|
relocation sections.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_SHLIB
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is reserved but has unspecified semantics.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_DYNSYM
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a minimal set of dynamic linking symbols.
|
|
|
|
An
|
|
|
|
object file can also contain a
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_SYMTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
section.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR SHT_LOPROC ", " SHT_HIPROC
|
|
|
|
Values in the inclusive range
|
|
|
|
.RB [ SHT_LOPROC ", " SHT_HIPROC ]
|
|
|
|
are reserved for processor-specific semantics.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_LOUSER
|
2005-12-15 13:04:00 +00:00
|
|
|
This value specifies the lower bound of the range of indices reserved for
|
|
|
|
application programs.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHT_HIUSER
|
2005-12-15 13:04:00 +00:00
|
|
|
This value specifies the upper bound of the range of indices reserved for
|
|
|
|
application programs.
|
|
|
|
Section types between
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_LOUSER
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_HIUSER
|
2005-12-15 13:04:00 +00:00
|
|
|
may be used by the application, without conflicting with current or future
|
|
|
|
system-defined section types.
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR sh_flags
|
2005-12-15 13:04:00 +00:00
|
|
|
Sections support one-bit flags that describe miscellaneous attributes.
|
|
|
|
If a flag bit is set in
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_flags ,
|
2005-12-15 13:04:00 +00:00
|
|
|
the attribute is
|
2007-12-03 19:53:53 +00:00
|
|
|
"on"
|
2005-12-15 13:04:00 +00:00
|
|
|
for the section.
|
|
|
|
Otherwise, the attribute is
|
2007-12-03 19:53:53 +00:00
|
|
|
"off"
|
2005-12-15 13:04:00 +00:00
|
|
|
or does not apply.
|
|
|
|
Undefined attributes are set to zero.
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE
|
2005-12-15 13:04:00 +00:00
|
|
|
This section contains data that should be writable during process
|
|
|
|
execution.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
This section occupies memory during process execution.
|
|
|
|
Some control
|
|
|
|
sections do not reside in the memory image of an object file.
|
|
|
|
This
|
|
|
|
attribute is off for those sections.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHF_EXECINSTR
|
2005-12-15 13:04:00 +00:00
|
|
|
This section contains executable machine instructions.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR SHF_MASKPROC
|
2005-12-15 13:04:00 +00:00
|
|
|
All bits included in this mask are reserved for processor-specific
|
|
|
|
semantics.
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR sh_addr
|
2005-12-15 13:04:00 +00:00
|
|
|
If this section appears in the memory image of a process, this member
|
|
|
|
holds the address at which the section's first byte should reside.
|
|
|
|
Otherwise, the member contains zero.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_offset
|
2005-12-15 13:04:00 +00:00
|
|
|
This member's value holds the byte offset from the beginning of the file
|
|
|
|
to the first byte in the section.
|
|
|
|
One section type,
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NOBITS ,
|
2005-12-15 13:04:00 +00:00
|
|
|
occupies no space in the file, and its
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_offset
|
2005-12-15 13:04:00 +00:00
|
|
|
member locates the conceptual placement in the file.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_size
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds the section's size in bytes.
|
|
|
|
Unless the section type
|
|
|
|
is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NOBITS ,
|
2005-12-15 13:04:00 +00:00
|
|
|
the section occupies
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_size
|
2005-12-15 13:04:00 +00:00
|
|
|
bytes in the file.
|
|
|
|
A section of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NOBITS
|
intro.1, time.1, adjtimex.2, capget.2, eventfd.2, fcntl.2, getrlimit.2, getsockopt.2, gettimeofday.2, intro.2, ioctl_list.2, ioperm.2, mlock.2, pivot_root.2, poll.2, prctl.2, ptrace.2, sched_setscheduler.2, select_tut.2, semget.2, sigaltstack.2, signalfd.2, sysctl.2, timer_settime.2, timerfd_create.2, wait.2, CPU_SET.3, argz_add.3, assert_perror.3, atexit.3, backtrace.3, bcmp.3, clearenv.3, ctime.3, dl_iterate_phdr.3, dlopen.3, ecvt.3, errno.3, error.3, ether_aton.3, exit.3, fenv.3, ferror.3, finite.3, flockfile.3, fnmatch.3, fpathconf.3, fpclassify.3, ftime.3, ftok.3, ftw.3, fwide.3, getaddrinfo.3, gethostbyname.3, getlogin.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getrpcent.3, getservent.3, glob.3, hsearch.3, inet.3, isalpha.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, longjmp.3, lsearch.3, malloc.3, matherr.3, mblen.3, mbsinit.3, mbtowc.3, on_exit.3, printf.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_equal.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setschedparam.3, pthread_setschedprio.3, ptsname.3, putenv.3, putgrent.3, raise.3, rcmd.3, regex.3, rexec.3, rpc.3, rpmatch.3, rtnetlink.3, scandir.3, sem_init.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, signbit.3, stdio_ext.3, strtod.3, strtol.3, strtoul.3, system.3, termios.3, timeradd.3, tzset.3, ualarm.3, wctomb.3, xdr.3, st.4, tty_ioctl.4, core.5, elf.5, proc.5, bootparam.7, capabilities.7, icmp.7, ip.7, ipv6.7, math_error.7, mdoc.samples.7, mq_overview.7, pthreads.7, raw.7, regex.7, socket.7, tcp.7, tzselect.8: Global fix: s/non-zero/nonzero/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 16:40:55 +00:00
|
|
|
may have a nonzero size, but it occupies no space in the file.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_link
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds a section header table index link, whose interpretation
|
|
|
|
depends on the section type.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_info
|
2005-12-15 13:04:00 +00:00
|
|
|
This member holds extra information, whose interpretation depends on the
|
|
|
|
section type.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_addralign
|
2005-12-15 13:04:00 +00:00
|
|
|
Some sections have address alignment constraints.
|
|
|
|
If a section holds a
|
|
|
|
doubleword, the system must ensure doubleword alignment for the entire
|
|
|
|
section.
|
|
|
|
That is, the value of
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_addr
|
2005-12-15 13:04:00 +00:00
|
|
|
must be congruent to zero, modulo the value of
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR sh_addralign .
|
2005-12-15 13:04:00 +00:00
|
|
|
Only zero and positive integral powers of two are allowed.
|
2016-11-11 08:23:22 +00:00
|
|
|
The value 0 or 1 means that the section has no alignment constraints.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR sh_entsize
|
2005-12-15 13:04:00 +00:00
|
|
|
Some sections hold a table of fixed-sized entries, such as a symbol table.
|
|
|
|
For such a section, this member gives the size in bytes for each entry.
|
|
|
|
This member contains zero if the section does not hold a table of
|
|
|
|
fixed-size entries.
|
2007-12-03 19:53:53 +00:00
|
|
|
.PP
|
2005-12-15 13:04:00 +00:00
|
|
|
Various sections hold program and control information:
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR .bss
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds uninitialized data that contributes to the program's
|
|
|
|
memory image.
|
|
|
|
By definition, the system initializes the data with zeros
|
|
|
|
when the program begins to run.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NOBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute types are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE .
|
|
|
|
.TP
|
|
|
|
.IR .comment
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds version control information.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
No attribute types are used.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .ctors
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds initialized pointers to the C++ constructor functions.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute types are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE .
|
|
|
|
.TP
|
|
|
|
.IR .data
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds initialized data that contribute to the program's
|
|
|
|
memory image.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute types are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE .
|
|
|
|
.TP
|
|
|
|
.IR .data1
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds initialized data that contribute to the program's
|
|
|
|
memory image.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute types are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE .
|
|
|
|
.TP
|
|
|
|
.IR .debug
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds information for symbolic debugging.
|
|
|
|
The contents
|
|
|
|
are unspecified.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
No attribute types are used.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .dtors
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds initialized pointers to the C++ destructor functions.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute types are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE .
|
|
|
|
.TP
|
|
|
|
.IR .dynamic
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds dynamic linking information.
|
|
|
|
The section's attributes
|
|
|
|
will include the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
|
|
|
Whether the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_WRITE
|
2007-12-25 21:30:22 +00:00
|
|
|
bit is set is processor-specific.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_DYNAMIC .
|
2005-12-15 13:04:00 +00:00
|
|
|
See the attributes above.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .dynstr
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds strings needed for dynamic linking, most commonly
|
|
|
|
the strings that represent the names associated with symbol table entries.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_STRTAB .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute type used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .dynsym
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds the dynamic linking symbol table.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_DYNSYM .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .fini
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds executable instructions that contribute to the process
|
|
|
|
termination code.
|
|
|
|
When a program exits normally the system arranges to
|
|
|
|
execute the code in this section.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attributes used are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_EXECINSTR .
|
|
|
|
.TP
|
|
|
|
.IR .gnu.version
|
2007-12-09 14:27:30 +00:00
|
|
|
This section holds the version symbol table, an array of
|
|
|
|
.I ElfN_Half
|
|
|
|
elements.
|
2007-09-23 17:26:09 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_GNU_versym .
|
2007-09-23 17:26:09 +00:00
|
|
|
The attribute type used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .gnu.version_d
|
2008-05-12 16:14:48 +00:00
|
|
|
This section holds the version symbol definitions, a table of
|
2007-12-09 14:27:30 +00:00
|
|
|
.I ElfN_Verdef
|
|
|
|
structures.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_GNU_verdef .
|
2007-09-23 17:26:09 +00:00
|
|
|
The attribute type used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .gnu.version_r
|
2007-09-23 17:26:09 +00:00
|
|
|
This section holds the version symbol needed elements, a table of
|
2007-12-09 14:27:30 +00:00
|
|
|
.I ElfN_Verneed
|
|
|
|
structures.
|
|
|
|
This section is of
|
2007-09-23 17:26:09 +00:00
|
|
|
type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_GNU_versym .
|
2007-09-23 17:26:09 +00:00
|
|
|
The attribute type used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .got
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds the global offset table.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
getcpu.2, getunwind.2, kcmp.2, mmap.2, perf_event_open.2, perfmonctl.2, quotactl.2, restart_syscall.2, btree.3, dbopen.3, hash.3, recno.3, sched_getcpu.3, elf.5, bootparam.7, hier.7, netdevice.7, rtnetlink.7: wfix: "xxxx specific" ==> "xxxx-specific"
2014-01-10 17:16:28 +00:00
|
|
|
The attributes are processor-specific.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .hash
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a symbol hash table.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_HASH .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .init
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds executable instructions that contribute to the process
|
|
|
|
initialization code.
|
2016-11-27 11:05:32 +00:00
|
|
|
When a program starts to run the system arranges to execute
|
|
|
|
the code in this section before calling the main program entry point.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attributes used are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_EXECINSTR .
|
|
|
|
.TP
|
|
|
|
.IR .interp
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds the pathname of a program interpreter.
|
|
|
|
If the file has
|
|
|
|
a loadable segment that includes the section, the section's attributes will
|
|
|
|
include the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
|
|
|
Otherwise, that bit will be off.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
|
|
|
.TP
|
|
|
|
.IR .line
|
2016-11-27 11:05:32 +00:00
|
|
|
This section holds line number information for symbolic debugging,
|
|
|
|
which describes the correspondence between the program source and
|
|
|
|
the machine code.
|
2005-12-15 13:04:00 +00:00
|
|
|
The contents are unspecified.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
No attribute types are used.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .note
|
2016-11-27 03:31:37 +00:00
|
|
|
This section holds various notes.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_NOTE .
|
2005-12-15 13:04:00 +00:00
|
|
|
No attribute types are used.
|
2016-11-27 03:31:37 +00:00
|
|
|
.TP
|
2021-01-21 09:53:59 +00:00
|
|
|
.IR .note.ABI\-tag
|
2018-04-27 12:43:23 +00:00
|
|
|
This section is used to declare the expected run-time ABI of the ELF image.
|
|
|
|
It may include the operating system name and its run-time versions.
|
2016-11-27 03:31:37 +00:00
|
|
|
This section is of type
|
|
|
|
.BR SHT_NOTE .
|
|
|
|
The only attribute used is
|
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
2021-01-21 09:53:59 +00:00
|
|
|
.IR .note.gnu.build\-id
|
2016-11-27 11:05:32 +00:00
|
|
|
This section is used to hold an ID that uniquely identifies
|
2016-11-27 11:06:34 +00:00
|
|
|
the contents of the ELF image.
|
2016-11-27 03:31:37 +00:00
|
|
|
Different files with the same build ID should contain the same executable
|
|
|
|
content.
|
|
|
|
See the
|
2016-11-27 10:22:52 +00:00
|
|
|
.BR \-\-build\-id
|
2016-11-27 03:31:37 +00:00
|
|
|
option to the GNU linker (\fBld\fR (1)) for more details.
|
|
|
|
This section is of type
|
|
|
|
.BR SHT_NOTE .
|
|
|
|
The only attribute used is
|
|
|
|
.BR SHF_ALLOC .
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2021-01-21 09:53:59 +00:00
|
|
|
.IR .note.GNU\-stack
|
2007-09-23 17:26:09 +00:00
|
|
|
This section is used in Linux object files for declaring stack attributes.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2007-09-23 17:26:09 +00:00
|
|
|
The only attribute used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_EXECINSTR .
|
2007-09-23 17:26:09 +00:00
|
|
|
This indicates to the GNU linker that the object file requires an
|
|
|
|
executable stack.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-11-27 03:31:37 +00:00
|
|
|
.IR .note.openbsd.ident
|
2016-11-27 11:05:32 +00:00
|
|
|
OpenBSD native executables usually contain this section
|
|
|
|
to identify themselves so the kernel can bypass any compatibility
|
|
|
|
ELF binary emulation tests when loading the file.
|
2016-11-27 03:31:37 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR .plt
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds the procedure linkage table.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
getcpu.2, getunwind.2, kcmp.2, mmap.2, perf_event_open.2, perfmonctl.2, quotactl.2, restart_syscall.2, btree.3, dbopen.3, hash.3, recno.3, sched_getcpu.3, elf.5, bootparam.7, hier.7, netdevice.7, rtnetlink.7: wfix: "xxxx specific" ==> "xxxx-specific"
2014-01-10 17:16:28 +00:00
|
|
|
The attributes are processor-specific.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .relNAME
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds relocation information as described below.
|
|
|
|
If the file
|
|
|
|
has a loadable segment that includes relocation, the section's attributes
|
|
|
|
will include the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
time.1, get_kernel_syms.2, getitimer.2, open.2, perf_event_open.2, wait.2, alloca.3, bcmp.3, catopen.3, fputwc.3, iconv.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, mbsinit.3, putwchar.3, rcmd.3, rexec.3, sigqueue.3, strverscmp.3, wctrans.3, wctype.3, wcwidth.3, console_codes.4, initrd.4, st.4, elf.5, nss.5, ip.7, netdevice.7, path_resolution.7, socket.7, udp.7, ld.so.8: grfix: s/Otherwise /Otherwise, /
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-28 08:15:47 +00:00
|
|
|
Otherwise, the bit will be off.
|
2005-12-15 13:04:00 +00:00
|
|
|
By convention,
|
2007-12-03 19:53:53 +00:00
|
|
|
"NAME"
|
2005-12-15 13:04:00 +00:00
|
|
|
is supplied by the section to which the relocations apply.
|
|
|
|
Thus a relocation
|
|
|
|
section for
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR .text
|
2005-12-15 13:04:00 +00:00
|
|
|
normally would have the name
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR .rel.text .
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_REL .
|
|
|
|
.TP
|
|
|
|
.IR .relaNAME
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds relocation information as described below.
|
|
|
|
If the file
|
|
|
|
has a loadable segment that includes relocation, the section's attributes
|
|
|
|
will include the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
time.1, get_kernel_syms.2, getitimer.2, open.2, perf_event_open.2, wait.2, alloca.3, bcmp.3, catopen.3, fputwc.3, iconv.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, mbsinit.3, putwchar.3, rcmd.3, rexec.3, sigqueue.3, strverscmp.3, wctrans.3, wctype.3, wcwidth.3, console_codes.4, initrd.4, st.4, elf.5, nss.5, ip.7, netdevice.7, path_resolution.7, socket.7, udp.7, ld.so.8: grfix: s/Otherwise /Otherwise, /
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-28 08:15:47 +00:00
|
|
|
Otherwise, the bit will be off.
|
2005-12-15 13:04:00 +00:00
|
|
|
By convention,
|
2007-12-03 19:53:53 +00:00
|
|
|
"NAME"
|
2005-12-15 13:04:00 +00:00
|
|
|
is supplied by the section to which the relocations apply.
|
|
|
|
Thus a relocation
|
|
|
|
section for
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR .text
|
2005-12-15 13:04:00 +00:00
|
|
|
normally would have the name
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR .rela.text .
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_RELA .
|
|
|
|
.TP
|
|
|
|
.IR .rodata
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds read-only data that typically contributes to a
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
nonwritable segment in the process image.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .rodata1
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds read-only data that typically contributes to a
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
nonwritable segment in the process image.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attribute used is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC .
|
|
|
|
.TP
|
|
|
|
.IR .shstrtab
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds section names.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_STRTAB .
|
2005-12-15 13:04:00 +00:00
|
|
|
No attribute types are used.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR .strtab
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds strings, most commonly the strings that represent the
|
|
|
|
names associated with symbol table entries.
|
|
|
|
If the file has a loadable
|
|
|
|
segment that includes the symbol string table, the section's attributes
|
|
|
|
will include the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
time.1, get_kernel_syms.2, getitimer.2, open.2, perf_event_open.2, wait.2, alloca.3, bcmp.3, catopen.3, fputwc.3, iconv.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, mbsinit.3, putwchar.3, rcmd.3, rexec.3, sigqueue.3, strverscmp.3, wctrans.3, wctype.3, wcwidth.3, console_codes.4, initrd.4, st.4, elf.5, nss.5, ip.7, netdevice.7, path_resolution.7, socket.7, udp.7, ld.so.8: grfix: s/Otherwise /Otherwise, /
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-28 08:15:47 +00:00
|
|
|
Otherwise, the bit will be off.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_STRTAB .
|
|
|
|
.TP
|
|
|
|
.IR .symtab
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds a symbol table.
|
|
|
|
If the file has a loadable segment
|
|
|
|
that includes the symbol table, the section's attributes will include
|
|
|
|
the
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
bit.
|
time.1, get_kernel_syms.2, getitimer.2, open.2, perf_event_open.2, wait.2, alloca.3, bcmp.3, catopen.3, fputwc.3, iconv.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, mbsinit.3, putwchar.3, rcmd.3, rexec.3, sigqueue.3, strverscmp.3, wctrans.3, wctype.3, wcwidth.3, console_codes.4, initrd.4, st.4, elf.5, nss.5, ip.7, netdevice.7, path_resolution.7, socket.7, udp.7, ld.so.8: grfix: s/Otherwise /Otherwise, /
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-28 08:15:47 +00:00
|
|
|
Otherwise, the bit will be off.
|
2005-12-15 13:04:00 +00:00
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_SYMTAB .
|
|
|
|
.TP
|
|
|
|
.IR .text
|
2005-12-15 13:04:00 +00:00
|
|
|
This section holds the
|
2007-12-03 19:53:53 +00:00
|
|
|
"text",
|
2005-12-15 13:04:00 +00:00
|
|
|
or executable instructions, of a program.
|
|
|
|
This section is of type
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHT_PROGBITS .
|
2005-12-15 13:04:00 +00:00
|
|
|
The attributes used are
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_ALLOC
|
2005-12-15 13:04:00 +00:00
|
|
|
and
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHF_EXECINSTR .
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS String and symbol tables
|
2004-11-03 13:51:07 +00:00
|
|
|
String table sections hold null-terminated character sequences, commonly
|
|
|
|
called strings.
|
|
|
|
The object file uses these strings to represent symbol
|
|
|
|
and section names.
|
|
|
|
One references a string as an index into the string
|
|
|
|
table section.
|
|
|
|
The first byte, which is index zero, is defined to hold
|
locale.1, memusage.1, pldd.1, _syscall.2, add_key.2, bind.2, bpf.2, chown.2, clone.2, copy_file_range.2, eventfd.2, execve.2, futex.2, getdents.2, getrlimit.2, ioctl_fat.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, listxattr.2, lseek.2, membarrier.2, memfd_create.2, mmap.2, mprotect.2, msgop.2, open_by_handle_at.2, perf_event_open.2, pipe.2, readdir.2, readlink.2, readv.2, recvmmsg.2, request_key.2, sched_setaffinity.2, seccomp.2, select.2, select_tut.2, sendmmsg.2, setns.2, signalfd.2, spu_run.2, stat.2, sysctl.2, tee.2, timer_create.2, timerfd_create.2, truncate.2, uname.2, unshare.2, userfaultfd.2, ustat.2, wait.2, CPU_SET.3, __ppc_get_timebase.3, argz_add.3, asprintf.3, backtrace.3, basename.3, bswap.3, bzero.3, cacos.3, cacosh.3, catan.3, catanh.3, catgets.3, clock_getcpuclockid.3, confstr.3, ctime.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, fgetws.3, fmemopen.3, fopencookie.3, fputws.3, frexp.3, ftw.3, get_nprocs_conf.3, get_phys_pages.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getgrouplist.3, getifaddrs.3, getline.3, getlogin.3, getopt.3, getpass.3, getprotoent_r.3, getpwnam.3, getservent_r.3, getsubopt.3, glob.3, gnu_get_libc_version.3, hsearch.3, if_nameindex.3, index.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, iswblank.3, iswspace.3, makecontext.3, mallinfo.3, malloc_hook.3, malloc_info.3, mallopt.3, matherr.3, mbrtowc.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mcheck.3, memchr.3, mq_getattr.3, mq_notify.3, newlocale.3, nl_langinfo.3, offsetof.3, perror.3, posix_spawn.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, qsort.3, rand.3, readdir.3, regex.3, rpmatch.3, rtime.3, scanf.3, sem_wait.3, setaliasent.3, setbuf.3, stpcpy.3, stpncpy.3, strcat.3, strchr.3, strcpy.3, strdup.3, strerror.3, strfromd.3, strftime.3, strlen.3, strnlen.3, strsep.3, strstr.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, termios.3, tsearch.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscat.3, wcscpy.3, wcslen.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcsrtombs.3, wcsstr.3, wcstok.3, wcstombs.3, wcwidth.3, wprintf.3, console_codes.4, dsp56k.4, full.4, initrd.4, loop.4, vcs.4, charmap.5, core.5, elf.5, locale.5, proc.5, repertoiremap.5, sysfs.5, termcap.5, aio.7, bpf-helpers.7, cgroups.7, charsets.7, complex.7, fanotify.7, feature_test_macros.7, inotify.7, locale.7, man-pages.7, man.7, pkeys.7, pthreads.7, rtld-audit.7, sock_diag.7, unix.7, user_namespaces.7, utf-8.7: Use '\e' rather than '\\' to get a backslash
Quoting Branden:
*roff escape sequences may sometimes look like C escapes, but that
is misleading. *roff is in part a macro language and that means
recursive expansion to arbitrary depths.
You can get away with "\\" in a context where no macro expansion
is taking place, but try to spell a literal backslash this way in
the argument to a macro and you will likely be unhappy with
results.
Try viewing the attached file with "man -l".
"\e" is the preferred and portable way to get a portable "escape
literal" going back to CSTR #54, the original Bell Labs troff
paper.
groff(7) discusses the issue:
\\ reduces to a single backslash; useful to delay its
interpretation as escape character in copy mode. For a
printable backslash, use \e, or even better \[rs], to be
independent from the current escape character.
As of groff 1.22.4, groff_man(7) does as well:
\e Widely used in man pages to represent a backslash output
glyph. It works reliably as long as the .ec request is
not used, which should never happen in man pages, and it
is slightly more portable than the more exact ‘\(rs’
(“reverse solidus”) escape sequence.
People not concerned with portability to extremely old troffs should
probably just use \(rs (or \[rs]), as it means "the backslash
glyph", not "the glyph corresponding to whatever the current escape
character is".
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2019-02-27 11:57:17 +00:00
|
|
|
a null byte (\(aq\e0\(aq).
|
2004-11-03 13:51:07 +00:00
|
|
|
Similarly, a string table's last byte is defined to
|
2006-01-13 02:09:44 +00:00
|
|
|
hold a null byte, ensuring null termination for all strings.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
An object file's symbol table holds information needed to locate and
|
|
|
|
relocate a program's symbolic definitions and references.
|
|
|
|
A symbol table
|
|
|
|
index is a subscript into this array.
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t st_name;
|
|
|
|
Elf32_Addr st_value;
|
|
|
|
uint32_t st_size;
|
|
|
|
unsigned char st_info;
|
|
|
|
unsigned char st_other;
|
|
|
|
uint16_t st_shndx;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf32_Sym;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
uint32_t st_name;
|
|
|
|
unsigned char st_info;
|
|
|
|
unsigned char st_other;
|
|
|
|
uint16_t st_shndx;
|
|
|
|
Elf64_Addr st_value;
|
|
|
|
uint64_t st_size;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf64_Sym;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2007-04-12 22:42:49 +00:00
|
|
|
The 32-bit and 64-bit versions have the same members, just in a different
|
2005-07-15 12:06:06 +00:00
|
|
|
order.
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR st_name
|
2004-11-03 13:51:07 +00:00
|
|
|
This member holds an index into the object file's symbol string table,
|
|
|
|
which holds character representations of the symbol names.
|
|
|
|
If the value
|
intro.1, time.1, adjtimex.2, capget.2, eventfd.2, fcntl.2, getrlimit.2, getsockopt.2, gettimeofday.2, intro.2, ioctl_list.2, ioperm.2, mlock.2, pivot_root.2, poll.2, prctl.2, ptrace.2, sched_setscheduler.2, select_tut.2, semget.2, sigaltstack.2, signalfd.2, sysctl.2, timer_settime.2, timerfd_create.2, wait.2, CPU_SET.3, argz_add.3, assert_perror.3, atexit.3, backtrace.3, bcmp.3, clearenv.3, ctime.3, dl_iterate_phdr.3, dlopen.3, ecvt.3, errno.3, error.3, ether_aton.3, exit.3, fenv.3, ferror.3, finite.3, flockfile.3, fnmatch.3, fpathconf.3, fpclassify.3, ftime.3, ftok.3, ftw.3, fwide.3, getaddrinfo.3, gethostbyname.3, getlogin.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getrpcent.3, getservent.3, glob.3, hsearch.3, inet.3, isalpha.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, longjmp.3, lsearch.3, malloc.3, matherr.3, mblen.3, mbsinit.3, mbtowc.3, on_exit.3, printf.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_equal.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setschedparam.3, pthread_setschedprio.3, ptsname.3, putenv.3, putgrent.3, raise.3, rcmd.3, regex.3, rexec.3, rpc.3, rpmatch.3, rtnetlink.3, scandir.3, sem_init.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, signbit.3, stdio_ext.3, strtod.3, strtol.3, strtoul.3, system.3, termios.3, timeradd.3, tzset.3, ualarm.3, wctomb.3, xdr.3, st.4, tty_ioctl.4, core.5, elf.5, proc.5, bootparam.7, capabilities.7, icmp.7, ip.7, ipv6.7, math_error.7, mdoc.samples.7, mq_overview.7, pthreads.7, raw.7, regex.7, socket.7, tcp.7, tzselect.8: Global fix: s/non-zero/nonzero/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 16:40:55 +00:00
|
|
|
is nonzero, it represents a string table index that gives the symbol
|
2004-11-03 13:51:07 +00:00
|
|
|
name.
|
2016-04-09 01:17:45 +00:00
|
|
|
Otherwise, the symbol has no name.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR st_value
|
2004-11-03 13:51:07 +00:00
|
|
|
This member gives the value of the associated symbol.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR st_size
|
2004-11-03 13:51:07 +00:00
|
|
|
Many symbols have associated sizes.
|
|
|
|
This member holds zero if the symbol
|
|
|
|
has no size or an unknown size.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR st_info
|
2004-11-03 13:51:07 +00:00
|
|
|
This member specifies the symbol's type and binding attributes:
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR STT_NOTYPE
|
2005-12-15 13:04:00 +00:00
|
|
|
The symbol's type is not defined.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STT_OBJECT
|
2005-12-15 13:04:00 +00:00
|
|
|
The symbol is associated with a data object.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STT_FUNC
|
2005-12-15 13:04:00 +00:00
|
|
|
The symbol is associated with a function or other executable code.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STT_SECTION
|
2005-12-15 13:04:00 +00:00
|
|
|
The symbol is associated with a section.
|
|
|
|
Symbol table entries of
|
|
|
|
this type exist primarily for relocation and normally have
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR STB_LOCAL
|
2005-12-15 13:04:00 +00:00
|
|
|
bindings.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STT_FILE
|
2005-12-15 13:04:00 +00:00
|
|
|
By convention, the symbol's name gives the name of the source file
|
|
|
|
associated with the object file.
|
|
|
|
A file symbol has
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR STB_LOCAL
|
2005-12-15 13:04:00 +00:00
|
|
|
bindings, its section index is
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR SHN_ABS ,
|
2005-12-15 13:04:00 +00:00
|
|
|
and it precedes the other
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR STB_LOCAL
|
2005-12-15 13:04:00 +00:00
|
|
|
symbols of the file, if it is present.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR STT_LOPROC ", " STT_HIPROC
|
|
|
|
Values in the inclusive range
|
|
|
|
.RB [ STT_LOPROC ", " STT_HIPROC ]
|
|
|
|
are reserved for processor-specific semantics.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STB_LOCAL
|
2005-12-15 13:04:00 +00:00
|
|
|
Local symbols are not visible outside the object file containing their
|
|
|
|
definition.
|
|
|
|
Local symbols of the same name may exist in multiple files
|
|
|
|
without interfering with each other.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STB_GLOBAL
|
2005-12-15 13:04:00 +00:00
|
|
|
Global symbols are visible to all object files being combined.
|
|
|
|
One file's
|
|
|
|
definition of a global symbol will satisfy another file's undefined
|
|
|
|
reference to the same symbol.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STB_WEAK
|
2005-12-15 13:04:00 +00:00
|
|
|
Weak symbols resemble global symbols, but their definitions have lower
|
|
|
|
precedence.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR STB_LOPROC ", " STB_HIPROC
|
|
|
|
Values in the inclusive range
|
|
|
|
.RB [ STB_LOPROC ", " STB_HIPROC ]
|
|
|
|
are reserved for processor-specific semantics.
|
2016-01-28 08:37:15 +00:00
|
|
|
.RE
|
2007-12-28 05:38:10 +00:00
|
|
|
.IP
|
2005-12-15 13:04:00 +00:00
|
|
|
There are macros for packing and unpacking the binding and type fields:
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
2016-01-28 09:41:35 +00:00
|
|
|
.TP
|
|
|
|
.BR ELF32_ST_BIND( \fIinfo\fP ) ", " ELF64_ST_BIND( \fIinfo\fP )
|
|
|
|
Extract a binding from an
|
2007-12-29 17:21:41 +00:00
|
|
|
.I st_info
|
|
|
|
value.
|
2016-01-28 09:41:35 +00:00
|
|
|
.TP
|
|
|
|
.BR ELF32_ST_TYPE( \fIinfo ) ", " ELF64_ST_TYPE( \fIinfo\fP )
|
|
|
|
Extract a type from an
|
2007-12-03 19:53:53 +00:00
|
|
|
.I st_info
|
|
|
|
value.
|
2016-01-28 09:41:35 +00:00
|
|
|
.TP
|
|
|
|
.BR ELF32_ST_INFO( \fIbind\fP ", " \fItype\fP ) ", " \
|
|
|
|
ELF64_ST_INFO( \fIbind\fP ", " \fItype\fP )
|
|
|
|
Convert a binding and a type into an
|
2007-12-29 17:21:41 +00:00
|
|
|
.I st_info
|
|
|
|
value.
|
2016-01-28 09:41:35 +00:00
|
|
|
.RE
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR st_other
|
2007-09-23 17:26:09 +00:00
|
|
|
This member defines the symbol visibility.
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
getent.1, localedef.1, clock_nanosleep.2, fcntl.2, getitimer.2, getsockopt.2, inotify_init.2, ioctl.2, mlock.2, mprotect.2, quotactl.2, s390_sthyi.2, semctl.2, shmctl.2, shmget.2, wait.2, CPU_SET.3, aio_init.3, des_crypt.3, fmemopen.3, fopencookie.3, fts.3, getaddrinfo.3, getrpcent.3, lio_listio.3, posix_spawn.3, shm_open.3, st.4, elf.5, group.5, proc.5, services.5, aio.7, feature_test_macros.7, keyrings.7, man-pages.7, sigevent.7, tcp.7, udp.7: Global formatting fix: disfavor nonstandard .TP indents
In many cases, these don't improve readability, and (when stacked)
they sometimes have the side effect of sometimes forcing text
to be justified within a narrow column range.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-02-19 13:22:55 +00:00
|
|
|
.TP
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD 0
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR STV_DEFAULT
|
2016-03-09 18:40:31 +00:00
|
|
|
Default symbol visibility rules.
|
|
|
|
Global and weak symbols are available to other modules;
|
|
|
|
references in the local module can be interposed
|
|
|
|
by definitions in other modules.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STV_INTERNAL
|
2016-03-09 18:40:31 +00:00
|
|
|
Processor-specific hidden class.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STV_HIDDEN
|
2016-03-09 18:41:12 +00:00
|
|
|
Symbol is unavailable to other modules;
|
2016-03-09 18:35:16 +00:00
|
|
|
references in the local module always resolve to the local symbol
|
|
|
|
(i.e., the symbol can't be interposed by definitions in other modules).
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR STV_PROTECTED
|
2016-03-09 18:41:12 +00:00
|
|
|
Symbol is available to other modules,
|
2016-03-09 18:25:22 +00:00
|
|
|
but references in the local module always resolve to the local symbol.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PD
|
|
|
|
.PP
|
2007-09-23 17:26:09 +00:00
|
|
|
There are macros for extracting the visibility type:
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELF32_ST_VISIBILITY (other)
|
2007-09-23 17:26:09 +00:00
|
|
|
or
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELF64_ST_VISIBILITY (other)
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR st_shndx
|
2005-12-15 13:04:00 +00:00
|
|
|
Every symbol table entry is
|
2007-12-03 19:53:53 +00:00
|
|
|
"defined"
|
2005-12-15 13:04:00 +00:00
|
|
|
in relation to some section.
|
|
|
|
This member holds the relevant section
|
|
|
|
header table index.
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS Relocation entries (Rel & Rela)
|
2004-11-03 13:51:07 +00:00
|
|
|
Relocation is the process of connecting symbolic references with
|
|
|
|
symbolic definitions.
|
|
|
|
Relocatable files must have information that
|
|
|
|
describes how to modify their section contents, thus allowing executable
|
2008-03-19 08:56:26 +00:00
|
|
|
and shared object files to hold the right information for a process's
|
2004-11-03 13:51:07 +00:00
|
|
|
program image.
|
|
|
|
Relocation entries are these data.
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
Relocation structures that do not need an addend:
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf32_Addr r_offset;
|
|
|
|
uint32_t r_info;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf32_Rel;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf64_Addr r_offset;
|
|
|
|
uint64_t r_info;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf64_Rel;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
Relocation structures that need an addend:
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf32_Addr r_offset;
|
|
|
|
uint32_t r_info;
|
|
|
|
int32_t r_addend;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf32_Rela;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2004-11-03 13:51:07 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf64_Addr r_offset;
|
|
|
|
uint64_t r_info;
|
|
|
|
int64_t r_addend;
|
2004-11-03 13:51:07 +00:00
|
|
|
} Elf64_Rela;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR r_offset
|
2005-12-15 13:04:00 +00:00
|
|
|
This member gives the location at which to apply the relocation action.
|
|
|
|
For a relocatable file, the value is the byte offset from the beginning
|
|
|
|
of the section to the storage unit affected by the relocation.
|
|
|
|
For an
|
|
|
|
executable file or shared object, the value is the virtual address of
|
|
|
|
the storage unit affected by the relocation.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR r_info
|
2005-12-15 13:04:00 +00:00
|
|
|
This member gives both the symbol table index with respect to which the
|
|
|
|
relocation must be made and the type of relocation to apply.
|
|
|
|
Relocation
|
getcpu.2, getunwind.2, kcmp.2, mmap.2, perf_event_open.2, perfmonctl.2, quotactl.2, restart_syscall.2, btree.3, dbopen.3, hash.3, recno.3, sched_getcpu.3, elf.5, bootparam.7, hier.7, netdevice.7, rtnetlink.7: wfix: "xxxx specific" ==> "xxxx-specific"
2014-01-10 17:16:28 +00:00
|
|
|
types are processor-specific.
|
2005-12-15 13:04:00 +00:00
|
|
|
When the text refers to a relocation
|
|
|
|
entry's relocation type or symbol table index, it means the result of
|
|
|
|
applying
|
2012-12-18 23:49:48 +00:00
|
|
|
.BR ELF[32|64]_R_TYPE
|
2005-12-15 13:04:00 +00:00
|
|
|
or
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR ELF[32|64]_R_SYM ,
|
2005-12-15 13:04:00 +00:00
|
|
|
respectively, to the entry's
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR r_info
|
2005-12-15 13:04:00 +00:00
|
|
|
member.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR r_addend
|
2005-12-15 13:04:00 +00:00
|
|
|
This member specifies a constant addend used to compute the value to be
|
|
|
|
stored into the relocatable field.
|
2016-11-17 15:41:36 +00:00
|
|
|
.\"
|
|
|
|
.SS Dynamic tags (Dyn)
|
2016-01-28 09:22:34 +00:00
|
|
|
The
|
|
|
|
.I .dynamic
|
|
|
|
section contains a series of structures that hold relevant
|
2007-04-12 22:42:49 +00:00
|
|
|
dynamic linking information.
|
2016-01-28 07:48:41 +00:00
|
|
|
The
|
|
|
|
.I d_tag
|
|
|
|
member controls the interpretation
|
|
|
|
of
|
|
|
|
.IR d_un .
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf32_Sword d_tag;
|
|
|
|
union {
|
2007-12-03 19:53:53 +00:00
|
|
|
Elf32_Word d_val;
|
|
|
|
Elf32_Addr d_ptr;
|
2007-06-20 21:04:13 +00:00
|
|
|
} d_un;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf32_Dyn;
|
|
|
|
extern Elf32_Dyn _DYNAMIC[];
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2005-12-15 13:04:00 +00:00
|
|
|
typedef struct {
|
2007-06-20 21:04:13 +00:00
|
|
|
Elf64_Sxword d_tag;
|
|
|
|
union {
|
|
|
|
Elf64_Xword d_val;
|
|
|
|
Elf64_Addr d_ptr;
|
|
|
|
} d_un;
|
2005-12-15 13:04:00 +00:00
|
|
|
} Elf64_Dyn;
|
|
|
|
extern Elf64_Dyn _DYNAMIC[];
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2007-12-03 19:53:53 +00:00
|
|
|
.in
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2007-12-03 19:53:53 +00:00
|
|
|
.IR d_tag
|
2005-12-15 13:04:00 +00:00
|
|
|
This member may have any of the following values:
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP 12
|
|
|
|
.BR DT_NULL
|
2005-12-15 13:04:00 +00:00
|
|
|
Marks end of dynamic section
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_NEEDED
|
2005-12-15 13:04:00 +00:00
|
|
|
String table offset to name of a needed library
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_PLTRELSZ
|
2016-01-28 08:48:05 +00:00
|
|
|
Size in bytes of PLT relocation entries
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_PLTGOT
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of PLT and/or GOT
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_HASH
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of symbol hash table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_STRTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of string table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_SYMTAB
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of symbol table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RELA
|
2016-01-28 08:48:05 +00:00
|
|
|
Address of Rela relocation table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RELASZ
|
2016-01-28 08:48:05 +00:00
|
|
|
Size in bytes of the Rela relocation table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RELAENT
|
2016-01-28 08:48:05 +00:00
|
|
|
Size in bytes of a Rela relocation table entry
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_STRSZ
|
2005-12-15 13:04:00 +00:00
|
|
|
Size in bytes of string table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_SYMENT
|
2005-12-15 13:04:00 +00:00
|
|
|
Size in bytes of a symbol table entry
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_INIT
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of the initialization function
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_FINI
|
2005-12-15 13:04:00 +00:00
|
|
|
Address of the termination function
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_SONAME
|
2005-12-15 13:04:00 +00:00
|
|
|
String table offset to name of shared object
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RPATH
|
2005-12-15 13:04:00 +00:00
|
|
|
String table offset to library search path (deprecated)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_SYMBOLIC
|
2005-12-15 13:04:00 +00:00
|
|
|
Alert linker to search this shared object before the executable for symbols
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_REL
|
2016-01-28 08:48:05 +00:00
|
|
|
Address of Rel relocation table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RELSZ
|
2016-01-28 08:48:05 +00:00
|
|
|
Size in bytes of Rel relocation table
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RELENT
|
2005-12-15 13:04:00 +00:00
|
|
|
Size in bytes of a Rel table entry
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_PLTREL
|
2016-01-28 08:48:05 +00:00
|
|
|
Type of relocation entry to which the PLT refers (Rela or Rel)
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_DEBUG
|
2005-12-15 13:04:00 +00:00
|
|
|
Undefined use for debugging
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_TEXTREL
|
2016-01-28 08:48:05 +00:00
|
|
|
Absence of this entry indicates that no relocation entries should
|
|
|
|
apply to a nonwritable segment
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_JMPREL
|
2016-01-28 08:48:05 +00:00
|
|
|
Address of relocation entries associated solely with the PLT
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_BIND_NOW
|
2016-04-09 01:14:17 +00:00
|
|
|
Instruct dynamic linker to process all relocations before
|
2016-01-28 08:48:05 +00:00
|
|
|
transferring control to the executable
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.BR DT_RUNPATH
|
2005-12-15 13:04:00 +00:00
|
|
|
String table offset to library search path
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
2016-01-28 08:35:59 +00:00
|
|
|
.BR DT_LOPROC ", " DT_HIPROC
|
|
|
|
Values in the inclusive range
|
|
|
|
.RB [ DT_LOPROC ", " DT_HIPROC ]
|
|
|
|
are reserved for processor-specific semantics
|
2007-12-03 19:53:53 +00:00
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.IR d_val
|
2005-12-15 13:04:00 +00:00
|
|
|
This member represents integer values with various interpretations.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.IR d_ptr
|
2007-04-12 22:42:49 +00:00
|
|
|
This member represents program virtual addresses.
|
|
|
|
When interpreting
|
|
|
|
these addresses, the actual address should be computed based on the
|
|
|
|
original file value and memory base address.
|
|
|
|
Files do not contain
|
2005-12-15 13:04:00 +00:00
|
|
|
relocation entries to fixup these addresses.
|
2007-12-03 19:53:53 +00:00
|
|
|
.TP
|
|
|
|
.I _DYNAMIC
|
2016-01-28 09:22:34 +00:00
|
|
|
Array containing all the dynamic structures in the
|
|
|
|
.I .dynamic
|
|
|
|
section.
|
2005-12-15 13:04:00 +00:00
|
|
|
This is automatically populated by the linker.
|
2016-11-27 03:31:37 +00:00
|
|
|
.\" GABI ELF Reference for Note Sections:
|
|
|
|
.\" http://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section
|
|
|
|
.\"
|
|
|
|
.\" Note that it implies the sizes and alignments of notes depend on the ELF
|
|
|
|
.\" size (e.g. 32-bit ELFs have three 4-byte words and use 4-byte alignment
|
|
|
|
.\" while 64-bit ELFs use 8-byte words & alignment), but that is not the case
|
|
|
|
.\" in the real world. Notes always have three 4-byte words as can be seen
|
|
|
|
.\" in the source links below (remember that Elf64_Word is a 32-bit quantity).
|
|
|
|
.\" glibc: https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/elf.h;h=9e59b3275917549af0cebe1f2de9ded3b7b10bf2#l1173
|
|
|
|
.\" binutils: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=binutils/readelf.c;h=274ddd17266aef6e4ad1f67af8a13a21500ff2af#l15943
|
|
|
|
.\" Linux: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/elf.h?h=v4.8#n422
|
|
|
|
.\" Solaris: https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-18048.html
|
|
|
|
.\" FreeBSD: https://svnweb.freebsd.org/base/head/sys/sys/elf_common.h?revision=303677&view=markup#l33
|
|
|
|
.\" NetBSD: https://www.netbsd.org/docs/kernel/elf-notes.html
|
|
|
|
.\" OpenBSD: https://github.com/openbsd/src/blob/master/sys/sys/exec_elf.h#L533
|
2016-11-27 10:22:52 +00:00
|
|
|
.\"
|
2016-11-27 03:31:37 +00:00
|
|
|
.SS Notes (Nhdr)
|
|
|
|
ELF notes allow for appending arbitrary information for the system to use.
|
2016-11-27 10:22:52 +00:00
|
|
|
They are largely used by core files
|
|
|
|
.RI ( e_type
|
2016-11-27 18:15:02 +00:00
|
|
|
of
|
2016-11-27 10:22:52 +00:00
|
|
|
.BR ET_CORE ),
|
2016-11-27 03:31:37 +00:00
|
|
|
but many projects define their own set of extensions.
|
2016-11-27 10:22:52 +00:00
|
|
|
For example,
|
2016-11-27 18:15:02 +00:00
|
|
|
the GNU tool chain uses ELF notes to pass information from
|
2016-11-27 10:56:25 +00:00
|
|
|
the linker to the C library.
|
2017-08-16 00:59:28 +00:00
|
|
|
.PP
|
2016-11-27 10:22:52 +00:00
|
|
|
Note sections contain a series of notes (see the
|
|
|
|
.I struct
|
|
|
|
definitions below).
|
2016-11-27 03:31:37 +00:00
|
|
|
Each note is followed by the name field (whose length is defined in
|
|
|
|
\fIn_namesz\fR) and then by the descriptor field (whose length is defined in
|
|
|
|
\fIn_descsz\fR) and whose starting address has a 4 byte alignment.
|
|
|
|
Neither field is defined in the note struct due to their arbitrary lengths.
|
2017-08-16 00:59:28 +00:00
|
|
|
.PP
|
2016-11-27 03:31:37 +00:00
|
|
|
An example for parsing out two consecutive notes should clarify their layout
|
2016-11-27 10:22:52 +00:00
|
|
|
in memory:
|
2017-08-16 00:59:28 +00:00
|
|
|
.PP
|
2016-11-27 03:31:37 +00:00
|
|
|
.in +4n
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EX
|
2016-11-27 03:31:37 +00:00
|
|
|
void *memory, *name, *desc;
|
|
|
|
Elf64_Nhdr *note, *next_note;
|
|
|
|
|
ioctl_ns.2, keyctl.2, memfd_create.2, pidfd_send_signal.2, poll.2, seccomp.2, signalfd.2, timerfd_create.2, unshare.2, dlinfo.3, duplocale.3, fopencookie.3, getgrouplist.3, getifaddrs.3, getprotoent_r.3, getservent_r.3, insque.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_create.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, qsort.3, sem_wait.3, core.5, elf.5, aio.7, epoll.7, pkeys.7, system_data_types.7, unix.7: Use periods more consistently inside code comments
In general, complete sentences in free-standing comments
should be terminated by periods.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27 10:42:50 +00:00
|
|
|
/* The buffer is pointing to the start of the section/segment. */
|
2016-11-27 03:31:37 +00:00
|
|
|
note = memory;
|
2016-11-27 10:22:52 +00:00
|
|
|
|
ioctl_ns.2, keyctl.2, memfd_create.2, pidfd_send_signal.2, poll.2, seccomp.2, signalfd.2, timerfd_create.2, unshare.2, dlinfo.3, duplocale.3, fopencookie.3, getgrouplist.3, getifaddrs.3, getprotoent_r.3, getservent_r.3, insque.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_create.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, qsort.3, sem_wait.3, core.5, elf.5, aio.7, epoll.7, pkeys.7, system_data_types.7, unix.7: Use periods more consistently inside code comments
In general, complete sentences in free-standing comments
should be terminated by periods.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27 10:42:50 +00:00
|
|
|
/* If the name is defined, it follows the note. */
|
2021-01-09 22:21:02 +00:00
|
|
|
name = note\->n_namesz == 0 ? NULL : memory + sizeof(*note);
|
2016-11-27 10:22:52 +00:00
|
|
|
|
|
|
|
/* If the descriptor is defined, it follows the name
|
ioctl_ns.2, keyctl.2, memfd_create.2, pidfd_send_signal.2, poll.2, seccomp.2, signalfd.2, timerfd_create.2, unshare.2, dlinfo.3, duplocale.3, fopencookie.3, getgrouplist.3, getifaddrs.3, getprotoent_r.3, getservent_r.3, insque.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_create.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, qsort.3, sem_wait.3, core.5, elf.5, aio.7, epoll.7, pkeys.7, system_data_types.7, unix.7: Use periods more consistently inside code comments
In general, complete sentences in free-standing comments
should be terminated by periods.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27 10:42:50 +00:00
|
|
|
(with alignment). */
|
2016-11-27 10:22:52 +00:00
|
|
|
|
2021-01-09 22:21:02 +00:00
|
|
|
desc = note\->n_descsz == 0 ? NULL :
|
|
|
|
memory + sizeof(*note) + ALIGN_UP(note\->n_namesz, 4);
|
2016-11-27 10:22:52 +00:00
|
|
|
|
ioctl_ns.2, keyctl.2, memfd_create.2, pidfd_send_signal.2, poll.2, seccomp.2, signalfd.2, timerfd_create.2, unshare.2, dlinfo.3, duplocale.3, fopencookie.3, getgrouplist.3, getifaddrs.3, getprotoent_r.3, getservent_r.3, insque.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_create.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, qsort.3, sem_wait.3, core.5, elf.5, aio.7, epoll.7, pkeys.7, system_data_types.7, unix.7: Use periods more consistently inside code comments
In general, complete sentences in free-standing comments
should be terminated by periods.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27 10:42:50 +00:00
|
|
|
/* The next note follows both (with alignment). */
|
2016-11-27 03:31:37 +00:00
|
|
|
next_note = memory + sizeof(*note) +
|
2021-01-09 22:21:02 +00:00
|
|
|
ALIGN_UP(note\->n_namesz, 4) +
|
|
|
|
ALIGN_UP(note\->n_descsz, 4);
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2016-11-27 03:31:37 +00:00
|
|
|
.in
|
2017-08-16 00:59:28 +00:00
|
|
|
.PP
|
2016-11-27 03:31:37 +00:00
|
|
|
Keep in mind that the interpretation of
|
|
|
|
.I n_type
|
|
|
|
depends on the namespace defined by the
|
|
|
|
.I n_namesz
|
|
|
|
field.
|
2016-11-27 18:15:02 +00:00
|
|
|
If the
|
|
|
|
.I n_namesz
|
|
|
|
field is not set (e.g., is 0), then there are two sets of notes:
|
|
|
|
one for core files and one for all other ELF types.
|
|
|
|
If the namespace is unknown, then tools will usually fallback to these sets
|
|
|
|
of notes as well.
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2016-11-27 03:31:37 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2016-11-27 03:31:37 +00:00
|
|
|
typedef struct {
|
|
|
|
Elf32_Word n_namesz;
|
|
|
|
Elf32_Word n_descsz;
|
|
|
|
Elf32_Word n_type;
|
|
|
|
} Elf32_Nhdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2016-11-27 03:31:37 +00:00
|
|
|
.in
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.PP
|
2016-11-27 03:31:37 +00:00
|
|
|
.in +4n
|
ioctl_console.2, ioctl_getfsmap.2, ioctl_iflags.2, ioctl_list.2, ioctl_ns.2, kcmp.2, kexec_load.2, keyctl.2, link.2, mmap.2, modify_ldt.2, msgctl.2, poll.2, query_module.2, quotactl.2, recv.2, recvmmsg.2, sched_setscheduler.2, seccomp.2, select.2, semctl.2, semop.2, send.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sysinfo.2, timer_create.2, timerfd_create.2, uname.2, unshare.2, userfaultfd.2, ustat.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, backtrace.3, bswap.3, btree.3, clock_getcpuclockid.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, fmemopen.3, fopencookie.3, frexp.3, fts.3, ftw.3, getaddrinfo.3, getaddrinfo_a.3, getcontext.3, getgrouplist.3, getifaddrs.3, getipnodebyname.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getrpcent.3, getservent_r.3, getttyent.3, getumask.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, inet.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallopt.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, posix_openpt.3, printf.3, pthread_setname_np.3, pthread_setschedparam.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, sigvec.3, stdarg.3, strcat.3, strcpy.3, strftime.3, strtol.3, toupper.3, ttyslot.3, fuse.4, loop.4, st.4, elf.5, cgroup_namespaces.7, cgroups.7, feature_test_macros.7, inode.7, inotify.7, keyrings.7, man-pages.7, math_error.7, mount_namespaces.7, mq_overview.7, pthreads.7, sched.7, session-keyring.7, udplite.7, unix.7, vdso.7: Use consistent markup for code snippets
The preferred form is
.PP/.IP
.in +4n
.EX
<code>
.EE
.in
.PP/.IP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:37:55 +00:00
|
|
|
.EX
|
2016-11-27 03:31:37 +00:00
|
|
|
typedef struct {
|
|
|
|
Elf64_Word n_namesz;
|
|
|
|
Elf64_Word n_descsz;
|
|
|
|
Elf64_Word n_type;
|
|
|
|
} Elf64_Nhdr;
|
execve.2, ioctl_console.2, ioctl_iflags.2, ioctl_ns.2, ioctl_userfaultfd.2, kcmp.2, kexec_load.2, keyctl.2, link.2, listxattr.2, membarrier.2, memfd_create.2, mmap.2, modify_ldt.2, mprotect.2, msgctl.2, nanosleep.2, open_by_handle_at.2, perf_event_open.2, poll.2, posix_fadvise.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, readdir.2, readv.2, recv.2, recvmmsg.2, request_key.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setattr.2, sched_setscheduler.2, seccomp.2, select.2, select_tut.2, semctl.2, semop.2, send.2, sendmmsg.2, set_thread_area.2, setns.2, shmctl.2, shmget.2, sigaction.2, sigaltstack.2, signal.2, sigwaitinfo.2, stat.2, statfs.2, statx.2, sync_file_range.2, syscall.2, sysctl.2, sysinfo.2, tee.2, timer_create.2, timer_settime.2, timerfd_create.2, unshare.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vmsplice.2, wait.2, adjtime.3, aio_init.3, backtrace.3, basename.3, bswap.3, btree.3, clock_getcpuclockid.3, cmsg.3, confstr.3, dbopen.3, dl_iterate_phdr.3, dladdr.3, dlinfo.3, dlopen.3, duplocale.3, encrypt.3, end.3, endian.3, err.3, errno.3, ether_aton.3, fgetgrent.3, fgetpwent.3, fmemopen.3, frexp.3, ftime.3, fts.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, getifaddrs.3, getipnodebyname.3, getmntent.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, glob.3, gnu_get_libc_version.3, hash.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_pton.3, insque.3, isalpha.3, makecontext.3, mallinfo.3, malloc_info.3, mallopt.3, matherr.3, mbstowcs.3, mcheck.3, memchr.3, mq_getattr.3, mq_open.3, mq_receive.3, mq_send.3, mtrace.3, newlocale.3, ntp_gettime.3, posix_openpt.3, printf.3, pthread_attr_init.3, pthread_attr_setschedparam.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_tryjoin_np.3, readdir.3, realpath.3, recno.3, regex.3, rpc.3, scanf.3, sched_getcpu.3, sem_wait.3, setaliasent.3, sigqueue.3, statvfs.3, strcat.3, strcpy.3, strftime.3, strtok.3, strtol.3, strverscmp.3, toupper.3, ttyslot.3, xdr.3, fuse.4, loop.4, rtc.4, st.4, acct.5, core.5, elf.5, slabinfo.5, aio.7, arp.7, capabilities.7, cgroup_namespaces.7, cgroups.7, ddp.7, fanotify.7, feature_test_macros.7, inode.7, inotify.7, ip.7, keyrings.7, locale.7, mount_namespaces.7, namespaces.7, netdevice.7, netlink.7, packet.7, pkeys.7, pthreads.7, sched.7, session-keyring.7, sock_diag.7, socket.7, spufs.7, udplite.7, unix.7, user_namespaces.7, vdso.7, x25.7, ld.so.8: Use consistent markup for code snippets
Change .nf/.fi to .EX/.EE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-18 19:52:46 +00:00
|
|
|
.EE
|
2016-11-27 03:31:37 +00:00
|
|
|
.in
|
2021-02-16 09:51:07 +00:00
|
|
|
.TP
|
2016-11-27 03:31:37 +00:00
|
|
|
.IR n_namesz
|
|
|
|
The length of the name field in bytes.
|
|
|
|
The contents will immediately follow this note in memory.
|
|
|
|
The name is null terminated.
|
|
|
|
For example, if the name is "GNU", then
|
|
|
|
.I n_namesz
|
|
|
|
will be set to 4.
|
|
|
|
.TP
|
|
|
|
.IR n_descsz
|
|
|
|
The length of the descriptor field in bytes.
|
|
|
|
The contents will immediately follow the name field in memory.
|
|
|
|
.TP
|
|
|
|
.IR n_type
|
|
|
|
Depending on the value of the name field, this member may have any of the
|
|
|
|
following values:
|
2021-02-16 09:51:07 +00:00
|
|
|
.RS
|
2016-11-27 03:31:37 +00:00
|
|
|
.TP 5
|
|
|
|
.B Core files (e_type = ET_CORE)
|
|
|
|
Notes used by all core files.
|
|
|
|
These are highly operating system or architecture specific and often require
|
|
|
|
close coordination with kernels, C libraries, and debuggers.
|
2016-11-27 18:15:02 +00:00
|
|
|
These are used when the namespace is the default (i.e.,
|
2016-11-28 21:17:38 +00:00
|
|
|
.I n_namesz
|
2016-11-27 18:15:02 +00:00
|
|
|
will be set to 0), or a fallback when the namespace is unknown.
|
2016-11-27 03:31:37 +00:00
|
|
|
.RS
|
|
|
|
.TP 21
|
|
|
|
.PD 0
|
|
|
|
.B NT_PRSTATUS
|
|
|
|
prstatus struct
|
|
|
|
.TP
|
|
|
|
.B NT_FPREGSET
|
|
|
|
fpregset struct
|
|
|
|
.TP
|
|
|
|
.B NT_PRPSINFO
|
|
|
|
prpsinfo struct
|
|
|
|
.TP
|
|
|
|
.B NT_PRXREG
|
|
|
|
prxregset struct
|
|
|
|
.TP
|
|
|
|
.B NT_TASKSTRUCT
|
|
|
|
task structure
|
|
|
|
.TP
|
|
|
|
.B NT_PLATFORM
|
|
|
|
String from sysinfo(SI_PLATFORM)
|
|
|
|
.TP
|
|
|
|
.B NT_AUXV
|
|
|
|
auxv array
|
|
|
|
.TP
|
|
|
|
.B NT_GWINDOWS
|
|
|
|
gwindows struct
|
|
|
|
.TP
|
|
|
|
.B NT_ASRS
|
|
|
|
asrset struct
|
|
|
|
.TP
|
|
|
|
.B NT_PSTATUS
|
|
|
|
pstatus struct
|
|
|
|
.TP
|
|
|
|
.B NT_PSINFO
|
|
|
|
psinfo struct
|
|
|
|
.TP
|
|
|
|
.B NT_PRCRED
|
|
|
|
prcred struct
|
|
|
|
.TP
|
|
|
|
.B NT_UTSNAME
|
|
|
|
utsname struct
|
|
|
|
.TP
|
|
|
|
.B NT_LWPSTATUS
|
|
|
|
lwpstatus struct
|
|
|
|
.TP
|
|
|
|
.B NT_LWPSINFO
|
|
|
|
lwpinfo struct
|
|
|
|
.TP
|
|
|
|
.B NT_PRFPXREG
|
|
|
|
fprxregset struct
|
|
|
|
.TP
|
|
|
|
.B NT_SIGINFO
|
|
|
|
siginfo_t (size might increase over time)
|
|
|
|
.TP
|
|
|
|
.B NT_FILE
|
|
|
|
Contains information about mapped files
|
|
|
|
.TP
|
|
|
|
.B NT_PRXFPREG
|
|
|
|
user_fxsr_struct
|
|
|
|
.TP
|
|
|
|
.B NT_PPC_VMX
|
|
|
|
PowerPC Altivec/VMX registers
|
|
|
|
.TP
|
|
|
|
.B NT_PPC_SPE
|
|
|
|
PowerPC SPE/EVR registers
|
|
|
|
.TP
|
|
|
|
.B NT_PPC_VSX
|
|
|
|
PowerPC VSX registers
|
|
|
|
.TP
|
|
|
|
.B NT_386_TLS
|
|
|
|
i386 TLS slots (struct user_desc)
|
|
|
|
.TP
|
|
|
|
.B NT_386_IOPERM
|
|
|
|
x86 io permission bitmap (1=deny)
|
|
|
|
.TP
|
|
|
|
.B NT_X86_XSTATE
|
|
|
|
x86 extended state using xsave
|
|
|
|
.TP
|
|
|
|
.B NT_S390_HIGH_GPRS
|
|
|
|
s390 upper register halves
|
|
|
|
.TP
|
|
|
|
.B NT_S390_TIMER
|
|
|
|
s390 timer register
|
|
|
|
.TP
|
|
|
|
.B NT_S390_TODCMP
|
|
|
|
s390 time-of-day (TOD) clock comparator register
|
|
|
|
.TP
|
|
|
|
.B NT_S390_TODPREG
|
|
|
|
s390 time-of-day (TOD) programmable register
|
|
|
|
.TP
|
|
|
|
.B NT_S390_CTRS
|
|
|
|
s390 control registers
|
|
|
|
.TP
|
|
|
|
.B NT_S390_PREFIX
|
|
|
|
s390 prefix register
|
|
|
|
.TP
|
|
|
|
.B NT_S390_LAST_BREAK
|
|
|
|
s390 breaking event address
|
|
|
|
.TP
|
|
|
|
.B NT_S390_SYSTEM_CALL
|
|
|
|
s390 system call restart data
|
|
|
|
.TP
|
|
|
|
.B NT_S390_TDB
|
|
|
|
s390 transaction diagnostic block
|
|
|
|
.TP
|
|
|
|
.B NT_ARM_VFP
|
|
|
|
ARM VFP/NEON registers
|
|
|
|
.TP
|
|
|
|
.B NT_ARM_TLS
|
|
|
|
ARM TLS register
|
|
|
|
.TP
|
|
|
|
.B NT_ARM_HW_BREAK
|
|
|
|
ARM hardware breakpoint registers
|
|
|
|
.TP
|
|
|
|
.B NT_ARM_HW_WATCH
|
|
|
|
ARM hardware watchpoint registers
|
|
|
|
.TP
|
|
|
|
.B NT_ARM_SYSTEM_CALL
|
|
|
|
ARM system call number
|
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.B n_name = GNU
|
|
|
|
Extensions used by the GNU tool chain.
|
|
|
|
.RS
|
2016-11-27 10:22:52 +00:00
|
|
|
.TP
|
2016-11-27 03:31:37 +00:00
|
|
|
.B NT_GNU_ABI_TAG
|
2016-11-28 21:19:31 +00:00
|
|
|
Operating system (OS) ABI information.
|
2016-11-27 03:31:37 +00:00
|
|
|
The desc field will be 4 words:
|
2017-08-16 00:59:28 +00:00
|
|
|
.IP
|
2016-11-27 10:22:52 +00:00
|
|
|
.PD 0
|
|
|
|
.RS
|
|
|
|
.IP \(bu 2
|
|
|
|
word 0: OS descriptor
|
2016-11-28 21:19:31 +00:00
|
|
|
(\fBELF_NOTE_OS_LINUX\fR, \fBELF_NOTE_OS_GNU\fR, and so on)`
|
2016-11-27 10:22:52 +00:00
|
|
|
.IP \(bu
|
|
|
|
word 1: major version of the ABI
|
|
|
|
.IP \(bu
|
|
|
|
word 2: minor version of the ABI
|
|
|
|
.IP \(bu
|
|
|
|
word 3: subminor version of the ABI
|
|
|
|
.RE
|
|
|
|
.PD
|
2016-11-27 03:31:37 +00:00
|
|
|
.TP
|
|
|
|
.B NT_GNU_HWCAP
|
|
|
|
Synthetic hwcap information.
|
|
|
|
The desc field begins with two words:
|
2017-08-16 00:59:28 +00:00
|
|
|
.IP
|
2016-11-27 10:22:52 +00:00
|
|
|
.PD 0
|
|
|
|
.RS
|
|
|
|
.IP \(bu 2
|
|
|
|
word 0: number of entries
|
|
|
|
.IP \(bu
|
|
|
|
word 1: bit mask of enabled entries
|
|
|
|
.RE
|
|
|
|
.PD
|
|
|
|
.IP
|
2016-11-27 03:31:37 +00:00
|
|
|
Then follow variable-length entries, one byte followed by a null-terminated
|
|
|
|
hwcap name string.
|
2016-11-27 10:22:52 +00:00
|
|
|
The byte gives the bit number to test if enabled, (1U << bit) & bit mask.
|
2016-11-27 03:31:37 +00:00
|
|
|
.TP
|
|
|
|
.B NT_GNU_BUILD_ID
|
2016-11-27 10:22:52 +00:00
|
|
|
Unique build ID as generated by the GNU
|
|
|
|
.BR ld (1)
|
|
|
|
.BR \-\-build\-id
|
|
|
|
option.
|
2016-11-27 03:31:37 +00:00
|
|
|
The desc consists of any nonzero number of bytes.
|
|
|
|
.TP
|
|
|
|
.B NT_GNU_GOLD_VERSION
|
|
|
|
The desc contains the GNU Gold linker version used.
|
|
|
|
.RE
|
|
|
|
.TP
|
2016-11-27 18:15:02 +00:00
|
|
|
.B Default/unknown namespace (e_type != ET_CORE)
|
|
|
|
These are used when the namespace is the default (i.e.,
|
2016-11-28 21:17:38 +00:00
|
|
|
.I n_namesz
|
2016-11-27 18:15:02 +00:00
|
|
|
will be set to 0), or a fallback when the namespace is unknown.
|
2016-11-27 03:31:37 +00:00
|
|
|
.RS
|
2020-12-18 20:16:53 +00:00
|
|
|
.TP 12
|
2016-11-27 03:31:37 +00:00
|
|
|
.PD 0
|
|
|
|
.B NT_VERSION
|
|
|
|
A version string of some sort.
|
|
|
|
.TP
|
|
|
|
.B NT_ARCH
|
|
|
|
Architecture information.
|
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.RE
|
2007-12-03 19:53:53 +00:00
|
|
|
.SH NOTES
|
|
|
|
.\" OpenBSD
|
2007-11-16 06:31:40 +00:00
|
|
|
.\" ELF support first appeared in
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" OpenBSD 1.2,
|
2007-11-16 06:31:40 +00:00
|
|
|
.\" although not all supported platforms use it as the native
|
|
|
|
.\" binary file format.
|
|
|
|
ELF first appeared in
|
2007-12-03 19:53:53 +00:00
|
|
|
System V.
|
2007-05-16 18:25:50 +00:00
|
|
|
The ELF format is an adopted standard.
|
2010-06-19 10:42:51 +00:00
|
|
|
.PP
|
|
|
|
The extensions for
|
|
|
|
.IR e_phnum ,
|
getent.1, fanotify_mark.2, fcntl.2, futex.2, membarrier.2, mmap.2, mount.2, msgctl.2, readv.2, semctl.2, set_mempolicy.2, shmctl.2, syscalls.2, abs.3, bstring.3, btree.3, ctime.3, drand48.3, fgetc.3, fopen.3, gethostbyname.3, getnetent.3, getprotoent.3, getservent.3, INFINITY.3, __ppc_set_ppr_med.3, inet.3, j0.3, makecontext.3, printf.3, puts.3, resolver.3, sigsetops.3, elf.5, nscd.conf.5, proc.5, inotify.7, ipv6.7, spufs.7, system_data_types.7: Use Oxford comma
Found using:
pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nand" man? |grep ^man |sort
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15 12:32:31 +00:00
|
|
|
.IR e_shnum ,
|
2010-06-19 10:42:51 +00:00
|
|
|
and
|
2019-12-11 21:16:54 +00:00
|
|
|
.IR e_shstrndx
|
2010-06-19 10:42:51 +00:00
|
|
|
respectively are
|
|
|
|
Linux extensions.
|
2021-01-09 10:02:33 +00:00
|
|
|
Sun, BSD, and AMD64 also support them; for further information,
|
2010-06-19 10:42:51 +00:00
|
|
|
look under SEE ALSO.
|
2007-12-03 19:53:53 +00:00
|
|
|
.\" .SH AUTHORS
|
2007-06-08 12:01:06 +00:00
|
|
|
.\" The original version of this manual page was written by
|
|
|
|
.\" .An Jeroen Ruigrok van der Werven
|
|
|
|
.\" .Aq asmodai@FreeBSD.org
|
|
|
|
.\" with inspiration from BSDi's
|
|
|
|
.\" .Bsx
|
|
|
|
.\" .Nm elf
|
|
|
|
.\" man page.
|
2007-12-03 19:53:53 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR as (1),
|
2017-05-02 05:45:59 +00:00
|
|
|
.BR elfedit (1),
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR gdb (1),
|
|
|
|
.BR ld (1),
|
2017-05-02 05:45:59 +00:00
|
|
|
.BR nm (1),
|
2020-12-13 09:45:43 +00:00
|
|
|
.BR objcopy (1),
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR objdump (1),
|
2018-03-02 13:34:41 +00:00
|
|
|
.BR patchelf (1),
|
2016-05-10 15:42:23 +00:00
|
|
|
.BR readelf (1),
|
2017-05-02 05:45:59 +00:00
|
|
|
.BR size (1),
|
|
|
|
.BR strings (1),
|
|
|
|
.BR strip (1),
|
2007-12-03 19:53:53 +00:00
|
|
|
.BR execve (2),
|
2017-05-12 11:04:22 +00:00
|
|
|
.BR dl_iterate_phdr (3),
|
2019-05-28 07:32:40 +00:00
|
|
|
.BR core (5),
|
|
|
|
.BR ld.so (8)
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2007-12-03 19:53:53 +00:00
|
|
|
Hewlett-Packard,
|
|
|
|
.IR "Elf-64 Object File Format" .
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
2007-12-03 19:53:53 +00:00
|
|
|
Santa Cruz Operation,
|
|
|
|
.IR "System V Application Binary Interface" .
|
2007-12-28 05:38:10 +00:00
|
|
|
.PP
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
UNIX System Laboratories,
|
2007-12-03 19:53:53 +00:00
|
|
|
"Object Files",
|
|
|
|
.IR "Executable and Linking Format (ELF)" .
|
2010-06-19 10:42:51 +00:00
|
|
|
.PP
|
|
|
|
Sun Microsystems,
|
|
|
|
.IR "Linker and Libraries Guide" .
|
|
|
|
.PP
|
|
|
|
AMD64 ABI Draft,
|
|
|
|
.IR "System V Application Binary Interface AMD64 Architecture Processor Supplement" .
|