1.\" $NetBSD: elf_fill.3,v 1.5 2024/03/03 17:37:33 christos Exp $ 2.\" 3.\" Copyright (c) 2006,2008 Joseph Koshy. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 14.\" This software is provided by Joseph Koshy ``as is'' and 15.\" any express or implied warranties, including, but not limited to, the 16.\" implied warranties of merchantability and fitness for a particular purpose 17.\" are disclaimed. in no event shall Joseph Koshy be liable 18.\" for any direct, indirect, incidental, special, exemplary, or consequential 19.\" damages (including, but not limited to, procurement of substitute goods 20.\" or services; loss of use, data, or profits; or business interruption) 21.\" however caused and on any theory of liability, whether in contract, strict 22.\" liability, or tort (including negligence or otherwise) arising in any way 23.\" out of the use of this software, even if advised of the possibility of 24.\" such damage. 25.\" 26.\" Id: elf_fill.3 3639 2018-10-14 14:07:02Z jkoshy 27.\" 28.Dd June 11, 2006 29.Dt ELF_FILL 3 30.Os 31.Sh NAME 32.Nm elf_fill 33.Nd set fill byte for inter-section padding 34.Sh LIBRARY 35.Lb libelf 36.Sh SYNOPSIS 37.In libelf.h 38.Ft void 39.Fn elf_fill "int fill" 40.Sh DESCRIPTION 41Function 42.Fn elf_fill 43allows an application to specify a fill value for the padding inserted 44between two sections of an ELF file to meet section alignment 45constraints. 46By default the ELF library uses zero bytes for padding. 47.Pp 48The ELF library will only pad bytes if the 49.Dv ELF_F_LAYOUT 50flag is not set for the ELF file. 51.Sh SEE ALSO 52.Xr elf 3 , 53.Xr elf_flagelf 3 , 54.Xr gelf 3 55