This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

objcopy/strip problem on MIPS (2.10)


Hello,

I reported this problem to bug-gnu-utils, but I thought I would try it here
also...

When a file is stripped with the 2.10 strip command, it creates invalid
binaries.  (Under irix-6.2, and 6.3, the binaries actually crash the system!!
Under 6.5, they just dump core.)

The problem does not occur with strip from binutils-2.9.1, and the main 
difference that we see is that 2.10 is removing the .MIPS.options section
from the file.  We created a simple hello-world C program and ran the following
tests.

Test:						Result:

strip foo (2.9.1)				No problems
strip foo (2.10)				System crashes
objcopy foo foo-new (2.9.1)			No problems
objcopy foo foo-new (2.10)			System crashes
objcopy --remove-section=.MIPS.options (2.9.1)	System crashes 

In each of the failure conditions, the .MIPS.options section was
missing from the output file.

-- 
Peter Fales			  Lucent Technologies, Room 4G-310
N9IYJ            		  2000 N Naperville Rd PO Box 3033
internet: psfales@lucent.com	  Naperville, IL 60566-7033
			 	  work:	(630) 979-8031


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]