Re: writing a jump table
Nicolas Bock <[email protected]> Wed, 16 Mar 2011 08:13:03 -0600
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, yes, I compiled it and when I run the code it segfaults. nick On 03/15/11 18:25, Brian Raiter wrote: >> I am trying to write a jump table, but unfortunately with limited >> success. When I compile the code and disassemble it, the offset of >> "table" is 0, which I guess means that something didn't work out. > > Actually, table appears immediately following your indirect jump > instruction, so I would assume that the offset would be zero. Did you > actually try this code to verify that it doesn't do what you expect? > > b > -- > To unsubscribe from this list: send the line "unsubscribe linux-assembly" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html
signature.asc
(application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2AxW8ACgkQf15tZKyRylKGcwCg2yKg4xkNnEwDgnWty9zUCwco 9ogAoNt0/b3DFi0tYjcvXswiqPg3S8nv =+tUo -----END PGP SIGNATURE-----