View the Most Wanted LQ Wiki articles.
Go Back > Blogs
User Name



ASM: Intercepting (and using) Errors (like segfaults) in asm (aka SEH)

Posted 02-03-2012 at 05:10 PM by rainbowsally

This is for i86 and x86_64 types but with a bit of poking around you can probably find a similar way to do this with other CPUs.

Note: This asm requires 'sigaction'. (See the test code. And bear in mind that this is not an attempt to create a full-blown system of signal handlers. Check the libc docs for 'sigaction' for ideas on how you can use something like this for a seed for a more extensive application.)

There used to be a lot of cool little programs for the...
Posted in Uncategorized
Views 1076 Comments 0 rainbowsally is offline

ASM: 64 bit intel asm in linux

Posted 02-03-2012 at 05:01 PM by rainbowsally

If you're used to 32 bit asm in gcc, the 64 bit asm might throw you for a loop initially. That's because part of the stack is passed around in registers.

Let's compile a bit of test code and see what's going on.

If you're using our makefile-creator put this in a subdirectory named "src" or use whatever method you prefer if not.

file: src/main.c
// main.c
#include <stdio.h>

void  dbg(){}
Posted in Uncategorized
Views 1142 Comments 0 rainbowsally is offline

Computer Mad Science: The Anatomy Of A Makefile Part 2

Posted 01-28-2012 at 02:24 PM by rainbowsally
Updated 04-09-2012 at 06:44 AM by rainbowsally (updated makefile creator posted)

Note: There's a much more full featured and easily customized makefile creator here. Many features can be added without even recompiling it.

For historical reasons we'll keep this blog entry for a while, I guess. -rs


  • Example: building an editable makefile creator.

  • Feb
Posted in Uncategorized
Views 1026 Comments 0 rainbowsally is offline

Computer Mad Science: The Anatomy Of A Makefile Part 1

Posted 01-28-2012 at 02:17 PM by rainbowsally

  • Anatomy of a Makefile

  • an editor that can produce real TABs
  • make
  • And bash (with a 'B')... Not DASH, the Debian default shell, which can cause problems with some makefiles, especially on KDE sytems when trying to link

This might be interesting for even non-programmers, just to see how makefiles efficiently work through their dependencies.

[If you're already up to speed on what make does, skip to Part 2 and we'll create...
Posted in Uncategorized
Views 13834 Comments 7 rainbowsally is offline

To boot a broken openSUSE 11.4 (also dual-linux bootloader issues)

Posted 01-28-2012 at 04:31 AM by rainbowsally
Updated 08-06-2014 at 11:33 AM by rainbowsally

To boot a broken openSUSE system:

Use the DVD. (I am not online when I do this but it should work either way.)

1. Select "install" at the main menu, then when you get to the menu,

2. Select "update" <- IMPORTANT! If you don't click on 'update' it will destroy your home folders at the last step. Reboot (reset is fine here) if there's any question and run the installer again.

Evaluating the root partition is ok....
Posted in Uncategorized
Views 1278 Comments 0 rainbowsally is offline


All times are GMT -5. The time now is 09:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration