bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

objcopy: `--rename-section' option gets new name wrong


From: Miles Bader
Subject: objcopy: `--rename-section' option gets new name wrong
Date: 19 Sep 2001 14:02:03 +0900

If I use the following command to convert a binary file into an object
file (this command line is taken almost verbatim from the binutils info file):

   % objcopy -I binary -O elf32-little -B i386 --rename-section 
.data=.blkmem0,alloc,load,readonly,data,contents root.ext2 root.ext2.elf

And then look at the results:

   % objdump -t root.ext2.elf

   root.ext2.elf:     file format elf32-i386

   SYMBOL TABLE:
   00000000 l    d  =.blkmem0   00000000 
   00000000 g       =.blkmem0   00000000 _binary_root_ext2_start
   00100000 g       =.blkmem0   00000000 _binary_root_ext2_end
   00100000 g       *ABS*       00000000 _binary_root_ext2_size

You can see that the new section name is wrong; presumably the
arg-parser neglected to increment a pointer somewhere.

   % objcopy --version
   GNU objcopy 2.11.90.0.31
   Copyright 1997, 98, 99, 2000, 2001 Free Software Foundation, Inc.
   This program is free software; you may redistribute it under the terms of
   the GNU General Public License.  This program has absolutely no warranty.

This is running on a Debian unstable system.

Thanks,

-Miles
-- 
Yo mama's so fat when she gets on an elevator it HAS to go down.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]