Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - objcopy and missing useful command-line switch: (4 Items)
   
objcopy and missing useful command-line switch  
Hi all,
a simple question. In Momentics, when a program is created, at least 2 version are avilable: release and debug.
GNU objcopy has some feature to strip debug info from a file and put them outside. So a developer can have always the 
release version, and the necessary debug info if he need them.
The switches are:
--only-keep-debug
--strip-debug
--add-gnu-debuglink

QNX has different name for this flags?

Mario
Re: objcopy and missing useful command-line switch  
Mario Mastrodicasa wrote:
> Hi all,
> a simple question. In Momentics, when a program is created, at least 2 version are avilable: release and debug.
> GNU objcopy has some feature to strip debug info from a file and put them outside. So a developer can have always the 
release version, and the necessary debug info if he need them.
> The switches are:
> --only-keep-debug
> --strip-debug
> --add-gnu-debuglink
> 
> QNX has different name for this flags?

No, the options are not named differently. QNX Momentics 6.3.2 ships 
binutils 2.12 which did not support --only-keep-debug and 
--add-gnu-debuglink. QNX Momentics 6.4.0 ships binutils 2.18 which 
supports all three. You can download either a package of binutils 2.17 
or binutils 2.18 from Downloads and install them into your 6.3.2 SDK. 
The packages on the Foundry are suffixed with a version string to avoid 
conflicting with the installed versions so you will either need to 
directly invoke nto<cpu>-objcopy-<version> or manually copy the updated 
version of the binutils over top of the existing version.

Regards,

Ryan Mansfield
Re: objcopy and missing useful command-line switch  
You are right, but the documentation of the 6.4.0 release doesn't report these new switches. Probably the doc of 6.4 is 
the same of 6.3.2 for objcopy.

Mario.
RE: objcopy and missing useful command-line switch  
I've created a PR for updating the docs. Thanks for pointing this out.


Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems