[PATCH 7/13] powerpc musl support

Szabolcs Nagy szabolcs.nagy@arm.com
Mon Apr 27 14:58:00 GMT 2015


On 20/04/15 19:55, Szabolcs Nagy wrote:
> Set up dynamic linker name for powerpc.  Musl only supports powerpc
> with secure plt, so appropriate options are passed to the linker by
> default.

Patch v2.

Powerpc does not include the top level linux.h, so I had to
repeat the include order fixes from there in rs6000/sysv4.h.

I corrected the endianness handling (the "le" suffix should
be added correctly now).

gcc/Changelog:

2015-04-24  Gregor Richards  <gregor.richards@uwaterloo.ca>
	    Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* config.gcc (secure_plt): Add *-linux*-musl*.
	* config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
	(MUSL_DYNAMIC_LINKER64): Define.
	(GNU_USER_DYNAMIC_LINKER32): Update.
	(GNU_USER_DYNAMIC_LINKER64): Update.
	(CHOOSE_DYNAMIC_LINKER): Update.

	* config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
	* config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
	(MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
	(INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
	(INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
	(INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
	(LINK_SECURE_PLT_DEFAULT_SPEC): Define.
	(CHOOSE_DYNAMIC_LINKER, LINK_TARGET_SPEC, LINK_OS_LINUX_SPEC): Update.

	* config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 07-powerpc-v2.diff
Type: text/x-patch
Size: 6930 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150427/74f60d1d/attachment.bin>


More information about the Gcc-patches mailing list