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

Submitted by:  Shea Levy <shlevy>
Submitted on:  Fri 17 Dec 2010 07:13:49 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Shea Levy
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

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

Applied, thanks

Vladimir Serbinenko <phcoder>
Project 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>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Dec 2010 05:23:50 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 17 Dec 2010 07:13:49 PM UTCshlevyAttached File-=>Added genmod-objcopy.patch, #22220

    Back to the top


    Powered by Savane 3.1-cleanup1