methods for putting labels into your software?

Kaleb Keithley kaleb at thyme.jpl.nasa.gov
Thu Jun 27 05:40:59 AEST 1991


In article  mullens at jamsun.ic.ornl.gov (James A. Mullens) writes:
>In article  mlevin at jade.tufts.edu writes:
>|> 
>|>    I'd like to hear suggestions, or any tricks that the pros out there
>|> know about, for putting some kind of text label or code into your
>|> executable (compiled and linked from C code) so that if anyone were to
>
>How about a static long int initialized to your social security
>number?  To make finding it in a binary file easier you might
>declare a struct with 2 or 3 such unique numbers, but I think most
>people's social security number would be unique enough by itself.
>

How about little-endian vs. big-endian architectures?  What looks like
your SSN on one machine would surely be scrambled on another.  Same
for text strings coded as long ints.  For that matter, how do you go
about locating an arbitrary integer within some binary?  I'll wager I could
find my social security number buried in binaries all over the place.

And lint, or perhaps an ANSI compiler will complain about these variables 
never being used.  What are you writing that requires this level of
"protection"?  Or do you just want to see how "far" your code goes without
you?   
-- 

Kaleb Keithley                               kaleb at thyme.jpl.nasa.gov

No flashy sig. No clever quips. No famous quotes. This space for rent.



More information about the Comp.unix.programmer mailing list