在 2022/7/26 下午5:44, Xi Ruoyao 写道:
+ whether the <code>la.*</code> macro instructions will be generated when
+ loading symbolic addresses.
+ This feature requires binutils version 2.40 or later. If you want to use the
+ older version of bintuils, add compiler parameters
+ <code>-mno-explicit-relocs</code> at compile time.
Does it mean we need to make sure GCC 13 released after binutils-2.40?
binutils-2.39 release branch is already created and it's now explicitly
"no new feature" so a backport seems impossible...
Do you think it's okay if we don't write Binutils version restrictions
now and wait until Binutils code is released to annotate?
+ </li>
+ <li>The method for calling global functions changed from
+ <code>la.global + jirl</code> to <code>bl</code> when complied add
+ <code>-fplt</code>.
"from la.global + jirl to bl with -fno-plt and -mexplicit-relocs"? With
"-fplt" GCC 12 is already using bl, and with -mno-explicit-relocs
la.global is still used (if I read func-call-3.c correctly).
I should put '-fplt -mexplicit-relocs' here.
+ <li>Changed <code>ASM_PREFERRED_EH_DATA_FORMAT</code> macro definition from
+ <code>WD_EH_PE_absptr</code> to <code>WD_EH_PE_pcrel |
DW_EH_PE_sdata4</code>.
+ </li>
I don't think this paragraph is necessary because this change is purely
internal.
Should we indicate that our .eh_frame section format has changed?
Thanks!