Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.
/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
1 --- gdb-6.3.org/gdb/gdbserver/thread-db.c 2004-10-17 02:42:00.000000000 +0900
2 +++ gdb-6.3/gdb/gdbserver/thread-db.c 2005-01-27 12:19:29.000000000 +0900
4 Foundation, Inc., 59 Temple Place - Suite 330,
5 Boston, MA 02111-1307, USA. */
10 #include "linux-low.h"
14 struct inferior_linux_data *tdata;
18 fprintf (stderr, "Thread creation event.\n");
20 In the LinuxThreads implementation, this is safe,
21 because all events come from the manager thread
22 (except for its own creation, of course). */
23 - err = td_ta_event_getmsg (thread_agent, &msg);
24 + for (timeout = 0; timeout < 50000; timeout++)
26 + err = td_ta_event_getmsg (thread_agent, &msg);
27 + if (err != TD_NOMSG)
32 fprintf (stderr, "thread getmsg err: %s\n",
33 thread_db_err_str (err));