This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] aix: ignore -bbigtoc linker switch


Hi,

config/mh-ppc-aix has the following lines:

BOOT_LDFLAGS = -Wl,-bbigtoc
LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`

Unfortunately, gnu-ld doesn't support -bbigtoc at all.  The following patch makes ld silently ignore it, and thus can be
used to build binutils.

Ok for trunk ?

Tristan.

ld/
2011-04-18  Tristan Gingold  <gingold@adacore.com>

	* emultempl/aix.em (_add_options): Ignore -bbigtoc switch.

Index: ld/emultempl/aix.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/aix.em,v
retrieving revision 1.57
diff -c -r1.57 aix.em
*** ld/emultempl/aix.em	20 Dec 2010 13:00:14 -0000	1.57
--- ld/emultempl/aix.em	18 Apr 2011 14:10:57 -0000
***************
*** 216,221 ****
--- 216,222 ----
      {"bexpall", no_argument, NULL, OPTION_EXPALL},
      {"bexpfull", no_argument, NULL, OPTION_EXPFULL},
      {"bexport", required_argument, NULL, OPTION_EXPORT},
+     {"bbigtoc", no_argument, NULL, OPTION_IGNORE},
      {"bf", no_argument, NULL, OPTION_ERNOTOK},
      {"bgc", no_argument, &gc, 1},
      {"bh", required_argument, NULL, OPTION_IGNORE},


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]