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]

Re: [PATCH] (version 2) Change MIPS linker stubs to allow for more than 2^15 symbols.


I usually prefer this style:

-#define STUB_LUI(VAL) (0x3c180000 + (VAL)) /* lui t8,VAL */



To this...

+  /* Fill the stub.  */
+  bfd_put_32 (output_bfd, (ABI_64_P (output_bfd)
+			   ? 0xdf998010		/* ld t9, 0x8010(gp) */
+			   : 0x8f998010),	/* lw t9, 0x8010(gp) */
+	      stub);

-eric



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