This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Uncovered NOP runs


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr Machata wrote:
> First, is it
> OK for the producer to leave NOP runs alone?

Yes.


> If yes, dwarflint
> shouldn't warn about it, but then there is a problem of how to detect this.

These areas are not covered by any symbol.  In correctly written code
the size associated with a symbol extends to just past the last
instruction.  In asm code this is done using the .size pseudo-op.  Take
a look at what the compiler generates.


> I think we can assume that the compiler actually emits literal "NOP"
> instructions for padding purposes (i.e. not one of these contraptions
> that look like they do something).

Actually, the NOPs are not emitted literally.  They are the result of an
.align pseudo-op in asm code and aligning of sections in the linker.


>  But most of the time, we won't even
> see contents of .text, will we?  We are dealing with stripped
> debuginfo-only files.  Or are we going to do our debuginfo
> transformation business on full files?

Actually, I think we'll have to do this work before stripping.  The
reason is simple: the stripping has to be reversable.  That's not
possible after the compression.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmJwS8ACgkQ2ijCOnn/RHSySgCguNhwXyt/ICMLb3WOCsSvADmS
hegAn0Gf4znWz3WstSEYY+uI9KtPI4/D
=1zZL
-----END PGP SIGNATURE-----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]