This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: elf_update bug
- From: Ulrich Drepper <drepper at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 13 Jan 2009 12:50:38 -0800
- Subject: Re: elf_update bug
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roland McGrath wrote:
> What should the general rule be here? It's not clear e.g. that one should
> not elf_begin(,ELF_C_RDWR,) + elf_fill(,0xaa) + elf_update(,) to change
> all the inter-section fill bytes.
This is gross and never how the fill byte was meant to be used. I
agree, it's a possible interpretation but not what should be the
default. If you want this behavior you can easily dirty the entire ELF
file explicitly.
I need to look at this in more detail to see what is going on.
- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkls/p4ACgkQ2ijCOnn/RHQt0gCfed8BDs8qdjFkOWrur2cqLPT6
BtsAoJqHWNLuaq00xaFhgaWvrkQS1HYV
=B2Sv
-----END PGP SIGNATURE-----