bugGNU GRUB - Bugs: bug #31908, Hard-coded call to objcopy in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31908: Hard-coded call to objcopy in grub-core/genmod.sh.in

Submitter:  Shea Levy <shlevy>
Submitted:  Fri 17 Dec 2010 07:13:49 PM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Shea Levy
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 25 Dec 2010 05:23:50 PM UTC, comment #1: 

Applied, thanks

Vladimir Serbinenko <phcoder>
Group administrator
Fri 17 Dec 2010 07:13:49 PM UTC, original submission:  

grub-core/genmod.sh.in calls objcopy several times, when it should call @OBJCOPY@.

Noticed this issue when following the Macbook pure EFI tutorial (http://grub.enbug.org/TestingOnMacbook). I'm installing a 32-bit version of Linux From Scratch, so I built a cross-compiling toolchain, which, in my case, installed the 64-bit objcopy as /usr/bin/x86_64-pc-linux-gnu-objcopy. ./configure --target=x86_64-pc-linux-gnu finds that objcopy just fine, but when make runs genmod.sh it calls the objcopy in my PATH, which is aimed at 32 bit systems and therefore doesn't recognize the format. The fix is simple: substitute each instance of objcopy with @OBJCOPY@. A simple `sed -e 's/objcopy/@OBJCOPY@/g' grub/grub-core/genmod.sh.in.orig > grub/grub-core/genmod.sh.in
` should suffice, but I've attached a patch (generated with diff -Naur on OSX) anyway.

Shea Levy <shlevy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by shlevy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-25 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-12-17 shlevy Attached File- Added genmod-objcopy.patch, #22220

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code