Re: [Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-14 Thread Jonathan Larmour
Charles Hardin wrote: > Ok, so what is the preferred solution? > > 1. stick with objcopy and do the #ifdef > 2. stick with objcopy and do an external script to rename the symbols > 3. go back to making a startup.c - maybe use a bin2hex c program > instead of tclsh > > I don't like 1 since there a

Re: [Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-12 Thread Charles Hardin
Ok, so what is the preferred solution? 1. stick with objcopy and do the #ifdef 2. stick with objcopy and do an external script to rename the symbols 3. go back to making a startup.c - maybe use a bin2hex c program instead of tclsh I don't like 1 since there are problems with objcopy behavior - if

Re: [Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-12 Thread Duane Ellis
Charles Hardin wrote: charles> Using objcopy on a linux distro results in unresolved symbols [ basically: _binary_startup_tcl_size vrs binary_startup_tcl_size] EEK... This needs an #IFDEF linux/cygwin Otherwise your patch will break. Nasty problem. there should be a better way of handlin

[Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-12 Thread Charles Hardin
Using objcopy on a linux distro results in unresolved symbols $ objcopy -V GNU objcopy 2.17.50.0.6-2.el5 20061020 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no