bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/6765] New: [PATCH] support symbol unbinding in objcopy


From: srk31 at srcf dot ucam dot org
Subject: [Bug binutils/6765] New: [PATCH] support symbol unbinding in objcopy
Date: 24 Jul 2008 14:16:38 -0000

When manipulating object code, it's often useful to separate symbol references
from symbol definitions -- for example in conjunction with the --wrap option to
ld. Ordinarily --wrap doesn't work within the scope of a single object file,
since the assembler has already resolved references to symbols defined in the
same file. The attached patch to objcopy (current CVS) supports undoing this
binding process, by providing an --unbind-symbol operation which replaces a
single symbol entry SYMBOL with (up to) two: __def_SYMBOL and __ref_SYMBOL. 

It's not been extensively tested, but seems to work. If it looks good, please
consider committing it. I'd be grateful for feedback in any case.

-- 
           Summary: [PATCH] support symbol unbinding in objcopy
           Product: binutils
           Version: 2.19 (HEAD)
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: srk31 at srcf dot ucam dot org
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=6765

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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