lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 33f86a3 was cfb1217, checked in by Jiri Svoboda <jiri@…>, 9 years ago |
Update Grub. For i386-pc platform add generated core.img for installer. Make necessary changes: grub.conf location, alignment of multiboot 2 tags.
|
-
Property mode
set to
100644
|
File size:
635 bytes
|
Rev | Line | |
---|
[cfb1217] | 1 | ###
|
---|
| 2 | ### Generate GDB commands, that load symbols for specified module,
|
---|
| 3 | ### with proper section relocations. See .gdbinit
|
---|
| 4 | ###
|
---|
| 5 | ### $Id: gmodule.pl,v 1.2 2006/05/14 11:38:42 lkundrak Exp lkundrak $
|
---|
| 6 | ### Lubomir Kundrak <lkudrak@skosi.org>
|
---|
| 7 | ###
|
---|
| 8 |
|
---|
| 9 | use strict;
|
---|
| 10 |
|
---|
| 11 | while (<>) {
|
---|
| 12 | my ($name, %sections) = split;
|
---|
| 13 |
|
---|
| 14 | print "add-symbol-file $name.module";
|
---|
| 15 |
|
---|
| 16 | open (READELF, "readelf -S $name.mod |") or die;
|
---|
| 17 | while (<READELF>) {
|
---|
| 18 | /\[\s*(\d+)\]\s+(\.\S+)/ or next;
|
---|
| 19 |
|
---|
| 20 | if ($2 eq '.text') {
|
---|
| 21 | print " $sections{$1}";
|
---|
| 22 | next;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | print " -s $2 $sections{$1}"
|
---|
| 26 | if ($sections{$1} ne '0x0' and $sections{$1} ne '');
|
---|
| 27 | };
|
---|
| 28 | close (READELF);
|
---|
| 29 | print "\n";
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.