ChangeLog-2019 110 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904
  1. 2019-12-26 Alan Modra <amodra@gmail.com>
  2. * ldlang.c (lang_output_section_find_by_flags): Don't use &p->field
  3. when p might be NULL.
  4. * ldelf.c (output_rel_find, ldelf_place_orphan): Likewise.
  5. (insert_os_after, lang_insert_orphan, lookup_name): Likewise.
  6. (strip_excluded_output_sections, lang_clear_os_map): Likewise.
  7. (lang_check, lang_for_each_input_file): Likewise.
  8. (lang_reset_memory_regions, find_replacements_insert_point): Likewise.
  9. (find_rescan_insertion, lang_propagate_lma_regions): Likewise.
  10. (lang_record_phdrs): Likewise.
  11. * emultempl/alphaelf.em (alpha_after_open): Likewise.
  12. * emultempl/mmo.em (mmo_place_orphan): Likewise.
  13. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  14. * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  15. * emultempl/ppc32elf.em (ppc_after_check_relocs): Likewise.
  16. * emultempl/spuelf.em (spu_before_allocation): Likewise.
  17. (embedded_spu_file): Likewise.
  18. 2019-12-19 Alan Modra <amodra@gmail.com>
  19. * testsuite/lib/ld-lib.exp (uses_genelf): Remove moxie.
  20. 2019-12-18 Anthony Green <green@moxielogic.com>
  21. * emulparams/elf32moxie.sh (TEMPLATE_NAME): Switch to elf template
  22. to enable --build-id.
  23. * configure.tgt: Don't define targ_extra_ofiles for moxie-*-*.
  24. 2019-12-18 Alan Modra <amodra@gmail.com>
  25. * pe-dll.c (pe_get32, pe_as32): Avoid signed overflow.
  26. 2019-12-17 Alan Modra <amodra@gmail.com>
  27. * testsuite/ld-avr/lds-mega.d: Adjust symbols to suit objdump change.
  28. * testsuite/ld-avr/lds-tiny.d: Likewise.
  29. * testsuite/ld-x86-64/load2.d: Likewise.
  30. * testsuite/ld-mips-elf/compact-eh1.s: Give function symbols
  31. function type.
  32. * testsuite/ld-mips-elf/compact-eh1a.s: Likewise.
  33. * testsuite/ld-mips-elf/compact-eh1b.s: Likewise.
  34. * testsuite/ld-mips-elf/compact-eh2.s: Likewise.
  35. * testsuite/ld-mips-elf/compact-eh3.s: Likewise.
  36. * testsuite/ld-mips-elf/compact-eh3a.s: Likewise.
  37. * testsuite/ld-mips-elf/eh-frame5.s: Likewise.
  38. * testsuite/ld-mips-elf/ehdr_start-new.s: Likewise.
  39. * testsuite/ld-mips-elf/ehdr_start-o32.s: Likewise.
  40. * testsuite/ld-mips-elf/emit-relocs-1a.s: Likewise.
  41. * testsuite/ld-mips-elf/jaloverflow-2.s: Likewise.
  42. * testsuite/ld-mips-elf/jaloverflow.s: Likewise.
  43. * testsuite/ld-mips-elf/mips16-call-global-1.s: Likewise.
  44. * testsuite/ld-mips-elf/mips16-intermix-1.s: Likewise.
  45. * testsuite/ld-mips-elf/mips16-pic-1b.s: Likewise.
  46. * testsuite/ld-mips-elf/mips16-pic-4c.s: Likewise.
  47. * testsuite/ld-mips-elf/no-shared-1-n64.s: Likewise.
  48. * testsuite/ld-mips-elf/no-shared-1-o32.s: Likewise.
  49. * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s: Likewise.
  50. * testsuite/ld-mips-elf/pic-and-nonpic-1b.s: Likewise.
  51. * testsuite/ld-mips-elf/pic-and-nonpic-2a.s: Likewise.
  52. * testsuite/ld-mips-elf/pic-and-nonpic-3b.s: Likewise.
  53. * testsuite/ld-mips-elf/pic-and-nonpic-4b.s: Likewise.
  54. * testsuite/ld-mips-elf/pic-and-nonpic-5a.s: Likewise.
  55. * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s: Likewise.
  56. * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s: Likewise.
  57. * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s: Likewise.
  58. * testsuite/ld-mips-elf/pie.s: Likewise.
  59. * testsuite/ld-mips-elf/relax-jalr.s: Likewise.
  60. * testsuite/ld-mips-elf/reloc-1a.s: Likewise.
  61. * testsuite/ld-mips-elf/reloc-2a.s: Likewise.
  62. * testsuite/ld-mips-elf/reloc-4.s: Likewise.
  63. * testsuite/ld-mips-elf/reloc-5.s: Likewise.
  64. * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
  65. * testsuite/ld-mips-elf/textrel-1.s: Likewise.
  66. * testsuite/ld-mips-elf/undefweak-overflow.s: Likewise.
  67. * testsuite/ld-mips-elf/undefweak-overflow.d: Adjust.
  68. 2019-12-17 Alan Modra <amodra@gmail.com>
  69. * testsuite/ld-elf/pr21233-l.sd: Accept OBJECT for type and
  70. PRC for section of symbols.
  71. * testsuite/ld-elf/pr23591.d: Likewise.
  72. * testsuite/ld-elf/provide-hidden-s.nd: Likewise.
  73. * testsuite/ld-mips-elf/start.s: Make symbols function type.
  74. * testsuite/ld-mips-elf/hash2.d: Adjust. Don't xfail irix.
  75. 2019-12-17 Alan Modra <amodra@gmail.com>
  76. * emulparams/tic80coff.sh: Delete file.
  77. * scripttempl/tic80coff.sc: Delete file.
  78. * configure.tgt: Remove tic80 support.
  79. * Makefile.am: Likewise.
  80. * Makefile.in: Regenerate.
  81. * po/BLD-POTFILES.in: Regenerate.
  82. 2019-12-12 H.J. Lu <hongjiu.lu@intel.com>
  83. * testsuite/ld-i386/align-branch-1.d: New file.
  84. * testsuite/ld-i386/align-branch-1.s: Likewise.
  85. * testsuite/ld-x86-64/align-branch-1.d: Likewise.
  86. * testsuite/ld-x86-64/align-branch-1.3: Likewise.
  87. * testsuite/ld-i386/i386.exp: Run the new test.
  88. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  89. 2019-12-08 Alan Modra <amodra@gmail.com>
  90. * testsuite/ld-elf/eh4.d: Match optional padding DW_CFA_nop in FDEs.
  91. * testsuite/ld-elf/eh5.d: Likewise, and extra CIEs emitted on
  92. embedded targets.
  93. 2019-12-06 Alan Modra <amodra@gmail.com>
  94. * testsuite/ld-mips-elf/eh-frame1-n32.d: Pass --eh-frame-hdr to ld.
  95. * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
  96. * testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
  97. * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
  98. 2019-12-05 Alan Modra <amodra@gmail.com>
  99. PR 25244
  100. * ldlang.c (lang_print_memory_usage): Correct last patch.
  101. 2019-12-05 Alan Modra <amodra@gmail.com>
  102. PR 25243
  103. * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Move definition
  104. of __exidx_start and __exidx_end into ARM.exidx.
  105. * emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS): Likewise.
  106. * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Similarly.
  107. * emulparams/elf32_tic6x_le.sh (OTHER_READONLY_SECTIONS): Similarly.
  108. * emulparams/armelf_fuchsia.sh: Source armelf_linux_eabi.sh,
  109. just redefining TEXT_START_ADDR.
  110. * emulparams/armelf_linux_fdpiceabi.sh: Source armelf_linux_eabi.sh,
  111. adding to OTHER_READONLY_SECTIONS.
  112. 2019-12-05 Alan Modra <amodra@gmail.com>
  113. PR 25244
  114. * ldlang.c (lang_print_memory_usage): Don't print percent used
  115. when length is zero.
  116. 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  117. * testsuite/ld-elf/eh5.d: Accept version 3 DWARF CIE.
  118. 2019-11-26 Martin Liska <mliska@suse.cz>
  119. * scripttempl/arclinux.sc: Add .text.sorted.* which is sorted
  120. by default.
  121. * scripttempl/elf.sc: Likewise.
  122. * scripttempl/elf64bpf.sc: Likewise.
  123. * scripttempl/nds32elf.sc: Likewise.
  124. * testsuite/ld-arm/arm-no-rel-plt.ld: Expect .text.sorted.*
  125. in the default linker script.
  126. * testsuite/ld-arm/fdpic-main.ld: Likewise.
  127. * testsuite/ld-arm/fdpic-shared.ld: Likewise.
  128. 2019-11-25 Alan Modra <amodra@gmail.com>
  129. * ldexp.c (fold_name): Pass section to bfd_octets_per_byte.
  130. * ldlang.c (init_opb): Don't call bfd_arch_mach_octets_per_byte
  131. unnecessarily.
  132. 2019-11-25 Christian Eggers <ceggers@gmx.de>
  133. * ldexp.c (fold_name): Provide section parameter to
  134. bfd_octets_per_byte.
  135. * ldlang (init_opb): New argument s. Set opb_shift to 0 if
  136. SEC_ELF_OCTETS for the current section is set.
  137. (print_input_section): Pass current section to init_opb.
  138. (print_data_statement,print_reloc_statement,
  139. print_padding_statement): Likewise.
  140. (lang_check_section_addresses): Call init_opb for each
  141. section.
  142. (lang_size_sections_1,lang_size_sections_1,
  143. lang_do_assignments_1): Likewise.
  144. (lang_process): Pass NULL to init_opb.
  145. 2019-11-22 Nick Clifton <nickc@redhat.com>
  146. * ld.texi (Output Section Discarding): Add note indicating that
  147. /DISCARD/ed sections ignore ELF section grouping.
  148. 2019-11-22 Nick Clifton <nickc@redhat.com>
  149. * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Use cast instead of
  150. extra check.
  151. 2019-11-21 Nick Clifton <nickc@redhat.com>
  152. * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Check for an empty
  153. file chain before examining the first input statement.
  154. 2019-11-21 Alan Modra <amodra@gmail.com>
  155. PR 46
  156. * scripttempl/pe.sc: Comment on ld -Ur fail. Wrap .gcc_exc comment.
  157. * scripttempl/pep.sc: Likewise.
  158. * scripttempl/i386beos.sc: Wrap .gcc_exc comment.
  159. * scripttempl/mcorepe.sc: Likewise.
  160. * testsuite/ld-cdtest/cdtest.exp (test2): xfail for pe.
  161. 2019-11-12 Jim Wilson <jimw@sifive.com>
  162. PR 25181
  163. * testsuite/ld-riscv-elf/call-relax-0.s: New file.
  164. * testsuite/ld-riscv-elf/call-relax-1.s: New file.
  165. * testsuite/ld-riscv-elf/call-relax-2.s: New file.
  166. * testsuite/ld-riscv-elf/call-relax-3.s: New file.
  167. * testsuite/ld-riscv-elf/call-relax.d: New test.
  168. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run call-relax test.
  169. 2019-11-08 Alan Modra <amodra@gmail.com>
  170. * emulparams/aarch64elf.sh: Revert 2019-11-05 change.
  171. * emulparams/aarch64elf32.sh: Likewise.
  172. * emulparams/arcelf.sh: Likewise.
  173. * emulparams/armelf.sh: Likewise.
  174. * emulparams/armelf_fbsd.sh: Likewise.
  175. * emulparams/armelf_nbsd.sh: Likewise.
  176. * emulparams/armelf_vxworks.sh: Likewise.
  177. * emulparams/armsymbian.sh: Likewise.
  178. * emulparams/elf32bfin.sh: Likewise.
  179. * emulparams/elf32microblaze.sh: Likewise.
  180. * emulparams/score3_elf.sh: Likewise.
  181. * emulparams/shelf.sh: Likewise.
  182. * emulparams/shelf_nbsd.sh: Likewise.
  183. * emulparams/shelf_uclinux.sh: Likewise.
  184. 2019-11-07 Alan Modra <amodra@gmail.com>
  185. * emulparams/elf32cr16c.sh: Delete.
  186. * scripttempl/elf32cr16c.sc: Delete.
  187. * Makefile.am,
  188. * configure.tgt: Remove cr16c support.
  189. * NEWS: Mention removal of cr16c.
  190. * Makefile.in,
  191. * po/BLD-POTFILES.in: Regenerate.
  192. 2019-11-07 Alan Modra <amodra@gmail.com>
  193. * configure.tgt: Order targets by cpu.
  194. 2019-11-07 Alan Modra <amodra@gmail.com>
  195. * testsuite/ld-aarch64/aarch64-elf.exp: Run tests requiring pie
  196. or shared library support only when check_shared_lib_support.
  197. * testsuite/ld-aarch64/bti-pac-plt-1.d: Likewise.
  198. * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
  199. * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
  200. * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
  201. * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
  202. * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
  203. * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
  204. * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
  205. * testsuite/ld-aarch64/bti-warn.d: Likewise.
  206. * testsuite/ld-aarch64/dt_textrel.d: Likewise.
  207. * testsuite/ld-aarch64/emit-relocs-258-dyn-bad.d: Likewise.
  208. * testsuite/ld-aarch64/emit-relocs-259-dyn-bad.d: Likewise.
  209. * testsuite/ld-aarch64/emit-relocs-264-bad.d: Likewise.
  210. * testsuite/ld-aarch64/emit-relocs-266-bad.d: Likewise.
  211. * testsuite/ld-aarch64/emit-relocs-268-bad.d: Likewise.
  212. * testsuite/ld-aarch64/emit-relocs-269-bad.d: Likewise.
  213. * testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
  214. * testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
  215. * testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
  216. * testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
  217. * testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
  218. * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
  219. * testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
  220. * testsuite/ld-aarch64/gc-relocs-257-dyn.d: Likewise.
  221. * testsuite/ld-aarch64/ifunc-1-local.d: Likewise.
  222. * testsuite/ld-aarch64/ifunc-1.d: Likewise.
  223. * testsuite/ld-aarch64/ifunc-12.d: Likewise.
  224. * testsuite/ld-aarch64/ifunc-13.d: Likewise.
  225. * testsuite/ld-aarch64/ifunc-14a.d: Likewise.
  226. * testsuite/ld-aarch64/ifunc-14b.d: Likewise.
  227. * testsuite/ld-aarch64/ifunc-14c.d: Likewise.
  228. * testsuite/ld-aarch64/ifunc-14d.d: Likewise.
  229. * testsuite/ld-aarch64/ifunc-14e.d: Likewise.
  230. * testsuite/ld-aarch64/ifunc-14f.d: Likewise.
  231. * testsuite/ld-aarch64/ifunc-15.d: Likewise.
  232. * testsuite/ld-aarch64/ifunc-16.d: Likewise.
  233. * testsuite/ld-aarch64/ifunc-18a.d: Likewise.
  234. * testsuite/ld-aarch64/ifunc-18b.d: Likewise.
  235. * testsuite/ld-aarch64/ifunc-19a.d: Likewise.
  236. * testsuite/ld-aarch64/ifunc-19b.d: Likewise.
  237. * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
  238. * testsuite/ld-aarch64/ifunc-2.d: Likewise.
  239. * testsuite/ld-aarch64/ifunc-20.d: Likewise.
  240. * testsuite/ld-aarch64/ifunc-21.d: Likewise.
  241. * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
  242. * testsuite/ld-aarch64/ifunc-3b.d: Likewise.
  243. * testsuite/ld-aarch64/ifunc-5b-local.d: Likewise.
  244. * testsuite/ld-aarch64/ifunc-5b.d: Likewise.
  245. * testsuite/ld-aarch64/ifunc-6b.d: Likewise.
  246. * testsuite/ld-aarch64/ifunc-7b.d: Likewise.
  247. * testsuite/ld-aarch64/ifunc-7c.d: Likewise.
  248. * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
  249. * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
  250. * testsuite/ld-aarch64/pcrel_pic_defined.d: Likewise.
  251. * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
  252. * testsuite/ld-aarch64/pie-bind-locally.d: Likewise.
  253. * testsuite/ld-aarch64/plt_mapping_symbol.d: Likewise.
  254. * testsuite/ld-aarch64/pr20402.d: Likewise.
  255. * testsuite/ld-aarch64/pr22764.d: Likewise.
  256. * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
  257. * testsuite/ld-aarch64/protected-data.d: Likewise.
  258. * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise.
  259. * testsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise.
  260. * testsuite/ld-aarch64/rela-abs-relative.d: Likewise.
  261. * testsuite/ld-aarch64/relasz.d: Likewise.
  262. * testsuite/ld-aarch64/relocs-1027-symbolic-func.d: Likewise.
  263. * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: Likewise.
  264. * testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
  265. * testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
  266. * testsuite/ld-aarch64/tls-large-desc.d: Likewise.
  267. * testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
  268. * testsuite/ld-aarch64/tls-large-ie.d: Likewise.
  269. * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
  270. * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
  271. * testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
  272. * testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
  273. * testsuite/ld-aarch64/tls-tiny-ie.d: Likewise.
  274. * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
  275. * testsuite/ld-aarch64/tlsle-symbol-offset.d: Likewise.
  276. * testsuite/ld-aarch64/tlsle.d: Likewise.
  277. * testsuite/ld-aarch64/variant_pcs-now.d: Likewise.
  278. * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
  279. * testsuite/ld-arm/arm-elf.exp: Likewise. Remove --hash-style=sysv
  280. from static tests. Consolidate armelftests_common_* vars into one.
  281. * testsuite/ld-arm/gc-hidden-1.d: Require check_shared_lib_support.
  282. * testsuite/ld-arm/movw-shared-1.d: Likewise.
  283. * testsuite/ld-arm/movw-shared-2.d: Likewise.
  284. * testsuite/ld-arm/movw-shared-3.d: Likewise.
  285. * testsuite/ld-arm/movw-shared-4.d: Likewise.
  286. * testsuite/ld-arm/pie-bind-locally.d: Likewise.
  287. * testsuite/ld-arm/protected-data.d: Likewise.
  288. * testsuite/ld-arm/rel32-reject-pie.d: Likewise.
  289. * testsuite/ld-arm/rel32-reject.d: Likewise.
  290. * testsuite/ld-arm/thumb2-bl-undefweak.d: Likewise.
  291. * testsuite/ld-arm/thumb2-bl-undefweak1.d: Likewise.
  292. 2019-11-06 Christian Eggers <ceggers@gmx.de>
  293. * ldlang.c (print_input_section): Shift printed size by opb_shift.
  294. 2019-11-05 Alan Modra <amodra@gmail.com>
  295. * emulparams/aarch64elf.sh (GENERATE_SHLIB_SCRIPT),
  296. (GENERATE_PIE_SCRIPT): Don't set.
  297. * emulparams/aarch64elf32.sh (GENERATE_SHLIB_SCRIPT),
  298. (GENERATE_PIE_SCRIPT): Don't set.
  299. * emulparams/arcelf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
  300. * emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT),
  301. (GENERATE_PIE_SCRIPT): Don't set.
  302. * emulparams/armelf_fbsd.sh (GENERATE_SHLIB_SCRIPT): Set.
  303. * emulparams/armelf_nbsd.sh (GENERATE_SHLIB_SCRIPT),
  304. (GENERATE_PIE_SCRIPT): Set.
  305. * emulparams/armelf_vxworks.sh (GENERATE_SHLIB_SCRIPT): Set.
  306. * emulparams/armsymbian.sh (GENERATE_SHLIB_SCRIPT): Set.
  307. * emulparams/elf32bfin.sh (GENERATE_SHLIB_SCRIPT): Don't set.
  308. * emulparams/elf32microblaze.sh (GENERATE_SHLIB_SCRIPT): Don't set.
  309. * emulparams/score3_elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
  310. * emulparams/shelf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
  311. * emulparams/shelf_nbsd.sh (GENERATE_SHLIB_SCRIPT),
  312. (GENERATE_PIE_SCRIPT): Set.
  313. * emulparams/shelf_uclinux.sh (GENERATE_SHLIB_SCRIPT): Set.
  314. 2019-11-05 Alan Modra <amodra@gmail.com>
  315. * emulparams/elf32bfinfd.sh: Unset EMBEDDED rather assigning as empty.
  316. * emulparams/elf32frvfd.sh: Likewise.
  317. * emulparams/elf32lm32fd.sh: Likewise.
  318. * emulparams/i386lynx.sh: Likewise.
  319. 2019-10-22 Alan Modra <amodra@gmail.com>
  320. PR 22269
  321. * testsuite/ld-elf/pr22269-1.rd: Look for GOT section NONE and
  322. RELATIVE relocs.
  323. * testsuite/ld-elf/shared.exp (pr22269-1): Give test a better
  324. name. Use -z nocombreloc.
  325. 2019-10-19 Alan Modra <amodra@gmail.com>
  326. PR ld/25110
  327. * testsuite/ld-gc/gc.exp: Adjust LDFLAGS for pr19161 dump test on
  328. hppa*-*-linux*.
  329. 2019-10-17 Nelson Chu <nelson.chu@sifive.com>
  330. * testsuite/ld-riscv-elf/lib-nopic-01b.d: Update the error message.
  331. * testsuite/ld-riscv-elf/lib-nopic-01a.s: Create the shared library
  332. lib-nopic-01a.so, it will be linked with lib-nopic-01b.s.
  333. * testsuite/ld-riscv-elf/lib-nopic-01b.s: Add new test for the
  334. unresolved relocation. Link the non-pic code into a shared library
  335. may cause the error.
  336. * testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise.
  337. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the new test only when
  338. the shared library is supported.
  339. 2019-10-16 Alan Modra <amodra@gmail.com>
  340. PR 13616
  341. * emulparams/elf64lppc.sh (NOP): Don't define.
  342. * emulparams/elf64ppc.sh (NOP): Don't define.
  343. * ldwrite.c (build_link_order): Use link_info.big_endian. Move
  344. code determining endian to use for data_statement to..
  345. * ldemul.c (after_open_default): ..here. Set link_info.big_endian.
  346. 2019-10-16 Alan Modra <amodra@gmail.com>
  347. * genscripts.sh: Correct comments. Remove outdated comment block
  348. saying "Generate 5 or 6 script files..". Remove description of
  349. ld options from comment emitted to script files, and order options
  350. as per comment block in genscripts.sh saying which scripts are
  351. generated.
  352. 2019-10-14 Alan Modra <amodra@gmail.com>
  353. * ldctor.h (struct set_element): Make next field a union, adding
  354. idx field.
  355. * ldctor.c (ctor_cmp): Dereference pointer and lose unnecessary
  356. const. Replace final sort on pointer value with final sort on idx.
  357. (ldctor_add_set_entry): Adjust next field access.
  358. (ldctor_build_sets): Likewise. Set u.idx field for sort.
  359. 2019-10-14 Alan Modra <amodra@gmail.com>
  360. * pe-dll.c (reloc_data_type): Add idx field.
  361. (reloc_sort): Perform final sort by idx.
  362. (generate_reloc): Set idx.
  363. 2019-10-13 Nick Clifton <nickc@redhat.com>
  364. * NEWS: Delete superflous "Changes in 2.33" comment.
  365. 2019-10-09 Alan Modra <amodra@gmail.com>
  366. PR 25081
  367. * ldlang.c (lang_size_sections_1): Set lma from section vma
  368. rather than dot.
  369. 2019-10-08 Alan Modra <amodra@gmail.com>
  370. * testsuite/ld-powerpc/localgot.s,
  371. * testsuite/ld-powerpc/localgot.d: New test.
  372. * testsuite/ld-powerpc/powerpc.exp: Run it.
  373. 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
  374. * testsuite/ld-msp430-elf/attr-gnu-main.s: New test.
  375. * testsuite/ld-msp430-elf/attr-gnu-obj.s: New test.
  376. * testsuite/ld-msp430-elf/attr-gnu-region-lower-upper.d: New test.
  377. * testsuite/ld-msp430-elf/attr-gnu-region-lower.d: New test.
  378. * testsuite/ld-msp430-elf/attr-gnu-region-upper.d: New test.
  379. * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
  380. 2019-10-07 Alan Modra <amodra@gmail.com>
  381. * ldmisc.c (vfinfo): Save and restore bfd_error around bfd
  382. function calls that might set it.
  383. * testsuite/ld-elf/indirect.exp: Don't expect "nonrepresentable
  384. section" message.
  385. 2019-10-07 Alan Modra <amodra@gmail.com>
  386. * testsuite/ld-powerpc/tlsexe.r: Adjust for added TLSMARK symbol.
  387. * testsuite/ld-powerpc/tlsexe32.r: Likewise.
  388. * testsuite/ld-powerpc/tlsso.r: Likewise.
  389. * testsuite/ld-powerpc/tlsso32.r: Likewise.
  390. * testsuite/ld-powerpc/tls32no.d,
  391. * testsuite/ld-powerpc/tls32no.g: New test files.
  392. * testsuite/ld-powerpc/tlsexe32no.d,
  393. * testsuite/ld-powerpc/tlsexe32no.g,
  394. * testsuite/ld-powerpc/tlsexe32no.r: New test files.
  395. * testsuite/ld-powerpc/tlsexeno.d,
  396. * testsuite/ld-powerpc/tlsexeno.g,
  397. * testsuite/ld-powerpc/tlsexeno.r: New test files.
  398. * testsuite/ld-powerpc/tlsexetocno.d,
  399. * testsuite/ld-powerpc/tlsexetocno.g: New test files.
  400. * testsuite/ld-powerpc/tlsno.d,
  401. * testsuite/ld-powerpc/tlsno.g: New test files.
  402. * testsuite/ld-powerpc/tlstocno.d,
  403. * testsuite/ld-powerpc/tlstocno.g: New test files.
  404. * testsuite/ld-powerpc/powerpc.exp: Run new tests.
  405. 2019-10-07 Alan Modra <amodra@gmail.com>
  406. * testsuite/ld-arm/tls-gdesc-neg.d: Relax target match.
  407. 2019-10-04 Alan Modra <amodra@gmail.com>
  408. * testsuite/ld-powerpc/tlsso.d: Adjust to suit tlsld_got usage change.
  409. * testsuite/ld-powerpc/tlsso.g: Likewise.
  410. * testsuite/ld-powerpc/tlsso.r: Likewise.
  411. * testsuite/ld-powerpc/tlsso32.d: Likewise.
  412. * testsuite/ld-powerpc/tlsso32.g: Likewise.
  413. * testsuite/ld-powerpc/tlsso32.r: Likewise.
  414. 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
  415. PR ld/25062
  416. * testsuite/ld-arm/arm-elf.exp: Update.
  417. * testsuite/ld-arm/tls-gdesc-neg.d: New test.
  418. * testsuite/ld-arm/tls-gdesc-neg.s: New test.
  419. 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
  420. * configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
  421. * Makefile.am (TESTCTFLIB): Use it.
  422. (LIBCTF): Use the .la file.
  423. (check-DEJAGNU): Use it.
  424. * Makefile.in: Regenerated.
  425. * configure: Likewise.
  426. 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
  427. * ldlang.h: (struct lang_input_statement_struct): Add the_ctf.
  428. (struct elf_sym_strtab): Add forward.
  429. (struct elf_strtab_hash): Likewise.
  430. (ldlang_ctf_apply_strsym): Declare.
  431. (ldlang_write_ctf_late): Likewise.
  432. * ldemul.h (ldemul_emit_ctf_early): New.
  433. (ldemul_examine_strtab_for_ctf): Likewise.
  434. (ld_emulation_xfer_type) <emit_ctf_early>: Likewise.
  435. (ld_emulation_xfer_type) <examine_strtab_for_ctf>: Likewise.
  436. * ldemul.c (ldemul_emit_ctf_early): New.
  437. (ldemul_examine_strtab_for_ctf): Likewise.
  438. * ldlang.c: Include ctf-api.h.
  439. (CTF_COMPRESSION_THRESHOLD): New.
  440. (ctf_output): New. Initialized in...
  441. (ldlang_open_ctf): ... this new function. Open all the CTF
  442. sections in the input files: mark them non-loaded and empty
  443. so as not to copy their contents to the output, but linker-created
  444. so the section gets created in the target.
  445. (ldlang_merge_ctf): New, merge types via ctf_link_add_ctf and
  446. ctf_link.
  447. (ldlang_ctf_apply_strsym): New, an examine_strtab callback: wrap
  448. ldemul_examine_strtab_for_ctf.
  449. (lang_write_ctf): New, write out the CTF section.
  450. (ldlang_write_ctf_late): New, late call via bfd's emit_ctf hook.
  451. (lang_process): Call ldlang_open_ctf, ldlang_merge_ctf, and
  452. lang_write_ctf.
  453. * ldmain.c (link_callbacks): Add ldlang_ctf_apply_strsym,
  454. ldlang_write_ctf_late.
  455. * emultempl/aix.em: Add ctf-api.h.
  456. * emultempl/armcoff.em: Likewise.
  457. * emultempl/beos.em: Likewise.
  458. * emultempl/elf.em: Likewise.
  459. * emultempl/generic.em: Likewise.
  460. * emultempl/linux.em: Likewise.
  461. * emultempl/msp430.em: Likewise.
  462. * emultempl/pe.em: Likewise.
  463. * emultempl/pep.em: Likewise.
  464. * emultempl/ticoff.em: Likewise.
  465. * emultempl/vanilla.em: Likewise.
  466. * ldcref.c: Likewise.
  467. * ldctor.c: Likewise.
  468. * ldelf.c: Likewise.
  469. * ldelfgen.c: Likewise.
  470. * ldemul.c: Likewise.
  471. * ldexp.c: Likewise.
  472. * ldfile.c: Likewise.
  473. * ldgram.c: Likewise.
  474. * ldlex.l: Likewise.
  475. * ldmain.c: Likewise.
  476. * ldmisc.c: Likewise.
  477. * ldver.c: Likewise.
  478. * ldwrite.c: Likewise.
  479. * lexsup.c: Likewise.
  480. * mri.c: Likewise.
  481. * pe-dll.c: Likewise.
  482. * plugin.c: Likewise.
  483. * ldelfgen.c (ldelf_emit_ctf_early): New.
  484. (ldelf_examine_strtab_for_ctf): tell libctf about the symtab and
  485. strtab.
  486. (struct ctf_strsym_iter_cb_arg): New, state to do so.
  487. (ldelf_ctf_strtab_iter_cb): New: tell libctf about
  488. each string in the strtab in turn.
  489. (ldelf_ctf_symbols_iter_cb): New, tell libctf
  490. about each symbol in the symtab in turn.
  491. * ldelfgen.h (struct elf_sym_strtab): Add forward.
  492. (struct elf_strtab_hash): Likewise.
  493. (struct ctf_file): Likewise.
  494. (ldelf_emit_ctf_early): Declare.
  495. (ldelf_examine_strtab_for_ctf): Likewise.
  496. * emultempl/elf-generic.em (LDEMUL_EMIT_CTF_EARLY): Set it.
  497. (LDEMUL_EXAMINE_STRTAB_FOR_CTF): Likewise.
  498. * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
  499. emit_ctf_early and examine_strtab_for_ctf, NULL by default.
  500. * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
  501. * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
  502. * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
  503. * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
  504. * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
  505. * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
  506. * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
  507. * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
  508. * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
  509. * emultempl/vanilla.em (ld_vanilla_emulation): Likewise.
  510. * Makefile.am: Pull in libctf (and zlib, a transitive requirement
  511. for compressed CTF section emission). Pass it on to DejaGNU.
  512. * configure.ac: Add AM_ZLIB.
  513. * aclocal.m4: Added zlib.m4.
  514. * Makefile.in: Regenerated.
  515. * testsuite/ld-bootstrap/bootstrap.exp: Use it when relinking ld.
  516. 2019-10-02 Alan Modra <amodra@gmail.com>
  517. * ld.texi (-Bsymbolic, -Bsymbolic-functions): Don't mention PIEs.
  518. * ld.h (symbolic_enum, dynamic_list_enum),
  519. (args_type <symbolic, dynamic_list>): Move to..
  520. * lexsup.c (parse_args): ..here, using auto vars opt_symbolic
  521. and opt_dynamic_list rather than command_line fields. Only
  522. act on -Bsymbolic and -Bsymbolic-functions for shared library
  523. output. Free dynamic_list.
  524. 2019-09-26 Alan Modra <amodra@gmail.com>
  525. PR 24262
  526. * ld.texi (-plugin): Revert 2019-03-15 change.
  527. 2019-09-25 Alan Modra <amodra@gmail.com>
  528. * ld.texi (SORT_BY_ALIGNMENT): Reword slightly.
  529. (SORT_BY_INIT_PRIORITY): Elucidate.
  530. * ldlang.c: Include limits.h.
  531. (get_init_priority): Comment. Change param to a section,
  532. return an int. Sanity check priority digits. Support sorting
  533. more sections with trailing digits. Return -1 on error.
  534. (compare_section): Adjust.
  535. 2019-09-25 Nick Clifton <nickc@redhat.com>
  536. * emultempl/avrelf.em (_before_allocation): Silence build warning
  537. using clang.
  538. 2019-09-23 H.J. Lu <hongjiu.lu@intel.com>
  539. * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
  540. to read.
  541. 2019-09-23 Alan Modra <amodra@gmail.com>
  542. * deffilep.y: Include bfdlink.h.
  543. * ldelf.c: Likewise.
  544. * ldelfgen.c: Likewise.
  545. * ldver.c: Likewise.
  546. * mri.c: Likewise.
  547. * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
  548. Comment.
  549. 2019-09-23 Alan Modra <amodra@gmail.com>
  550. * emultempl/m68kelf.em: Include elf32-m68k.h.
  551. 2019-09-23 Alan Modra <amodra@gmail.com>
  552. * emultempl/bfin.em: Include elf32-bfin.h.
  553. 2019-09-23 Alan Modra <amodra@gmail.com>
  554. * emultempl/cr16elf.em: Include elf32-cr16.h.
  555. 2019-09-23 Alan Modra <amodra@gmail.com>
  556. * emultempl/aix.em: Include xcofflink.h.
  557. 2019-09-23 Alan Modra <amodra@gmail.com>
  558. * emultempl/armelf.em: Include elf32-arm.h.
  559. * emultempl/pe.em: Move func defines later and include coff-arm.h.
  560. 2019-09-23 Alan Modra <amodra@gmail.com>
  561. * emultempl/aarch64elf.em: Include elfxx-aarch64.h.
  562. 2019-09-23 Alan Modra <amodra@gmail.com>
  563. * emultempl/ia64elf.em: Include elfxx-ia64.h.
  564. 2019-09-23 Alan Modra <amodra@gmail.com>
  565. * emultempl/v850elf.em: Include elf32-v850.h.
  566. 2019-09-23 Alan Modra <amodra@gmail.com>
  567. * emultempl/cskyelf.em: Include elf32-csky.h.
  568. 2019-09-22 Alan Modra <amodra@gmail.com>
  569. * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
  570. 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
  571. * testsuite/ld-riscv-elf/weakref32.s: Add relaxable undef weak code.
  572. * testsuite/ld-riscv-elf/weakref64.s: Likewise.
  573. * testsuite/ld-riscv-elf/weakref32.d: Updated.
  574. * testsuite/ld-riscv-elf/weakref64.d: Updated.
  575. 2019-09-20 Alan Modra <amodra@gmail.com>
  576. * emultempl/xtensaelf.em (xtensa_get_section_deps): Comment.
  577. Use bfd_section_userdata.
  578. (xtensa_set_section_deps): Use bfd_set_section_userdata.
  579. * ldlang.c (lang_output_section_get): Use bfd_section_userdata.
  580. (sort_def_symbol): Likewise, and bfd_set_section_userdata.
  581. (init_os): Use bfd_set_section_userdata.
  582. (print_all_symbols): Use bfd_section_userdata.
  583. * ldlang.h (get_userdata): Delete.
  584. 2019-09-20 Alan Modra <amodra@gmail.com>
  585. * ldelf.c (ldelf_after_open, ldelf_place_orphan
  586. * ldlang.c (walk_wild_file, lang_process): Use bfd_usrdata.
  587. (load_symbols, ldlang_add_file): Use bfd_set_usrdata.
  588. * ldmain.c (add_archive_element): Use bfd_usrdata.
  589. * ldlang.h (bfd_input_just_syms): New inline function.
  590. * emultempl/aarch64elf.em (build_section_lists): Use it.
  591. * emultempl/mmo.em (mmo_place_orphan): Likewise.
  592. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  593. * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
  594. * emultempl/ppc64elf.em (build_section_lists): Likewise.
  595. 2019-09-18 Alan Modra <amodra@gmail.com>
  596. * ldcref.c, * ldctor.c, * ldelf.c, * ldlang.c, * pe-dll.c,
  597. * emultempl/aarch64elf.em, * emultempl/aix.em,
  598. * emultempl/armcoff.em, * emultempl/armelf.em,
  599. * emultempl/cr16elf.em, * emultempl/cskyelf.em,
  600. * emultempl/m68hc1xelf.em, * emultempl/m68kelf.em,
  601. * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
  602. * emultempl/mmo.em, * emultempl/msp430.em,
  603. * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
  604. * emultempl/ppc64elf.em, * emultempl/xtensaelf.em: Update
  605. throughout for bfd section macro and function changes.
  606. 2019-09-18 Alan Modra <amodra@gmail.com>
  607. * ldcref.c (check_reloc_refs): Update bfd_get_section to
  608. bfd_asymbol_section.
  609. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  610. * Makefile.in: Re-generate.
  611. * configure: Re-generate.
  612. 2019-09-18 Alan Modra <amodra@gmail.com>
  613. * ldlang.c (stricpy, strcut, name_compare): Constify params.
  614. (get_first_input_target): Make return and "target" const.
  615. 2019-09-18 Alan Modra <amodra@gmail.com>
  616. * emultempl/pe.em (after_open): Use bfd_set_filename.
  617. * emultempl/pep.em (after_open): Use bfd_set_filename.
  618. 2019-09-16 Alan Modra <amodra@gmail.com>
  619. PR 25002
  620. * ldelf.c: Include safe-ctype.h.
  621. 2019-09-16 Phil Blundell <pb@pbcl.net>
  622. * Makefile.in, configure: Regenerated.
  623. 2019-09-13 Alan Modra <amodra@gmail.com>
  624. * ldlang.c (new_afile): Remove add_to_list parameter.
  625. (lang_add_input_file): Update new_afile calls.
  626. (lookup_name): Splice input_statement added by new_afile into
  627. statement_list after current input_file_chain entry.
  628. (lang_process): Update comment.
  629. 2019-09-12 Alan Modra <amodra@gmail.com>
  630. * ldlang.c (print_input_statement): Do not exclude linker created
  631. BFDs.
  632. 2019-09-12 Alan Modra <amodra@gmail.com>
  633. PR 24981
  634. * ldlang.c (lang_process): Remove assertion. Comment.
  635. 2019-09-11 Alan Modra <amodra@gmail.com>
  636. * emultempl/elf32.em: Remove "misnamed" comment. Rename to..
  637. * emultempl/elf.em: ..this.
  638. * configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
  639. * emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
  640. * emulparams/aarch64elf.sh: Likewise.
  641. * emulparams/aarch64elf32.sh: Likewise.
  642. * emulparams/aarch64fbsd.sh: Likewise.
  643. * emulparams/aarch64linux.sh: Likewise.
  644. * emulparams/aarch64linux32.sh: Likewise.
  645. * emulparams/arcelf.sh: Likewise.
  646. * emulparams/arcelf_prof.sh: Likewise.
  647. * emulparams/arclinux.sh: Likewise.
  648. * emulparams/arclinux_prof.sh: Likewise.
  649. * emulparams/arcv2elf.sh: Likewise.
  650. * emulparams/arcv2elfx.sh: Likewise.
  651. * emulparams/armelf.sh: Likewise.
  652. * emulparams/armelf_fuchsia.sh: Likewise.
  653. * emulparams/armelf_linux.sh: Likewise.
  654. * emulparams/armelf_phoenix.sh: Likewise.
  655. * emulparams/armnto.sh: Likewise.
  656. * emulparams/avr1.sh: Likewise.
  657. * emulparams/avr2.sh: Likewise.
  658. * emulparams/avr25.sh: Likewise.
  659. * emulparams/avr3.sh: Likewise.
  660. * emulparams/avr31.sh: Likewise.
  661. * emulparams/avr35.sh: Likewise.
  662. * emulparams/avr4.sh: Likewise.
  663. * emulparams/avr5.sh: Likewise.
  664. * emulparams/avr51.sh: Likewise.
  665. * emulparams/avr6.sh: Likewise.
  666. * emulparams/avrtiny.sh: Likewise.
  667. * emulparams/avrxmega1.sh: Likewise.
  668. * emulparams/avrxmega2.sh: Likewise.
  669. * emulparams/avrxmega3.sh: Likewise.
  670. * emulparams/avrxmega4.sh: Likewise.
  671. * emulparams/avrxmega5.sh: Likewise.
  672. * emulparams/avrxmega6.sh: Likewise.
  673. * emulparams/avrxmega7.sh: Likewise.
  674. * emulparams/criself.sh: Likewise.
  675. * emulparams/crislinux.sh: Likewise.
  676. * emulparams/cskyelf.sh: Likewise.
  677. * emulparams/d10velf.sh: Likewise.
  678. * emulparams/elf32_sparc.sh: Likewise.
  679. * emulparams/elf32_spu.sh: Likewise.
  680. * emulparams/elf32_tic6x_le.sh: Likewise.
  681. * emulparams/elf32_x86_64.sh: Likewise.
  682. * emulparams/elf32am33lin.sh: Likewise.
  683. * emulparams/elf32bfin.sh: Likewise.
  684. * emulparams/elf32bfinfd.sh: Likewise.
  685. * emulparams/elf32bmip.sh: Likewise.
  686. * emulparams/elf32bmipn32-defs.sh: Likewise.
  687. * emulparams/elf32cr16.sh: Likewise.
  688. * emulparams/elf32cr16c.sh: Likewise.
  689. * emulparams/elf32crx.sh: Likewise.
  690. * emulparams/elf32epiphany.sh: Likewise.
  691. * emulparams/elf32epiphany_4x4.sh: Likewise.
  692. * emulparams/elf32frvfd.sh: Likewise.
  693. * emulparams/elf32ip2k.sh: Likewise.
  694. * emulparams/elf32lm32.sh: Likewise.
  695. * emulparams/elf32lm32fd.sh: Likewise.
  696. * emulparams/elf32lriscv-defs.sh: Likewise.
  697. * emulparams/elf32m32c.sh: Likewise.
  698. * emulparams/elf32mb_linux.sh: Likewise.
  699. * emulparams/elf32mbel_linux.sh: Likewise.
  700. * emulparams/elf32mcore.sh: Likewise.
  701. * emulparams/elf32mep.sh: Likewise.
  702. * emulparams/elf32metag.sh: Likewise.
  703. * emulparams/elf32microblaze.sh: Likewise.
  704. * emulparams/elf32mipswindiss.sh: Likewise.
  705. * emulparams/elf32or1k.sh: Likewise.
  706. * emulparams/elf32ppccommon.sh: Likewise.
  707. * emulparams/elf32rl78.sh: Likewise.
  708. * emulparams/elf32rx.sh: Likewise.
  709. * emulparams/elf32tilegx.sh: Likewise.
  710. * emulparams/elf32tilepro.sh: Likewise.
  711. * emulparams/elf32vax.sh: Likewise.
  712. * emulparams/elf32visium.sh: Likewise.
  713. * emulparams/elf32xc16x.sh: Likewise.
  714. * emulparams/elf32xc16xl.sh: Likewise.
  715. * emulparams/elf32xc16xs.sh: Likewise.
  716. * emulparams/elf32xstormy16.sh: Likewise.
  717. * emulparams/elf32xtensa.sh: Likewise.
  718. * emulparams/elf64_aix.sh: Likewise.
  719. * emulparams/elf64_ia64.sh: Likewise.
  720. * emulparams/elf64_s390.sh: Likewise.
  721. * emulparams/elf64_sparc.sh: Likewise.
  722. * emulparams/elf64alpha.sh: Likewise.
  723. * emulparams/elf64bpf.sh: Likewise.
  724. * emulparams/elf64hppa.sh: Likewise.
  725. * emulparams/elf64mmix.sh: Likewise.
  726. * emulparams/elf64rdos.sh: Likewise.
  727. * emulparams/elf64tilegx.sh: Likewise.
  728. * emulparams/elf_i386.sh: Likewise.
  729. * emulparams/elf_i386_be.sh: Likewise.
  730. * emulparams/elf_i386_ldso.sh: Likewise.
  731. * emulparams/elf_i386_vxworks.sh: Likewise.
  732. * emulparams/elf_iamcu.sh: Likewise.
  733. * emulparams/elf_k1om.sh: Likewise.
  734. * emulparams/elf_l1om.sh: Likewise.
  735. * emulparams/elf_s390.sh: Likewise.
  736. * emulparams/elf_x86_64.sh: Likewise.
  737. * emulparams/h8300elf.sh: Likewise.
  738. * emulparams/h8300elf_linux.sh: Likewise.
  739. * emulparams/hppa64linux.sh: Likewise.
  740. * emulparams/hppaelf.sh: Likewise.
  741. * emulparams/hppalinux.sh: Likewise.
  742. * emulparams/i386lynx.sh: Likewise.
  743. * emulparams/i386moss.sh: Likewise.
  744. * emulparams/i386nto.sh: Likewise.
  745. * emulparams/m32relf.sh: Likewise.
  746. * emulparams/m32relf_linux.sh: Likewise.
  747. * emulparams/m68hc11elf.sh: Likewise.
  748. * emulparams/m68hc11elfb.sh: Likewise.
  749. * emulparams/m68hc12elf.sh: Likewise.
  750. * emulparams/m68hc12elfb.sh: Likewise.
  751. * emulparams/m68kelf.sh: Likewise.
  752. * emulparams/mn10300.sh: Likewise.
  753. * emulparams/nds32elf.sh: Likewise.
  754. * emulparams/nds32elf16m.sh: Likewise.
  755. * emulparams/nds32elf_linux.sh: Likewise.
  756. * emulparams/nios2elf.sh: Likewise.
  757. * emulparams/nios2linux.sh: Likewise.
  758. * emulparams/pruelf.sh: Likewise.
  759. * emulparams/score3_elf.sh: Likewise.
  760. * emulparams/shelf.sh: Likewise.
  761. * emulparams/shelf_nto.sh: Likewise.
  762. * emulparams/shelf_vxworks.sh: Likewise.
  763. * emulparams/shlelf_linux.sh: Likewise.
  764. * emulparams/shlelf_nto.sh: Likewise.
  765. * emulparams/v850.sh: Likewise.
  766. * emulparams/v850_rh850.sh: Likewise.
  767. * ldelf.c: Update comment.
  768. * ldelf.h: Likewise.
  769. * emultempl/aarch64elf.em: Likewise.
  770. * emultempl/alphaelf.em: Likewise.
  771. * emultempl/arclinux.em: Likewise.
  772. * emultempl/armelf.em: Likewise.
  773. * emultempl/avrelf.em: Likewise.
  774. * emultempl/bfin.em: Likewise.
  775. * emultempl/cr16elf.em: Likewise.
  776. * emultempl/crxelf.em: Likewise.
  777. * emultempl/cskyelf.em: Likewise.
  778. * emultempl/elf-generic.em: Likewise.
  779. * emultempl/elf-x86.em: Likewise.
  780. * emultempl/epiphanyelf_4x4.em: Likewise.
  781. * emultempl/hppaelf.em: Likewise.
  782. * emultempl/ia64elf.em: Likewise.
  783. * emultempl/m68hc1xelf.em: Likewise.
  784. * emultempl/m68kelf.em: Likewise.
  785. * emultempl/metagelf.em: Likewise.
  786. * emultempl/mmix-elfnmmo.em: Likewise.
  787. * emultempl/mmixelf.em: Likewise.
  788. * emultempl/mmo.em: Likewise.
  789. * emultempl/needrelax.em: Likewise.
  790. * emultempl/nios2elf.em: Likewise.
  791. * emultempl/ppc32elf.em: Likewise.
  792. * emultempl/ppc64elf.em: Likewise.
  793. * emultempl/pruelf.em: Likewise.
  794. * emultempl/rxelf.em: Likewise.
  795. * emultempl/scoreelf.em: Likewise.
  796. * emultempl/spuelf.em: Likewise.
  797. * emultempl/tic6xdsbt.em: Likewise.
  798. * emultempl/v850elf.em: Likewise.
  799. * emultempl/vms.em: Likewise.
  800. * emultempl/vxworks.em: Likewise.
  801. * emultempl/xtensaelf.em: Likewise.
  802. * scripttempl/arclinux.sc: Likewise.
  803. * scripttempl/armbpabi.sc: Likewise.
  804. * scripttempl/elf.sc: Likewise.
  805. * scripttempl/elf64bpf.sc: Likewise.
  806. * scripttempl/elf64hppa.sc: Likewise.
  807. * scripttempl/elf_chaos.sc: Likewise.
  808. * scripttempl/elfarc.sc: Likewise.
  809. * scripttempl/elfarcv2.sc: Likewise.
  810. * scripttempl/elfd10v.sc: Likewise.
  811. * scripttempl/elfm68hc11.sc: Likewise.
  812. * scripttempl/elfm68hc12.sc: Likewise.
  813. * scripttempl/elfm9s12z.sc: Likewise.
  814. * scripttempl/elfxgate.sc: Likewise.
  815. * scripttempl/elfxtensa.sc: Likewise.
  816. * scripttempl/epiphany_4x4.sc: Likewise.
  817. * scripttempl/iq2000.sc: Likewise.
  818. * scripttempl/mep.sc: Likewise.
  819. * scripttempl/nds32elf.sc: Likewise.
  820. * scripttempl/v850.sc: Likewise.
  821. * scripttempl/v850_rh850.sc: Likewise.
  822. * scripttempl/xstormy16.sc: Likewise.
  823. * testsuite/ld-arm/arm-dyn.ld: Likewise.
  824. * testsuite/ld-arm/arm-lib.ld: Likewise.
  825. * testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
  826. * testsuite/ld-arm/fdpic-main.ld: Likewise.
  827. * testsuite/ld-arm/fdpic-shared.ld: Likewise.
  828. * testsuite/ld-elf/elf.exp: Likewise.
  829. * testsuite/ld-elf/orphan-region.d: Likewise.
  830. * testsuite/ld-elf/orphan.d: Likewise.
  831. * testsuite/ld-elf/pr349.d: Likewise.
  832. * testsuite/ld-elf/warn2.d: Likewise.
  833. * testsuite/ld-elfvsb/elf-offset.ld: Likewise.
  834. * testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
  835. * testsuite/ld-mips-elf/mips-lib.ld: Likewise.
  836. * testsuite/ld-scripts/dynamic-sections.t: Likewise.
  837. * testsuite/ld-shared/elf-offset.ld: Likewise.
  838. * configure: Regenerate.
  839. 2019-09-11 Alan Modra <amodra@gmail.com>
  840. * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
  841. (CFILES, HFILES, EXTRA_ld_new_SOURCES): Likewise.
  842. * configure.tgt: Formatting.
  843. (targ_extra_ofiles): Init to ldelf.o ldelfgen.o, reset to just
  844. ldelfgen.o for generic ELF targets, and empty for non-ELF.
  845. * emultempl/aarch64elf.em (gldaarch64_layout_sections_again): Use
  846. ldelf_map_segments.
  847. (gld${EMULATION_NAME}_after_allocation): Likewise.
  848. (real_func, aarch64_for_each_input_file_wrapper),
  849. (aarch64_lang_for_each_input_file): Delete.
  850. (lang_for_each_input_file): Don't define.
  851. * emultempl/alphaelf.em (alpha_after_parse): Use ldelf_map_segments.
  852. * emultempl/armelf.em (gldarm_layout_sections_again): Likewise.
  853. (gld${EMULATION_NAME}_after_allocation): Likewise.
  854. (real_func, arm_for_each_input_file_wrapper),
  855. (arm_lang_for_each_input_file): Delete.
  856. (lang_for_each_input_file): Don't define.
  857. * emultempl/cr16elf.em (cr16elf_after_parse): Use ldelf_map_segments.
  858. * emultempl/crxelf.em (crxelf_after_parse): Likewise. Delete
  859. declaration.
  860. * emultempl/cskyelf.em (gldcsky_layout_sections_again): Use
  861. ldelf_map_segments.
  862. (gld${EMULATION_NAME}_after_allocation): Likewise.
  863. (real_func, csky_for_each_input_file_wrapper),
  864. (csky_lang_for_each_input_file): Delete.
  865. (lang_for_each_input_file): Don't define.
  866. * emultempl/genelf.em: Include ldelfgen.h.
  867. (gld${EMULATION_NAME}_before_allocation): Use ldelf_map_segments.
  868. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
  869. (hppaelf_layout_sections_again): Likewise.
  870. (gld${EMULATION_NAME}_after_allocation): Likewise.
  871. (real_func, hppa_for_each_input_file_wrapper),
  872. (hppa_lang_for_each_input_file): Delete.
  873. (lang_for_each_input_file): Don't define.
  874. * emultempl/ia64elf.em (ia64elf_after_parse): Use ldelf_map_segments.
  875. * emultempl/m68hc1xelf.em (real_func),
  876. (m68hc11_for_each_input_file_wrapper),
  877. (m68hc11_lang_for_each_input_file): Delete.
  878. (lang_for_each_input_file): Don't define.
  879. * emultempl/metagelf.em (metagelf_layout_sections_again): Use
  880. ldelf_map_segments.
  881. (gld${EMULATION_NAME}_after_allocation): Likewise.
  882. (real_func, metag_for_each_input_file_wrapper),
  883. (metag_lang_for_each_input_file): Delete.
  884. (lang_for_each_input_file): Don't define.
  885. * emultempl/mipself.em (real_func),
  886. (mips_for_each_input_file_wrapper),
  887. (mips_lang_for_each_input_file): Delete.
  888. (lang_for_each_input_file): Don't define.
  889. * emultempl/mmo.em: Don't include elf-bfd.h, do include ldelfgen.h.
  890. (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
  891. * emultempl/nds32elf.em (nds32_elf_after_parse): Use ldelf_after_parse.
  892. (nds32_elf_after_allocation): Comment fix.
  893. * emultempl/nios2elf.em (nios2elf_layout_sections_again): Use
  894. ldelf_map_segments.
  895. (gld${EMULATION_NAME}_after_allocation): Likewise.
  896. (real_func, nios2_for_each_input_file_wrapper),
  897. (nios2_lang_for_each_input_file): Delete.
  898. (lang_for_each_input_file): Don't define.
  899. * emultempl/ppc32elf.em (gld${EMULATION_NAME}_load_symbols): Delete
  900. declaration.
  901. (ppc_recognized_file): Call ldelf_load_symbols.
  902. * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
  903. (gld${EMULATION_NAME}_after_allocation): Likewise.
  904. (real_func, ppc_for_each_input_file_wrapper),
  905. (ppc_lang_for_each_input_file): Delete.
  906. (lang_for_each_input_file): Don't define.
  907. (gld${EMULATION_NAME}_load_symbols): Don't declare.
  908. (ppc64_recognized_file): Call ldelf_load_symbols.
  909. * emultempl/riscvelf.em (gld${EMULATION_NAME}_after_allocation):
  910. Use ldelf_map_segments.
  911. * emultempl/spuelf.em (spu_place_special_section): Use
  912. ldelf_place_orphan.
  913. * emultempl/tic6xdsbt.em (gld${EMULATION_NAME}_after_allocation):
  914. Use ldelf_map_segments.
  915. * emultempl/vms.em: Include ldelfgen.h.
  916. (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
  917. * emultempl/elf32.em: Remove unnecessary headers, include ldelf.h
  918. and ldelfgen.h. Move much of file content to..
  919. * ldelf.c: ..here. New file.
  920. * ldelf.h: New file.
  921. * emultempl/elf-generic.em: Move gld${EMULATION_NAME}_map_segments..
  922. * ldelfgen.c: ..to here.
  923. * ldelfgen.h: New file.
  924. * ldlang.c (lang_for_each_input_file): Adjust to only call func
  925. on real files.
  926. (lang_for_each_file): Likewise.
  927. * po/SRC-POTFILES.in: Regenerate.
  928. * Makefile.in: Regenerate.
  929. 2019-09-11 Alan Modra <amodra@gmail.com>
  930. * ldmisc.c: Don't #include elf-bfd.h or coff-bfd.h.
  931. (vfinfo): Use bfd_group_name.
  932. 2019-09-11 Alan Modra <amodra@gmail.com>
  933. * plugin.c (asymbol_from_plugin_symbol): Move code handling
  934. ELF common symbols to block handling ELF visibility. Simplify
  935. visibility setting.
  936. 2019-09-09 H.J. Lu <hongjiu.lu@intel.com>
  937. PR binutils/24887
  938. * testsuite/ld-i386/property-1.r: Adjust for new output format
  939. from readelf.
  940. * testsuite/ld-i386/property-1a.r: Likewise.
  941. * testsuite/ld-i386/property-2.r: Likewise.
  942. * testsuite/ld-i386/property-2a.r: Likewise.
  943. * testsuite/ld-i386/property-3.r: Likewise.
  944. * testsuite/ld-i386/property-3a.r: Likewise.
  945. * testsuite/ld-i386/property-4.r: Likewise.
  946. * testsuite/ld-i386/property-4a.r: Likewise.
  947. * testsuite/ld-i386/property-5.r: Likewise.
  948. * testsuite/ld-i386/property-5a.r: Likewise.
  949. * testsuite/ld-i386/property-6.r: Likewise.
  950. * testsuite/ld-i386/property-7.r: Likewise.
  951. * testsuite/ld-i386/property-7a.r: Likewise.
  952. * testsuite/ld-i386/property-1.r: Likewise.
  953. * testsuite/ld-i386/property-1a.r: Likewise.
  954. * testsuite/ld-i386/property-2.r: Likewise.
  955. * testsuite/ld-i386/property-2a.r: Likewise.
  956. * testsuite/ld-i386/property-3.r: Likewise.
  957. * testsuite/ld-i386/property-3a.r: Likewise.
  958. * testsuite/ld-i386/property-4.r: Likewise.
  959. * testsuite/ld-i386/property-4a.r: Likewise.
  960. * testsuite/ld-i386/property-5.r: Likewise.
  961. * testsuite/ld-i386/property-5a.r: Likewise.
  962. * testsuite/ld-i386/property-6.r: Likewise.
  963. * testsuite/ld-i386/property-7.r: Likewise.
  964. * testsuite/ld-i386/property-7a.r: Likewise.
  965. 2019-09-09 Phil Blundell <pb@pbcl.net>
  966. binutils 2.33 branch created.
  967. 2019-09-06 Alan Modra <amodra@gmail.com>
  968. * emultempl/beos.em (sort_by_file_name): Use appropriate
  969. intermediary variables.
  970. (sort_by_section_name): Likewise.
  971. 2019-09-06 Alan Modra <amodra@gmail.com>
  972. * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
  973. variable.
  974. * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
  975. * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
  976. 2019-09-05 Eric Botcazou <ebotcazou@adacore.com>
  977. PR ld/24574
  978. * pe-dll.c (pe_find_data_imports): Replace again the original name of
  979. the undefined symbol with the __imp_ prefixed one after it is resolved.
  980. 2019-09-05 Alan Modra <amodra@gmail.com>
  981. * testsuite/ld-powerpc/pcrelopt.s,
  982. * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
  983. second instruction.
  984. 2019-08-29 Alan Modra <amodra@gmail.com>
  985. PR ld/24406
  986. * plugin.c (get_symbols): Test link_info.wrap_hash before calling
  987. unwrap_hash_lookup.
  988. 2019-08-22 Tamar Christina <tamar.christina@arm.com>
  989. PR ld/24601
  990. * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
  991. * testsuite/ld-aarch64/undef-tls.d: New test.
  992. * testsuite/ld-aarch64/undef-tls.s: New test.
  993. * testsuite/ld-aarch64/weak-tls.d: New test.
  994. * testsuite/ld-aarch64/weak-tls.s: New test.
  995. 2019-08-20 Tamar Christina <tamar.christina@arm.com>
  996. * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
  997. * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
  998. * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
  999. * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
  1000. * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
  1001. * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
  1002. * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
  1003. * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
  1004. * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
  1005. * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
  1006. * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
  1007. * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
  1008. * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
  1009. * testsuite/ld-arm/ifunc-10.dd: Likewise.
  1010. * testsuite/ld-arm/ifunc-2.dd: Likewise.
  1011. * testsuite/ld-arm/ifunc-4.dd: Likewise.
  1012. * testsuite/ld-arm/ifunc-6.dd: Likewise.
  1013. * testsuite/ld-arm/ifunc-8.dd: Likewise.
  1014. * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
  1015. * testsuite/ld-arm/mixed-app.d: Likewise.
  1016. * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
  1017. * testsuite/ld-arm/tls-longplt.d: Likewise.
  1018. * testsuite/ld-arm/tls-thumb1.d: Likewise.
  1019. 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
  1020. PR ld/24905
  1021. * testsuite/ld-x86-64/pr24905-x32.d: New file.
  1022. * testsuite/ld-x86-64/pr24905.d: Likewise.
  1023. * testsuite/ld-x86-64/pr24905.s: Likewise.
  1024. * testsuite/ld-x86-64/pr24905.t: Likewise.
  1025. * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
  1026. 2019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
  1027. * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
  1028. section.
  1029. 2019-08-16 Alan Modra <amodra@gmail.com>
  1030. * emultempl/ppc32elf.em (ppc_before_allocation): Force running
  1031. prelim_size_sections before deciding whether branch trampolines
  1032. might be needed.
  1033. 2019-08-15 Jim Wilson <jimw@sifive.com>
  1034. * testsuite/ld-riscv-elf/c-lui-2.d: New.
  1035. * testsuite/ld-riscv-elf/c-lui-2.ld: New.
  1036. * testsuite/ld-riscv-elf/c-lui-2.s: New.
  1037. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
  1038. 2019-08-10 Alan Modra <amodra@gmail.com>
  1039. * ldlang.h (enum statement_enum): Sort.
  1040. (union lang_statement_union): Sort.
  1041. 2019-08-10 Alan Modra <amodra@gmail.com>
  1042. * ldlang.h (lang_common_statement_type): Delete.
  1043. (lang_object_symbols_statement_type): Delete.
  1044. (union lang_statement_union): Remove common_statement and
  1045. object_symbols_statement.
  1046. 2019-08-10 Alan Modra <amodra@gmail.com>
  1047. * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
  1048. (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
  1049. stat_alloc return value.
  1050. * ldlang.c (new_statement, new_afile, sort_def_symbol),
  1051. (lang_memory_region_lookup, lang_memory_region_alias),
  1052. (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
  1053. (lang_add_gc_name, lang_new_phdr): Likewise.
  1054. * lexsup.c (set_segment_start): Likewise.
  1055. 2019-08-10 Alan Modra <amodra@gmail.com>
  1056. * ldlang.h (lang_input_statement_type): Make next
  1057. and next_real_file a lang_input_statement_type pointer.
  1058. (lang_statement_append): Delete prototype.
  1059. (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
  1060. change.
  1061. * ldmain.c (add_archive_element): Likewise.
  1062. * ldlang.c: Likewise throughout.
  1063. (lang_statement_append): Make static. Make element and field
  1064. void pointers. Remove casts in calls.
  1065. (lang_check): Use a lang_input_statement_type pointer for "file".
  1066. (find_rescan_insertion): Similarly for "iter" and return value.
  1067. (lang_process): Similarly for "insert", "iter" and "temp".
  1068. * emultempl/spuelf.em (embedded_spu_file): Likewise.
  1069. * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
  1070. lang_statment_append call.
  1071. 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
  1072. * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
  1073. * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
  1074. * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
  1075. * emultempl/mipself.em: Remove mips_after_parse function.
  1076. * testsuite/ld-elf/hash.d: Update comment.
  1077. * testsuite/ld-mips-elf/hash1.d: New test.
  1078. * testsuite/ld-mips-elf/hash1.s: Ditto.
  1079. * testsuite/ld-mips-elf/hash1a.d: Remove.
  1080. * testsuite/ld-mips-elf/hash1b.d: Ditto.
  1081. * testsuite/ld-mips-elf/hash1c.d: Ditto
  1082. * testsuite/ld-mips-elf/hash2.d: New test.
  1083. * testsuite/ld-mips-elf/mips-elf.exp: New tests.
  1084. * testsuite/ld-mips-elf/start.s: New test.
  1085. 2019-08-08 Nick Clifton <nickc@redhat.com>
  1086. PR 24887
  1087. * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
  1088. from readelf.
  1089. * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
  1090. * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
  1091. * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
  1092. * testsuite/ld-aarch64/bti-warn.d: Likewise.
  1093. * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
  1094. * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
  1095. * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
  1096. * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
  1097. * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
  1098. * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
  1099. * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
  1100. * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
  1101. * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
  1102. * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
  1103. * testsuite/ld-i386/pr23372a.d: Likewise.
  1104. * testsuite/ld-i386/pr23372c.d: Likewise.
  1105. * testsuite/ld-i386/pr23486a.d: Likewise.
  1106. * testsuite/ld-i386/pr23486b.d: Likewise.
  1107. * testsuite/ld-i386/pr23486c.d: Likewise.
  1108. * testsuite/ld-i386/pr23486d.d: Likewise.
  1109. * testsuite/ld-i386/pr24322a.d: Likewise.
  1110. * testsuite/ld-i386/pr24322b.d: Likewise.
  1111. * testsuite/ld-i386/property-x86-3.d: Likewise.
  1112. * testsuite/ld-i386/property-x86-4a.d: Likewise.
  1113. * testsuite/ld-i386/property-x86-5.d: Likewise.
  1114. * testsuite/ld-i386/property-x86-cet1.d: Likewise.
  1115. * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
  1116. * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
  1117. * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
  1118. * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
  1119. * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
  1120. * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
  1121. * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
  1122. * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
  1123. * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
  1124. * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
  1125. * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
  1126. * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
  1127. * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
  1128. * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
  1129. * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
  1130. * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
  1131. * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
  1132. * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
  1133. * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
  1134. * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
  1135. * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
  1136. * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
  1137. * testsuite/ld-x86-64/pr23372a.d: Likewise.
  1138. * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
  1139. * testsuite/ld-x86-64/pr23372c.d: Likewise.
  1140. * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
  1141. * testsuite/ld-x86-64/pr23486a.d: Likewise.
  1142. * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
  1143. * testsuite/ld-x86-64/pr23486b.d: Likewise.
  1144. * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
  1145. * testsuite/ld-x86-64/pr23486c.d: Likewise.
  1146. * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
  1147. * testsuite/ld-x86-64/pr23486d.d: Likewise.
  1148. * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
  1149. * testsuite/ld-x86-64/pr24322a.d: Likewise.
  1150. * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
  1151. * testsuite/ld-x86-64/pr24322b.d: Likewise.
  1152. * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
  1153. * testsuite/ld-x86-64/pr24458a.d: Likewise.
  1154. * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
  1155. * testsuite/ld-x86-64/pr24458b.d: Likewise.
  1156. * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
  1157. * testsuite/ld-x86-64/pr24458c.d: Likewise.
  1158. * testsuite/ld-x86-64/property-1.r: Likewise.
  1159. * testsuite/ld-x86-64/property-1a.r: Likewise.
  1160. * testsuite/ld-x86-64/property-2.r: Likewise.
  1161. * testsuite/ld-x86-64/property-2a.r: Likewise.
  1162. * testsuite/ld-x86-64/property-3.r: Likewise.
  1163. * testsuite/ld-x86-64/property-3a.r: Likewise.
  1164. * testsuite/ld-x86-64/property-4.r: Likewise.
  1165. * testsuite/ld-x86-64/property-4a.r: Likewise.
  1166. * testsuite/ld-x86-64/property-5.r: Likewise.
  1167. * testsuite/ld-x86-64/property-5a.r: Likewise.
  1168. * testsuite/ld-x86-64/property-6.r: Likewise.
  1169. * testsuite/ld-x86-64/property-7.r: Likewise.
  1170. * testsuite/ld-x86-64/property-7a.r: Likewise.
  1171. * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
  1172. * testsuite/ld-x86-64/property-x86-3.d: Likewise.
  1173. * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
  1174. * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
  1175. * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
  1176. * testsuite/ld-x86-64/property-x86-5.d: Likewise.
  1177. * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
  1178. * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
  1179. * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
  1180. * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
  1181. * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
  1182. * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
  1183. * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
  1184. * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
  1185. * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
  1186. * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
  1187. * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
  1188. * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
  1189. * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
  1190. * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
  1191. * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
  1192. * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
  1193. * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
  1194. * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
  1195. * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
  1196. * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
  1197. * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
  1198. * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
  1199. * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
  1200. * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
  1201. * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
  1202. * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
  1203. * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
  1204. * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
  1205. * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
  1206. * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
  1207. * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
  1208. * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
  1209. * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
  1210. * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
  1211. * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
  1212. * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
  1213. 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
  1214. * scripttempl/elf64bpf.sc: Adapted from elf.sc.
  1215. * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
  1216. (EMBEDDED): Define.
  1217. * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
  1218. undefined entry symbol.
  1219. * testsuite/ld-bpf/jump-1.d: Likewise.
  1220. * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
  1221. ld in BPF targets, and do not expect line number information.
  1222. * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
  1223. in BPF targets.
  1224. 2019-08-06 Alan Modra <amodra@gmail.com>
  1225. PR 24873
  1226. * ldlang.c (find_replacements_insert_point): Return "before" flag.
  1227. (find_next_input_statement): New function.
  1228. (lang_process): When placing recompiled LTO objects before a
  1229. claimed archive, place them immediately before in the statement
  1230. list.
  1231. 2019-08-06 Alan Modra <amodra@gmail.com>
  1232. PR 24873
  1233. * ldlang.c (plugin_undefs): New static var.
  1234. (open_input_bfds <lang_group_statement_enum>): Loop on
  1235. plugin_undefs and hitting plugin_insert point.
  1236. (lang_process <lto_plugin_active>): Set plugin_undefs.
  1237. 2019-08-02 Alan Modra <amodra@gmail.com>
  1238. * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
  1239. 2019-08-01 Alan Modra <amodra@gmail.com>
  1240. PR 24806
  1241. * ldlang.c (process_insert_statements): Add start of list
  1242. parameter. Use rather than lang_os_list.head. Process insert
  1243. statements inside group statements with a recursive call.
  1244. (lang_process): Adjust process_insert_statements call.
  1245. * lexsup.c (parse_args): Warn when adding missing --end-group.
  1246. 2019-08-01 Alan Modra <amodra@gmail.com>
  1247. * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
  1248. * ldlang.c: Likewise throughout file.
  1249. * emultempl/alphaelf.em: Likewise.
  1250. * emultempl/elf32.em: Likewise.
  1251. * emultempl/mmo.em: Likewise.
  1252. * emultempl/pe.em: Likewise.
  1253. * emultempl/pep.em: Likewise.
  1254. * emultempl/ppc32elf.em: Likewise.
  1255. * emultempl/spuelf.em: Likewise.
  1256. 2019-07-26 Alan Modra <amodra@gmail.com>
  1257. * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
  1258. * testsuite/ld-plugin/lto-5r.d: Likewise.
  1259. 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
  1260. * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
  1261. of __gnu_lto_v.*.
  1262. * testsuite/ld-plugin/lto-5r.d: Likewise.
  1263. * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
  1264. 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
  1265. * ld-arc/relax-local-pic.d: New test.
  1266. * ld-arc/relax-local-pic.s: New file.
  1267. 2019-07-22 Martin Liska <mliska@suse.cz>
  1268. * testsuite/ld-plugin/lto-3r.d: Remove.
  1269. * testsuite/ld-plugin/lto-5r.d: Remove.
  1270. * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
  1271. tests.
  1272. 2019-07-23 Alan Modra <amodra@gmail.com>
  1273. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
  1274. SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
  1275. 2019-07-23 Alan Modra <amodra@gmail.com>
  1276. * testsuite/ld-elf/size-1.d,
  1277. * testsuite/ld-elf/size-1.s,
  1278. * testsuite/ld-elf/size-1.t: New test.
  1279. * testsuite/ld-elf/size-2.d,
  1280. * testsuite/ld-elf/size-2.s,
  1281. * testsuite/ld-elf/size-2.t: New test.
  1282. * testsuite/ld-scripts/size-1.d,
  1283. * testsuite/ld-scripts/size-1.s,
  1284. * testsuite/ld-scripts/size-1.t,
  1285. * testsuite/ld-scripts/size-2.s,
  1286. * testsuite/ld-scripts/size-2.d,
  1287. * testsuite/ld-scripts/size-2.t,
  1288. * testsuite/ld-scripts/size.exp: Delete.
  1289. 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
  1290. * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
  1291. allow for output from a arm-none-linux-gnueabihf target.
  1292. 2019-07-20 Alan Modra <amodra@gmail.com>
  1293. PR 24827
  1294. * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
  1295. 2019-07-19 Alan Modra <amodra@gmail.com>
  1296. * testsuite/ld-powerpc/tlsgd.d,
  1297. * testsuite/ld-powerpc/tlsgd.s,
  1298. * testsuite/ld-powerpc/tlsie.d,
  1299. * testsuite/ld-powerpc/tlsie.s,
  1300. * testsuite/ld-powerpc/tlsld.d,
  1301. * testsuite/ld-powerpc/tlsld.s: New tests.
  1302. * testsuite/ld-powerpc/powerpc.exp: Run them.
  1303. 2019-07-19 Alan Modra <amodra@gmail.com>
  1304. * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
  1305. * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
  1306. * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
  1307. * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
  1308. * testsuite/ld-powerpc/powerpc.exp: Update.
  1309. 2019-07-19 Alan Modra <amodra@gmail.com>
  1310. PR 24819
  1311. * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
  1312. 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
  1313. PR ld/24819
  1314. * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
  1315. member of output section group when doing a relocatable link.
  1316. * testsuite/ld-elf/pr24819.d: New file.
  1317. * testsuite/ld-elf/pr24819.s: Likewise.
  1318. 2019-07-13 Alan Modra <amodra@gmail.com>
  1319. * testsuite/ld-powerpc/tlsso.r: Update.
  1320. * testsuite/ld-powerpc/tlsso32.g: Update.
  1321. * testsuite/ld-powerpc/tlsso32.r: Update.
  1322. * testsuite/ld-powerpc/tlstocso.r: Update.
  1323. * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
  1324. * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
  1325. * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
  1326. * testsuite/ld-cris/tls-gd-1.d: Update.
  1327. * testsuite/ld-cris/tls-gd-1h.d: Update.
  1328. * testsuite/ld-cris/tls-gd-2.d: Update.
  1329. * testsuite/ld-cris/tls-gd-2h.d: Update.
  1330. * testsuite/ld-cris/tls-ie-10.d: Update.
  1331. * testsuite/ld-cris/tls-ie-11.d: Update.
  1332. * testsuite/ld-cris/tls-ie-8.d: Update.
  1333. * testsuite/ld-cris/tls-ie-9.d: Update.
  1334. * testsuite/ld-cris/tls-js1.d: Update.
  1335. * testsuite/ld-cris/tls-ld-4.d: Update.
  1336. * testsuite/ld-cris/tls-ld-5.d: Update.
  1337. * testsuite/ld-cris/tls-ld-6.d: Update.
  1338. * testsuite/ld-cris/tls-ld-7.d: Update.
  1339. * testsuite/ld-cris/tls-ldgd-14.d: Update.
  1340. * testsuite/ld-cris/tls-ldgd-15.d: Update.
  1341. * testsuite/ld-cris/tls-ldgdx-14.d: Update.
  1342. * testsuite/ld-cris/tls-ldgdx-15.d: Update.
  1343. * testsuite/ld-cris/tls-local-54.d: Update.
  1344. * testsuite/ld-cris/tls-local-60.d: Update.
  1345. * testsuite/ld-cris/tls-local-61.d: Update.
  1346. * testsuite/ld-cris/tls-local-63.d: Update.
  1347. * testsuite/ld-cris/tls-local-64.d: Update.
  1348. * testsuite/ld-cris/tls-ok-30.d: Update.
  1349. * testsuite/ld-cris/tls-ok-32.d: Update.
  1350. * testsuite/ld-cris/tls-ok-34.d: Update.
  1351. * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
  1352. * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
  1353. * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
  1354. * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
  1355. * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
  1356. * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
  1357. * testsuite/ld-mips-elf/tlslib-o32.got: Update.
  1358. * testsuite/ld-s390/tlspic.rd: Update.
  1359. * testsuite/ld-s390/tlspic_64.rd: Update.
  1360. * testsuite/ld-sparc/tlssunnopic32.rd: Update.
  1361. * testsuite/ld-sparc/tlssunnopic64.rd: Update.
  1362. * testsuite/ld-sparc/tlssunpic32.rd: Update.
  1363. * testsuite/ld-sparc/tlssunpic64.rd: Update.
  1364. 2019-07-13 Alan Modra <amodra@gmail.com>
  1365. PR 24786
  1366. * ldlang.h (enum section_type): Add first_overlay_section.
  1367. * ldlang.c (lang_add_section): Adjust switch statement.
  1368. (map_input_to_output_sections): Likewise.
  1369. (lang_size_sections_1): Always set last_os for first overlay section.
  1370. (lang_leave_overlay): Set sectype to first_overlay_section.
  1371. 2019-07-08 Alan Modra <amodra@gmail.com>
  1372. * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
  1373. * testsuite/ld-powerpc/callstub-2.d: Likewise.
  1374. 2019-07-04 Jan Beulich <jbeulich@suse.com>
  1375. * testsuite/ld-elf/group9.s: Correct argument of .type.
  1376. 2019-07-02 Nick Clifton <nickc@redhat.com>
  1377. PR 24753
  1378. * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
  1379. LINKER_CREATED section flag when creating the stub section.
  1380. 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
  1381. * testsuite/ld-arm/arm-elf.exp: Add tests.
  1382. * testsuite/ld-arm/cmse_main.s: New test.
  1383. * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
  1384. * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
  1385. 2019-07-01 Nick Clifton <nickc@redhat.com>
  1386. PR 23839
  1387. * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
  1388. exidx relocs.
  1389. 2019-06-28 Alan Modra <amodra@gmail.com>
  1390. * testsuite/ld-powerpc/callstub-1.d,
  1391. * testsuite/ld-powerpc/callstub-1.s: New test.
  1392. * testsuite/ld-powerpc/callstub-2.d,
  1393. * testsuite/ld-powerpc/callstub-2.s: New test.
  1394. * testsuite/ld-powerpc/powerpc.exp: Run them.
  1395. 2019-06-25 Jan Beulich <jbeulich@suse.com>
  1396. * plugin.c (get_lto_kind, get_lto_resolution,
  1397. get_lto_visibility): Rename "index" to "idx".
  1398. 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
  1399. PR ld/24721
  1400. * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
  1401. * testsuite/ld-x86-64/pr24721-x32.d: New file.
  1402. * testsuite/ld-x86-64/pr24721.d: Likewise.
  1403. * testsuite/ld-x86-64/pr24721.map: Likewise.
  1404. * testsuite/ld-x86-64/pr24721a.s: Likewise.
  1405. * testsuite/ld-x86-64/pr24721b.s: Likewise.
  1406. 2019-06-23 Alan Modra <amodra@gmail.com>
  1407. PR 24704
  1408. * testsuite/ld-powerpc/elfv2exe.d: Update.
  1409. * testsuite/ld-powerpc/elfv2so.d: Update.
  1410. 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
  1411. * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
  1412. * testsuite/ld-aarch64/emit-relocs-22.d: New test.
  1413. * testsuite/ld-aarch64/emit-relocs-22.s: New test.
  1414. * testsuite/ld-aarch64/emit-relocs-23.d: New test.
  1415. * testsuite/ld-aarch64/emit-relocs-23.s: New test.
  1416. 2019-06-14 Alan Modra <amodra@gmail.com>
  1417. * Makefile.in: Regenerate.
  1418. * configure: Regenerate.
  1419. 2019-06-14 Alan Modra <amodra@gmail.com>
  1420. PR 24662
  1421. * testsuite/ld-alpha/tlsbin.rd: Update.
  1422. * testsuite/ld-alpha/tlsbinr.rd: Update.
  1423. * testsuite/ld-alpha/tlspic.rd: Update.
  1424. 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
  1425. * ld.texi (Options): Also document `-rpath' option restrictions
  1426. in the description of the option itself.
  1427. 2019-06-06 Sudakshina Das <sudi.das@arm.com>
  1428. * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
  1429. * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
  1430. * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
  1431. * testsuite/ld-aarch64/property-bti-pac4.s: New test.
  1432. 2019-06-06 Sudakshina Das <sudi.das@arm.com>
  1433. * NEWS: Update options names.
  1434. * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
  1435. (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
  1436. (PARSE_AND_LIST_OPTIONS): Update to -z.
  1437. (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
  1438. (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
  1439. (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
  1440. * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
  1441. * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
  1442. * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
  1443. * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
  1444. * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
  1445. * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
  1446. * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
  1447. * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
  1448. * testsuite/ld-aarch64/bti-warn.d: Likewise.
  1449. * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
  1450. * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
  1451. 2019-05-30 Nick Clifton <nickc@redhat.com>
  1452. PR 24627
  1453. * testsuite/ld-elf/ver_def.vd: Update expected output.
  1454. 2019-05-30 Alan Modra <amodra@gmail.com>
  1455. PR 24596
  1456. * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
  1457. (EXTRA_EM_FILE): Define to genelf.
  1458. * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
  1459. 2019-05-30 Alan Modra <amodra@gmail.com>
  1460. * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
  1461. calls in optional "xfail" args.
  1462. (run_ld_link_exec_tests): Likewise.
  1463. (is_generic): New.
  1464. (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
  1465. * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
  1466. * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
  1467. xfail_implib var.
  1468. * testsuite/ld-elf/sec64k.exp: Use is_generic.
  1469. * testsuite/ld-elf/shared.exp: Likewise.
  1470. * testsuite/ld-discard/extern.d: Use is_generic in xfail.
  1471. * testsuite/ld-discard/start.d: Likewise.
  1472. * testsuite/ld-discard/static.d: Likewise.
  1473. * testsuite/ld-elf/attributes.d: Likewise.
  1474. * testsuite/ld-elf/group1.d: Likewise.
  1475. * testsuite/ld-elf/group3b.d: Likewise.
  1476. * testsuite/ld-elf/group8a.d: Likewise.
  1477. * testsuite/ld-elf/group8b.d: Likewise.
  1478. * testsuite/ld-elf/group9a.d: Likewise.
  1479. * testsuite/ld-elf/group9b.d: Likewise.
  1480. * testsuite/ld-elf/linkonce2.d: Likewise.
  1481. * testsuite/ld-elf/merge2.d: Likewise.
  1482. * testsuite/ld-elf/merge3.d: Likewise.
  1483. * testsuite/ld-elf/pr12851.d: Likewise.
  1484. * testsuite/ld-elf/pr12975.d: Likewise.
  1485. * testsuite/ld-elf/pr13177.d: Likewise.
  1486. * testsuite/ld-elf/pr13195.d: Likewise.
  1487. * testsuite/ld-elf/pr17550c.d: Likewise.
  1488. * testsuite/ld-elf/pr17550d.d: Likewise.
  1489. * testsuite/ld-elf/pr17615.d: Likewise.
  1490. * testsuite/ld-elf/pr21562a.d: Likewise.
  1491. * testsuite/ld-elf/pr21562b.d: Likewise.
  1492. * testsuite/ld-elf/pr21562c.d: Likewise.
  1493. * testsuite/ld-elf/pr21562d.d: Likewise.
  1494. * testsuite/ld-elf/pr21562i.d: Likewise.
  1495. * testsuite/ld-elf/pr21562j.d: Likewise.
  1496. * testsuite/ld-elf/pr21562k.d: Likewise.
  1497. * testsuite/ld-elf/pr21562l.d: Likewise.
  1498. * testsuite/ld-elf/pr21562m.d: Likewise.
  1499. * testsuite/ld-elf/pr21562n.d: Likewise.
  1500. * testsuite/ld-elf/pr22677.d: Likewise.
  1501. * testsuite/ld-elf/pr22836-1a.d: Likewise.
  1502. * testsuite/ld-elf/pr22836-1b.d: Likewise.
  1503. * testsuite/ld-elf/warn3.d: Likewise.
  1504. * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
  1505. targets rather than notarget.
  1506. * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
  1507. * testsuite/ld-elf/orphan-10.d: Likewise.
  1508. * testsuite/ld-elf/orphan-9.d: Likewise.
  1509. * testsuite/ld-elf/orphan-region.d: Likewise.
  1510. * testsuite/ld-elf/orphan.d: Likewise.
  1511. * testsuite/ld-elf/orphan3.d: Likewise.
  1512. * testsuite/ld-elf/pr20528a.d: Likewise.
  1513. * testsuite/ld-elf/pr20528b.d: Likewise.
  1514. * testsuite/ld-elf/pr23658-1a.d: Likewise.
  1515. * testsuite/ld-elf/pr23658-1b.d: Likewise.
  1516. * testsuite/ld-elf/pr349.d: Likewise.
  1517. * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
  1518. targets rather than notarget.
  1519. * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
  1520. 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1521. * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
  1522. for pcrel_hi/pcrel_lo.
  1523. * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
  1524. * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
  1525. * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
  1526. * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
  1527. * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
  1528. 2019-05-28 Alan Modra <amodra@gmail.com>
  1529. PR 24596
  1530. * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
  1531. the output is coff before accessing coff tdata.
  1532. * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
  1533. 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
  1534. * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
  1535. * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
  1536. 2019-05-27 Alan Modra <amodra@gmail.com>
  1537. PR 24596
  1538. * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
  1539. BFS_KEEP on group signature symbol.
  1540. 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
  1541. * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
  1542. * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
  1543. * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
  1544. * testsuite/ld-aarch64/variant_pcs-now.d: New test.
  1545. * testsuite/ld-aarch64/variant_pcs-r.d: New test.
  1546. * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
  1547. * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
  1548. 2019-05-24 Alan Modra <amodra@gmail.com>
  1549. * po/BLD-POTFILES.in: Regenerate.
  1550. 2019-05-24 Alan Modra <amodra@gmail.com>
  1551. * testsuite/ld-powerpc/notoc2.d,
  1552. * testsuite/ld-powerpc/notoc2.s: New test.
  1553. * testsuite/ld-powerpc/powerpc.exp: Run it.
  1554. 2019-05-24 Alan Modra <amodra@gmail.com>
  1555. * testsuite/ld-powerpc/pcrelopt.s,
  1556. * testsuite/ld-powerpc/pcrelopt.d,
  1557. * testsuite/ld-powerpc/pcrelopt.sec: New test.
  1558. * testsuite/ld-powerpc/powerpc.exp: Run it.
  1559. 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
  1560. * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
  1561. * Makefile.in (prefix): Regenerate.
  1562. * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
  1563. * emulparams/elf64bpf.sh: New file.
  1564. * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
  1565. bpf-*-* to the list of targets not supporting gc-sections.
  1566. * testsuite/ld-bpf/bar.s: New file.
  1567. * testsuite/ld-bpf/jump-1.d: Likewise.
  1568. * testsuite/ld-bpf/foo.s: Likewise.
  1569. * testsuite/ld-bpf/call-1.d: Likewise.
  1570. * testsuite/ld-bpf/bpf.exp: Likewise.
  1571. * testsuite/ld-bpf/baz.s: Likewise.
  1572. 2019-05-23 Alan Modra <amodra@gmail.com>
  1573. PR 24576
  1574. * ldfile.c (enum script_open_style): New.
  1575. (struct script_name_list): New.
  1576. (ldfile_open_command_file_1): Take a script_open_style param
  1577. rather than booleans. Adjust callers. Only fail when -T or
  1578. default -T script is invoked twice.
  1579. (ldfile_try_open_bfd): Revert last change.
  1580. 2019-05-22 Julius Werner <jwerner@chromium.org>
  1581. Nick Clifton <nickc@redhat.com>
  1582. PR 24576
  1583. * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
  1584. is_script. If true check that the file has not already been
  1585. parsed as a linker script.
  1586. (ldfile_open_script_file): New function.
  1587. (ldfile_try_open_bfd): Use the new function in place of
  1588. ldfile_open_command_line.
  1589. * ldmain.c (main): Likewise.
  1590. * lexsup.c (parse_args): Use the new function for opening linker
  1591. scripts with the -T option.
  1592. * ldfile.h (ldfile_open_script_file): Add prototype.
  1593. 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1594. * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
  1595. %tprel_hi and %tprel_lo relocations.
  1596. * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
  1597. * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
  1598. * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
  1599. * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
  1600. script file.
  1601. 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1602. * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
  1603. * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
  1604. * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
  1605. * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
  1606. * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
  1607. * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
  1608. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  1609. 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
  1610. Faraz Shahbazker <fshahbazker@wavecomp.com>
  1611. * emultempl/mipself.em (compact_branches): New static variable.
  1612. (mips_create_output_section_statements): Call
  1613. _bfd_mips_elf_compact_branches.
  1614. (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
  1615. OPTION_NO_COMPACT_BRANCHES.
  1616. (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
  1617. no-compact-branches.
  1618. (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
  1619. --no-compact-branches.
  1620. (PARSE_AND_LIST_ARGS_CASES): Handle the above.
  1621. * ld.texinfo: Document --compact-branches, --no-compact-branches.
  1622. * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
  1623. * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
  1624. * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
  1625. * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
  1626. * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
  1627. * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
  1628. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  1629. 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
  1630. * testsuite/ld-arm/arm-elf.exp: Add tests
  1631. * testsuite/ld-arm/bfs-0.s: New test.
  1632. * testsuite/ld-arm/bfs-1.s: New test.
  1633. * testsuite/ld-arm/branch-futures.d: New test.
  1634. 2019-05-21 Tamar Christina <tamar.christina@arm.com>
  1635. PR ld/24373
  1636. * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
  1637. to flags.
  1638. * NEWS: Add changes to flag.
  1639. (PARSE_AND_LIST_OPTIONS): Update help descriptions.
  1640. (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
  1641. * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
  1642. * testsuite/ld-aarch64/erratum843419-adr.d: New test.
  1643. * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
  1644. * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
  1645. * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
  1646. * testsuite/ld-aarch64/erratum843419-far.s: New test.
  1647. * testsuite/ld-aarch64/erratum843419-full.d: New test.
  1648. * testsuite/ld-aarch64/erratum843419-near.s: New test.
  1649. * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
  1650. 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
  1651. PR ld/24571
  1652. * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
  1653. * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
  1654. 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
  1655. PR ld/24564
  1656. * testsuite/ld-avr/wraparound-range-boundary.d: New test.
  1657. * testsuite/ld-avr/wraparound-range-boundary.s: New test.
  1658. 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1659. PR 14798
  1660. * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
  1661. global code symbols.
  1662. * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
  1663. 2019-05-17 Alan Modra <amodra@gmail.com>
  1664. PR 24567
  1665. * plugin.c (plugin_notice): Do not let a common symbol override
  1666. a non-common definition in IR.
  1667. 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
  1668. * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
  1669. Rename.
  1670. 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
  1671. PR 24536
  1672. * ldbuildid.c (generate_build_id): Cast return value from
  1673. GetProcAddress in order to avoid a compile time warning.
  1674. 2019-05-06 Alan Modra <amodra@gmail.com>
  1675. * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
  1676. 2019-05-04 Alan Modra <amodra@gmail.com>
  1677. * testsuite/ld-scripts/fill.d: Don't xfail m32c
  1678. * testsuite/ld-scripts/fill16.d: Likewise.
  1679. 2019-05-04 Alan Modra <amodra@gmail.com>
  1680. PR 24511
  1681. * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
  1682. data section on hppa64.
  1683. * testsuite/ld-elf/pr14156b.d: Likewise.
  1684. * testsuite/ld-scripts/pr18963.t: Map standard sections to set
  1685. output section flags.
  1686. * testsuite/ld-scripts/sane1.t: Likewise.
  1687. * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
  1688. and __fini_array_start. Define __start et al.
  1689. * testsuite/ld-elf/pr24511.d: New test.
  1690. 2019-04-30 Alan Modra <amodra@gmail.com>
  1691. * testsuite/ld-powerpc/elfv2exe.d: Update.
  1692. * testsuite/ld-powerpc/elfv2so.d: Update.
  1693. * testsuite/ld-powerpc/tocopt.d: Update.
  1694. * testsuite/ld-powerpc/tocopt.s: Update.
  1695. * testsuite/ld-powerpc/tocopt5.d: Update.
  1696. * testsuite/ld-powerpc/tocopt5.s: Update.
  1697. * testsuite/ld-powerpc/tocopt7.d: Update.
  1698. * testsuite/ld-powerpc/tocopt7.s: Update.
  1699. * testsuite/ld-powerpc/tocopt8.d: Update.
  1700. * testsuite/ld-powerpc/tocopt8.s: Update.
  1701. 2019-04-30 Alan Modra <amodra@gmail.com>
  1702. * ld.texi (How GNU properties are merged): Avoid pod2man error.
  1703. Correct example.
  1704. 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
  1705. PR ld/24486
  1706. * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
  1707. * testsuite/ld-plugin/pr24486a.c: New file.
  1708. * testsuite/ld-plugin/pr24486b.c: Likewise.
  1709. * testsuite/ld-plugin/pr24486c.c: Likewise.
  1710. 2019-04-26 Nick Clifton <nickc@redhat.com>
  1711. * po/ru.po: Updated Russian translation.
  1712. 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
  1713. * ld.texi: Properly hyphenate the word "specific".
  1714. 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
  1715. PR ld/24406
  1716. * ld.texi: Remove LTO warning from --wrap.
  1717. * plugin.c (get_symbols): Update resolution for wrapper and
  1718. wrapped symbols.
  1719. * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
  1720. * testsuite/ld-plugin/pr24406-1.c: New file.
  1721. * testsuite/ld-plugin/pr24406-2a.c: Likewise.
  1722. * testsuite/ld-plugin/pr24406-2b.c: Likewise.
  1723. 2019-04-25 Sudakshina Das <sudi.das@arm.com>
  1724. * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
  1725. * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
  1726. * testsuite/ld-aarch64/bti-plt-1.d: Update.
  1727. * testsuite/ld-aarch64/bti-plt-3.d: Update.
  1728. * testsuite/ld-aarch64/bti-plt-5.d: Update.
  1729. * testsuite/ld-aarch64/pac-plt-1.d: Update.
  1730. * testsuite/ld-aarch64/pac-plt-2.d: Update.
  1731. 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
  1732. * testsuite/config/default.exp: Use [check_compiler_available]
  1733. instead of [which $CC].
  1734. * testsuite/ld-auto-import/auto-import.exp: Likewise.
  1735. * testsuite/ld-cygwin/exe-export.exp: Likewise.
  1736. * testsuite/ld-elf/audit.exp: Likewise.
  1737. * testsuite/ld-elf/compress.exp: Likewise.
  1738. * testsuite/ld-elf/dwarf.exp: Likewise.
  1739. * testsuite/ld-elf/elf.exp: Likewise.
  1740. * testsuite/ld-elf/indirect.exp: Likewise.
  1741. * testsuite/ld-elf/linux-x86.exp: Likewise.
  1742. * testsuite/ld-elf/shared.exp: Likewise.
  1743. * testsuite/ld-elf/tls.exp: Likewise.
  1744. * testsuite/ld-elf/wrap.exp: Likewise.
  1745. * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
  1746. * testsuite/ld-elfvers/vers.exp: Likewise.
  1747. * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
  1748. * testsuite/ld-elfweak/elfweak.exp: Likewise.
  1749. * testsuite/ld-gc/gc.exp: Likewise.
  1750. * testsuite/ld-i386/i386.exp: Likewise.
  1751. * testsuite/ld-i386/no-plt.exp: Likewise.
  1752. * testsuite/ld-i386/tls.exp: Likewise.
  1753. * testsuite/ld-ifunc/ifunc.exp: Likewise.
  1754. * testsuite/ld-mn10300/mn10300.exp: Likewise.
  1755. * testsuite/ld-pe/pe-compile.exp: Likewise.
  1756. * testsuite/ld-pe/pe-run.exp: Likewise.
  1757. * testsuite/ld-pe/pe-run2.exp: Likewise.
  1758. * testsuite/ld-pie/pie.exp: Likewise.
  1759. * testsuite/ld-plugin/lto.exp: Likewise.
  1760. * testsuite/ld-plugin/plugin.exp: Likewise.
  1761. * testsuite/ld-scripts/crossref.exp: Likewise.
  1762. * testsuite/ld-sh/sh.exp: Likewise.
  1763. * testsuite/ld-shared/shared.exp: Likewise.
  1764. * testsuite/ld-size/size.exp: Likewise.
  1765. * testsuite/ld-srec/srec.exp: Likewise.
  1766. * testsuite/ld-undefined/undefined.exp: Likewise.
  1767. * testsuite/ld-unique/unique.exp: Likewise.
  1768. * testsuite/ld-x86-64/mpx.exp: Likewise.
  1769. * testsuite/ld-x86-64/no-plt.exp: Likewise.
  1770. * testsuite/ld-x86-64/tls.exp: Likewise.
  1771. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1772. * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
  1773. check_compiler_available before trying to use the compiler.
  1774. (run_cc_link_tests): Likewise.
  1775. (check_compiler_available): New. Use it instead of [which $CC].
  1776. 2019-04-23 Alan Modra <amodra@gmail.com>
  1777. * Makefile.am (GENDEPDIR): New var, used..
  1778. (GENSCRIPTS): ..here.
  1779. * Makefile.in: Regenerate.
  1780. * genscripts.sh: Test for $DEPDIR set before every use.
  1781. 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
  1782. * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
  1783. for M5100.
  1784. 2019-04-19 Alan Modra <amodra@gmail.com>
  1785. * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
  1786. * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
  1787. s12z to list of targets not supporting --gc-sections.
  1788. 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
  1789. * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
  1790. of pr18801.
  1791. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1792. * testsuite/ld-i386/pr18801.d: Removed.
  1793. * testsuite/ld-x86-64/pr18801.d: Likewise.
  1794. * testsuite/ld-i386/pr18801a.d: New file.
  1795. * testsuite/ld-i386/pr18801b.d: Likewise.
  1796. * testsuite/ld-x86-64/pr18801a.d: Likewise.
  1797. * testsuite/ld-x86-64/pr18801b.d: Likewise.
  1798. * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
  1799. * testsuite/ld-x86-64/pie2.d: Likewise.
  1800. * testsuite/ld-x86-64/pr19719.d: Likewise.
  1801. * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
  1802. * testsuite/ld-x86-64/pr19969.d: Likewise.
  1803. * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
  1804. * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
  1805. * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
  1806. * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
  1807. * testsuite/ld-x86-64/pr22791-1.err: Likewise.
  1808. 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
  1809. PR ld/24458
  1810. * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
  1811. * testsuite/ld-x86-64/pr24458.s: New file.
  1812. * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
  1813. * testsuite/ld-x86-64/pr24458a.d: Likewise.
  1814. * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
  1815. * testsuite/ld-x86-64/pr24458b.d: Likewise.
  1816. * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
  1817. * testsuite/ld-x86-64/pr24458c.d: Likewise.
  1818. 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
  1819. * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
  1820. symbol when .lower.bss or .either.bss sections exist.
  1821. Define __crt0_movedata when .lower.data or .either.data sections exist.
  1822. * testsuite/gas/msp430/either-data-bss-sym.d: New test.
  1823. * testsuite/gas/msp430/low-data-bss-sym.d: New test.
  1824. * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
  1825. * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
  1826. * testsuite/gas/msp430/msp430.exp: Run new tests.
  1827. Enable large code model when running -mdata-region={upper,either}
  1828. tests.
  1829. 2019-04-16 Alan Modra <amodra@gmail.com>
  1830. * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
  1831. * testsuite/ld-scripts/section-match-1.d: Likewise.
  1832. * testsuite/ld-undefined/require-defined.exp: Likewise.
  1833. 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1834. * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
  1835. targets.
  1836. 2019-04-15 Sudakshina Das <sudi.das@arm.com>
  1837. * testsuite/ld-arm/bfcsel.s: New.
  1838. * testsuite/ld-arm/bfcsel.d: New.
  1839. * testsuite/ld-arm/arm-elf.exp: Add above test.
  1840. 2019-04-15 Sudakshina Das <sudi.das@arm.com>
  1841. * testsuite/ld-arm/bfl.s: New.
  1842. * testsuite/ld-arm/bfl.d: New.
  1843. * testsuite/ld-arm/arm-elf.exp: Add above test.
  1844. 2019-04-15 Sudakshina Das <sudi.das@arm.com>
  1845. * testsuite/ld-arm/bf.s: New.
  1846. * testsuite/ld-arm/bf.d: New.
  1847. * testsuite/ld-arm/arm-elf.exp: Add above test.
  1848. 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
  1849. * testsuite/ld-arm/attr-merge-13.attr: New test.
  1850. * testsuite/ld-arm/attr-merge-13a.s: New test.
  1851. * testsuite/ld-arm/attr-merge-13b.s: New test.
  1852. 2019-04-13 Alan Modra <amodra@gmail.com>
  1853. * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
  1854. DEPDIR parameter.
  1855. (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
  1856. (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
  1857. $GEN_DEPENDS.
  1858. (e*.c): Delete all dependencies, instead include dependencies
  1859. from $DEPDIR/*.Pc.
  1860. * Makefile.in: Regenerate.
  1861. * configure.ac (source_sh): Define and use function.
  1862. * configure: Regenerate.
  1863. * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
  1864. * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
  1865. * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
  1866. * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
  1867. * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
  1868. * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
  1869. * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
  1870. * emulparams/armelf_linux_eabi.sh,
  1871. * emulparams/armelf_linux_fdpiceabi.sh,
  1872. * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
  1873. * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
  1874. * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
  1875. * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
  1876. * emulparams/armelfb_linux_fdpiceabi.sh,
  1877. * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
  1878. * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
  1879. * emulparams/elf32_sparc_sol2.sh,
  1880. * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
  1881. * emulparams/elf32_tic6x_elf_be.sh,
  1882. * emulparams/elf32_tic6x_elf_le.sh,
  1883. * emulparams/elf32_tic6x_linux_be.sh,
  1884. * emulparams/elf32_tic6x_linux_le.sh,
  1885. * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
  1886. * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
  1887. * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
  1888. * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
  1889. * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
  1890. * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
  1891. * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
  1892. * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
  1893. * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
  1894. * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
  1895. * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
  1896. * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
  1897. * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
  1898. * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
  1899. * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
  1900. * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
  1901. * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
  1902. * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
  1903. * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
  1904. * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
  1905. * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
  1906. * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
  1907. * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
  1908. * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
  1909. * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
  1910. * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
  1911. * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
  1912. * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
  1913. * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
  1914. * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
  1915. * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
  1916. * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
  1917. * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
  1918. * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
  1919. * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
  1920. * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
  1921. * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
  1922. * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
  1923. * emulparams/elf_x86_64_cloudabi.sh,
  1924. * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
  1925. * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
  1926. * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
  1927. * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
  1928. * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
  1929. * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
  1930. * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
  1931. * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
  1932. * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
  1933. * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
  1934. * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
  1935. * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
  1936. * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
  1937. * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
  1938. * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
  1939. * emulparams/shl.sh, * emulparams/shlelf.sh,
  1940. * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
  1941. * emulparams/shlelf_vxworks.sh: Use source_sh.
  1942. * genscripts.sh: Adjust for changed parameters. Emit dependencies
  1943. for e*.c to .deps/*.Pc.
  1944. (source_sh): New function, use it throughout to source scripts.
  1945. * genscrba.sh (source_em): Use source_sh.
  1946. 2019-04-13 Alan Modra <amodra@gmail.com>
  1947. * configure.ac (TDIRS): Build up tdirs in this variable and
  1948. AC_SUBST, also using AM_SUBST_NOTMAKE.
  1949. * configure: Regenerate.
  1950. * Makefile.am (DISTCLEANFILES): Remove tdirs.
  1951. * Makefile.in: Regenerate.
  1952. 2019-04-12 Nick Clifton <nickc@redhat.com>
  1953. PR 24450
  1954. * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
  1955. example of section attributes.
  1956. 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
  1957. * NEWS: Mention new option --no-print-map-discarded.
  1958. * ld.h (ld_config_type) <print_map_discarded>: New field.
  1959. * ldlang.c (lang_map): Conditionally output discarded sections
  1960. in map files based on configuration option.
  1961. * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
  1962. OPTION_NO_PRINT_MAP_DISCARDED>: New.
  1963. * ldmain.c (main): Enabled print_map_discarded by default.
  1964. * lexsup.c (ld_options): Add new command-line options.
  1965. (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
  1966. OPTION_PRINT_MAP_DISCARDED>: New cases.
  1967. * ld.texi: Document new options.
  1968. * testsuite/ld-gc/gc.exp: Add new test.
  1969. * testsuite/ld-gc/skip-map-discarded.s: New file.
  1970. * testsuite/ld-gc/skip-map-discarded.d: New file.
  1971. * testsuite/ld-gc/skip-map-discarded.map: New file.
  1972. 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
  1973. * ld.texi: Document -z cet-report=[none|warning|error].
  1974. * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
  1975. * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
  1976. tests.
  1977. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1978. * testsuite/ld-i386/property-x86-cet1.d: New file.
  1979. * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
  1980. * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
  1981. * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
  1982. * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
  1983. * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
  1984. * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
  1985. * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
  1986. * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
  1987. * testsuite/ld-i386/property-x86-cet6.d: Likewise.
  1988. * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
  1989. * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
  1990. * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
  1991. * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
  1992. * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
  1993. * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
  1994. * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
  1995. * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
  1996. * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
  1997. * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
  1998. * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
  1999. * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
  2000. * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
  2001. * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
  2002. * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
  2003. * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
  2004. * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
  2005. * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
  2006. * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
  2007. * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
  2008. * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
  2009. 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
  2010. * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
  2011. to "-static-pie" if target compiler supports it.
  2012. * testsuite/ld-elf/elf.exp: Run -static-pie tests if
  2013. $STATIC_PIE_LDFLAGS isn't empty.
  2014. * testsuite/ld-ifunc/ifunc.exp: Likewise.
  2015. 2019-04-11 Tamar Christina <tamar.christina@arm.com>
  2016. PR ld/24302
  2017. * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
  2018. * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
  2019. 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
  2020. * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
  2021. CREATE_PIE.
  2022. (__rel_iplt_start): Don't define for CREATE_PIC.
  2023. (__rel_iplt_end): Likewise.
  2024. (__rela_iplt_start): Likewise.
  2025. (__rela_iplt_end): Likewise.
  2026. 2019-04-10 Alan Modra <amodra@gmail.com>
  2027. * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
  2028. powerpc-nto.
  2029. 2019-04-10 Alan Modra <amodra@gmail.com>
  2030. * emultempl/cskyelf.em (csk_elf_before_parse): New function,
  2031. setting use_branch_stub false for linux.
  2032. (csky_elf_create_output_section_statements): Do emit this
  2033. function and all others in the file for linux, plus the branch
  2034. option control. Disable branch stubs when non-ELF.
  2035. 2019-04-10 Alan Modra <amodra@gmail.com>
  2036. * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
  2037. (ecskyelf_linux.c): Depend on cskyelf.sh.
  2038. (eelf32microblazeel.c): Depend on elf32microblaze.sh.
  2039. * Makefile.in: Regenerate.
  2040. * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
  2041. (PAGE_SIZE): Don't define.
  2042. * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
  2043. the differing variable defs/undefs.
  2044. * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
  2045. * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
  2046. (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
  2047. (PAGE_SIZE): Don't define.
  2048. * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
  2049. leaving just the differing OUTPUT_FORMAT.
  2050. 2019-04-10 Alan Modra <amodra@gmail.com>
  2051. * po/BLD-POTFILES.in: Regenerate.
  2052. 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
  2053. * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
  2054. lynxos and nto targets.
  2055. 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
  2056. * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
  2057. (eelf_i386_chaos.c): Removed.
  2058. * Makefile.in: Regenerated.
  2059. * configure.tgt: Remove i[3-7]86-*-kaos*.
  2060. * emulparams/elf_i386_chaos.sh: Removed.
  2061. 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
  2062. * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
  2063. * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
  2064. 2019-04-08 Alan Modra <amodra@gmail.com>
  2065. * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
  2066. * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
  2067. * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
  2068. 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
  2069. * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
  2070. (eelf_i386_sol2.c): Also depend on
  2071. $(srcdir)/emultempl/solaris2-x86.em.
  2072. (eelf_x86_64_sol2.c): Likewise.
  2073. * Makefile.in: Regenerated.
  2074. * emulparams/call_nop.sh: Set x86-specific linker options via
  2075. params.
  2076. * emulparams/cet.sh: Likewise.
  2077. * emulparams/reloc_overflow.sh: Likewise.
  2078. * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
  2079. "elf-x86".
  2080. * emulparams/elf_i386.sh: Likewise.
  2081. * emulparams/elf_i386_be.sh: Likewise.
  2082. * emulparams/elf_i386_chaos.sh: Likewise.
  2083. * emulparams/elf_i386_ldso.sh: Likewise.
  2084. * emulparams/elf_i386_vxworks.sh: Likewise.
  2085. * emulparams/elf_iamcu.sh: Likewise.
  2086. * emulparams/elf_k1om.sh: Likewise.
  2087. * emulparams/elf_l1om.sh: Likewise.
  2088. * emulparams/elf_x86_64.sh: Likewise.
  2089. * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
  2090. "solaris2-x86".
  2091. * emulparams/elf_x86_64_sol2.sh: Likewise.
  2092. * emultempl/elf-x86.em: New file.
  2093. * emultempl/solaris2-x86.em: Likewise.
  2094. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
  2095. set link_info.call_nop_byte.
  2096. 2019-04-05 Alan Modra <amodra@gmail.com>
  2097. * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
  2098. * testsuite/ld-powerpc/tlsopt5.d: Likewise.
  2099. * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
  2100. 2019-04-03 Alan Modra <amodra@gmail.com>
  2101. PR 24411
  2102. ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
  2103. (<EXPRESSION>"/DISCARD/"): New.
  2104. 2019-04-03 Alan Modra <amodra@gmail.com>
  2105. * ldlex.l: Formatting.
  2106. (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
  2107. (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
  2108. (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
  2109. (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
  2110. (<INPUTLIST>"$SYSROOT"..): Delete rule.
  2111. 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
  2112. * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
  2113. test definition.
  2114. * testsuite/ld-xtensa/xtensa.exp
  2115. (relax-undef-weak-pie-export-dynamic): Add new test.
  2116. 2019-03-26 Martin Liska <mliska@suse.cz>
  2117. * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
  2118. lto_visibility_str and use then to inform about plugin-symbols.
  2119. * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
  2120. 2019-03-25 Tamar Christina <tamar.christina@arm.com>
  2121. * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
  2122. * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
  2123. 2019-03-21 Sudakshina Das <sudi.das@arm.com>
  2124. * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
  2125. * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
  2126. * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
  2127. * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
  2128. * testsuite/ld-aarch64/bti-warn.d: New test.
  2129. 2019-03-21 Alan Modra <amodra@gmail.com>
  2130. * testsuite/ld-elf/fini2.s: Reduce alignment.
  2131. * testsuite/ld-elf/fini3.s: Likewise.
  2132. * testsuite/ld-elf/finin.s: Likewise.
  2133. * testsuite/ld-elf/init2.s: Likewise.
  2134. * testsuite/ld-elf/init3.s: Likewise.
  2135. * testsuite/ld-elf/initn.s: Likewise.
  2136. * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
  2137. * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
  2138. 2019-03-21 Alan Modra <amodra@gmail.com>
  2139. * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
  2140. * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
  2141. * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
  2142. * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
  2143. * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
  2144. * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
  2145. * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
  2146. * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
  2147. * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
  2148. * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
  2149. * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
  2150. * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
  2151. * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
  2152. * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
  2153. * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
  2154. * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
  2155. * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
  2156. SORT_NONE to .init and .fini wildcards.
  2157. * scripttempl/elf32xc16x.sc,
  2158. * scripttempl/elf32xc16xl.sc,
  2159. * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
  2160. * scripttempl/elf_chaos.sc: Add .init output section.
  2161. * scripttempl/elfd30v.sc: Remove duplicate .init.
  2162. * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
  2163. * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
  2164. duplicate .init, and add .fini wildcard.
  2165. * scripttempl/ppcpe.sc (INIT, FINI): Delete.
  2166. * ldlang.c (update_wild_statements): Special case .init and
  2167. .fini in the wildcard, not the output section.
  2168. 2019-03-21 Alan Modra <amodra@gmail.com>
  2169. * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
  2170. 2019-03-21 Alan Modra <amodra@gmail.com>
  2171. * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
  2172. create_object_symbols_section.
  2173. * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
  2174. 2019-03-18 Alan Modra <amodra@gmail.com>
  2175. * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
  2176. * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
  2177. * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
  2178. * testsuite/ld-unique/pr21529.d: Remove csky from xfails
  2179. 2019-03-15 Nick Clifton <nickc@redhat.com>
  2180. PR 24262
  2181. * ld.texi (-plugin): Correct the path used to locate linker
  2182. plugins.
  2183. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  2184. * NEWS: Document --pac-plt.
  2185. * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
  2186. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
  2187. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
  2188. * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
  2189. * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
  2190. * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
  2191. * testsuite/ld-aarch64/pac-plt-1.d: New test.
  2192. * testsuite/ld-aarch64/pac-plt-2.d: New test.
  2193. * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
  2194. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  2195. Szabolcs Nagy <szabolcs.nagy@arm.com>
  2196. * NEWS: Document --force-bti.
  2197. * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
  2198. (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
  2199. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
  2200. * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
  2201. * testsuite/ld-aarch64/bti-plt-1.d: New test.
  2202. * testsuite/ld-aarch64/bti-plt-1.s: New test.
  2203. * testsuite/ld-aarch64/bti-plt-2.d: New test.
  2204. * testsuite/ld-aarch64/bti-plt-3.d: New test.
  2205. * testsuite/ld-aarch64/bti-plt-4.d: New test.
  2206. * testsuite/ld-aarch64/bti-plt-5.d: New test.
  2207. * testsuite/ld-aarch64/bti-plt-6.d: New test.
  2208. * testsuite/ld-aarch64/bti-plt-7.d: New test.
  2209. * testsuite/ld-aarch64/bti-plt-so.s: New test.
  2210. * testsuite/ld-aarch64/bti-plt.ld: New test.
  2211. 2019-03-13 Sudakshina Das <sudi.das@arm.com>
  2212. * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
  2213. GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
  2214. * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
  2215. * testsuite/ld-aarch64/property-bti-pac1.d: New test.
  2216. * testsuite/ld-aarch64/property-bti-pac1.s: New test.
  2217. * testsuite/ld-aarch64/property-bti-pac2.d: New test.
  2218. * testsuite/ld-aarch64/property-bti-pac2.s: New test.
  2219. * testsuite/ld-aarch64/property-bti-pac3.d: New test.
  2220. 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
  2221. PR ld/24322
  2222. * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
  2223. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  2224. * testsuite/ld-i386/pr24322a.d: New file.
  2225. * testsuite/ld-i386/pr24322b.d: Likewise.
  2226. * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
  2227. * testsuite/ld-x86-64/pr24322a.d: Likewise.
  2228. * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
  2229. * testsuite/ld-x86-64/pr24322b.d: Likewise.
  2230. * testsuite/ld-x86-64/pr24322a.s: Likewise.
  2231. * testsuite/ld-x86-64/pr24322b.s: Likewise.
  2232. * testsuite/ld-x86-64/pr24322c.s: Likewise.
  2233. 2019-03-06 Nick Bowler <nbowler@draconx.ca>
  2234. PR 24289
  2235. * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
  2236. attributes during the first phase.
  2237. 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
  2238. This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
  2239. 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
  2240. PR 20113
  2241. * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
  2242. * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
  2243. * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
  2244. * testsuite/ld-s390/tlsbin.dd: Likewise.
  2245. * testsuite/ld-s390/tlsbin.rd: Likewise.
  2246. * testsuite/ld-s390/tlsbin.sd: Likewise.
  2247. * testsuite/ld-s390/tlsbin_64.dd: Likewise.
  2248. * testsuite/ld-s390/tlsbin_64.rd: Likewise.
  2249. * testsuite/ld-s390/tlsbin_64.sd: Likewise.
  2250. * testsuite/ld-s390/tlspic.dd: Likewise.
  2251. * testsuite/ld-s390/tlspic.rd: Likewise.
  2252. * testsuite/ld-s390/tlspic.sd: Likewise.
  2253. * testsuite/ld-s390/tlspic_64.dd: Likewise.
  2254. * testsuite/ld-s390/tlspic_64.rd: Likewise.
  2255. * testsuite/ld-s390/tlspic_64.sd: Likewise.
  2256. * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
  2257. 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
  2258. PR ld/24276
  2259. * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
  2260. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  2261. * testsuite/ld-i386/pr24276.dso: New file.
  2262. * testsuite/ld-i386/pr24276.warn: Likewise.
  2263. * testsuite/ld-x86-64/pr24276.dso: Likewise.
  2264. * testsuite/ld-x86-64/pr24276.warn: Likewise.
  2265. 2019-02-20 Eric Tsai <erictsai@cadence.com>
  2266. * testsuite/ld-xtensa/call_overflow.d: New test definition.
  2267. * testsuite/ld-xtensa/call_overflow1.s: New test source.
  2268. * testsuite/ld-xtensa/call_overflow2.s: New test source.
  2269. * testsuite/ld-xtensa/call_overflow3.s: New test source.
  2270. * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
  2271. 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
  2272. * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
  2273. 2019-02-12 Nick Clifton <nickc@redhat.com>
  2274. * po/fr.po: Updated French translation.
  2275. 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
  2276. * emultempl/arclinux.em: Delete special INIT/FINI handling.
  2277. 2019-02-07 Nick Clifton <nickc@redhat.com>
  2278. PR 24175
  2279. * ld.texi (Options): Add missing word to the description of the
  2280. --start-group option.
  2281. 2019-02-06 Alan Modra <amodra@gmail.com>
  2282. PR ld/24008
  2283. * testsuite/ld-scripts/pr24008.d: Pass with extra target
  2284. defined symbols.
  2285. 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
  2286. PR ld/24151
  2287. * testsuite/ld-x86-64/pr24151a-x32.d: New file.
  2288. * testsuite/ld-x86-64/pr24151a.d: Likewise.
  2289. * testsuite/ld-x86-64/pr24151a.s: Likewise.
  2290. * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
  2291. 2019-01-31 Alan Modra <amodra@gmail.com>
  2292. * NEWS: Mention -t change.
  2293. * ld.texi (--trace/-t): Expand documentation a little.
  2294. 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
  2295. PR ld/24008
  2296. * testsuite/ld-scripts/defined.exp: Run pr24008.
  2297. * testsuite/ld-scripts/pr24008.d: New file.
  2298. * testsuite/ld-scripts/pr24008.map: Likewise.
  2299. * testsuite/ld-scripts/pr24008.s: Likewise.
  2300. * testsuite/ld-scripts/pr24008.t: Likewise.
  2301. 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
  2302. * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
  2303. 2019-01-28 Alan Modra <amodra@gmail.com>
  2304. PR 24008
  2305. * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
  2306. * ldexp.c (fold_name): Move expld.assign_name check later to
  2307. avoid an extra lookup.
  2308. (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
  2309. values, and don't clear expld.assign_name.
  2310. * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
  2311. (print_assignment): Resolve entire assignment expression.
  2312. Don't access symbol u.def unless symbol is defined.
  2313. 2019-01-25 Nick Clifton <nickc@redhat.com>
  2314. * po/bg.po: Updated Bulgarian translation.
  2315. 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
  2316. * ld.texi (--wrap): Add warning that LTO may make this feature
  2317. ineffective.
  2318. 2019-01-21 Nick Clifton <nickc@redhat.com>
  2319. * po/uk.po: Updated Ukranian translation.
  2320. * po/pr_BR.po: Updated Brazilian Portuguese translation.
  2321. 2019-01-21 Nick Clifton <nickc@redhat.com>
  2322. PR 24108
  2323. * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
  2324. expected error message.
  2325. 2019-01-19 Nick Clifton <nickc@redhat.com>
  2326. * configure: Regenerate.
  2327. * po/ld.pot: Regenerate.
  2328. 2018-06-24 Nick Clifton <nickc@redhat.com>
  2329. 2.32 branch created.
  2330. 2019-01-16 Kito Cheng <kito@andestech.com>
  2331. * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
  2332. section.
  2333. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
  2334. * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
  2335. * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
  2336. * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
  2337. * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
  2338. * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
  2339. * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
  2340. * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
  2341. * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
  2342. * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
  2343. * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
  2344. * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
  2345. * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
  2346. * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
  2347. * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
  2348. * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
  2349. * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
  2350. * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
  2351. * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
  2352. * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
  2353. * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
  2354. * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
  2355. * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
  2356. * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
  2357. * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
  2358. * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
  2359. * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
  2360. * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
  2361. * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
  2362. * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
  2363. * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
  2364. * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
  2365. * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
  2366. * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
  2367. * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
  2368. * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
  2369. * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
  2370. 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
  2371. PR 20113
  2372. * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
  2373. * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
  2374. * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
  2375. * testsuite/ld-s390/tlsbin.dd: Likewise.
  2376. * testsuite/ld-s390/tlsbin.rd: Likewise.
  2377. * testsuite/ld-s390/tlsbin.sd: Likewise.
  2378. * testsuite/ld-s390/tlsbin_64.dd: Likewise.
  2379. * testsuite/ld-s390/tlsbin_64.rd: Likewise.
  2380. * testsuite/ld-s390/tlsbin_64.sd: Likewise.
  2381. * testsuite/ld-s390/tlspic.dd: Likewise.
  2382. * testsuite/ld-s390/tlspic.rd: Likewise.
  2383. * testsuite/ld-s390/tlspic.sd: Likewise.
  2384. * testsuite/ld-s390/tlspic_64.dd: Likewise.
  2385. * testsuite/ld-s390/tlspic_64.rd: Likewise.
  2386. * testsuite/ld-s390/tlspic_64.sd: Likewise.
  2387. * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
  2388. 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
  2389. * ld.texi (--wrap): Add example to emphasise that only undefined
  2390. references are replaced by the linker.
  2391. 2019-01-09 Nick Clifton <nickc@redhat.com>
  2392. * po/es.po: Updated Spanish translation.
  2393. 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
  2394. * configure: Regenerate.
  2395. 2019-01-08 Alan Modra <amodra@gmail.com>
  2396. * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
  2397. generated source file names.
  2398. * testsuite/ld-m68k/m68k-got.exp: Likewise.
  2399. 2019-01-01 Alan Modra <amodra@gmail.com>
  2400. Update year range in copyright notice of all files.
  2401. For older changes see ChangeLog-2018
  2402. Copyright (C) 2019 Free Software Foundation, Inc.
  2403. Copying and distribution of this file, with or without modification,
  2404. are permitted in any medium without royalty provided the copyright
  2405. notice and this notice are preserved.
  2406. Local Variables:
  2407. mode: change-log
  2408. left-margin: 8
  2409. fill-column: 74
  2410. version-control: never
  2411. End: