ChangeLog-2017 144 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038
  1. 2017-12-14 Nick Clifton <nickc@redhat.com>
  2. * testsuite/ld-mn10300/mn10300.exp: Update address of FSF in
  3. copyright notice.
  4. 2017-12-13 Renlin Li <renlin.li@arm.com>
  5. * testsuite/ld-aarch64/aarch64-elf.exp: Run new test cases.
  6. * testsuite/ld-aarch64/emit-relocs-258-dyn-bad.d: New.
  7. * testsuite/ld-aarch64/emit-relocs-258.s: New.
  8. * testsuite/ld-aarch64/emit-relocs-259-dyn-bad.d: New.
  9. * testsuite/ld-aarch64/emit-relocs-259.s: New.
  10. * testsuite/ld-aarch64/gc-relocs-257.s: Put R_AARCH64_ABS32,
  11. R_AARCH64_ABS16 data into data section.
  12. 2017-12-07 Alan Modra <amodra@gmail.com>
  13. PR 22465
  14. * testsuite/ld-elf/interleave.s: Use .data sections and provide
  15. section attrs.
  16. * testsuite/ld-elf/interleave.ld: Discard other sections. Adjust
  17. for changed section names.
  18. 2017-12-07 Alan Modra <amodra@gmail.com>
  19. * emulparams/elf32mcore.sh (GENERATE_SHLIB_SCRIPT): Don't define.
  20. 2017-12-07 Alan Modra <amodra@gmail.com>
  21. * testsuite/lib/ld-lib.exp (check_shared_lib_support): Ask ld
  22. under test whether -shared is supported.
  23. 2017-12-06 Jim Wilson <jimw@sifive.com>
  24. * testsuite/ld-elf/interleave-0.d, testsuite/ld-elf/interleave-4.d,
  25. * testsuite/ld-elf/interleave.ld, testsuite/ld-elf/interleave.s: New.
  26. 2017-12-06 Nick Clifton <nickc@redhat.com>
  27. * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
  28. false for lm32-rtems targets.
  29. 2017-12-06 Alan Modra <amodra@gmail.com>
  30. * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return true
  31. for frv, lm32, m32r, microblaze, nds32 and or1k linux targets.
  32. 2017-12-05 Jim Wilson <jimw@sifive.com>
  33. Andrew Waterman <andrew@sifive.com>
  34. * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Remove HIDDEN.
  35. Don't define __global_pointer$ when CREATE_SHLIB.
  36. * testsuite/ld-riscv-elf/gp-hidden-64.rd,
  37. * testsuite/ld-riscv-elf/gp-hidden-lib.rd,
  38. * testsuite/ld-riscv-elf/gp-hidden-lib.s,
  39. * testsuite/ld-riscv-elf/gp-hidden-ver-64.rd,
  40. * testsuite/ld-riscv-elf/gp-hidden-ver.rd,
  41. * testsuite/ld-riscv-elf/gp-hidden-ver.s,
  42. * testsuite/ld-riscv-elf/gp-hidden-ver.ver,
  43. * testsuite/ld-riscv-elf/gp-hidden.rd,
  44. * testsuite/ld-riscv-elf/gp-hidden.s,
  45. * testsuite/ld-riscv-elf/gp-hidden.sd: Delete.
  46. * testsuite/ld-riscv-elf/gp-test-lib.sd,
  47. * testsuite/ld-riscv-elf/gp-test.s,
  48. * testsuite/ld-riscv-elf/gp-test.sd: New.
  49. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Rewrite gp tests.
  50. 2017-12-04 Jim Wilson <jimw@sifive.com>
  51. * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Mark
  52. __global_pointer$ as HIDDEN.
  53. * testsuite/ld-riscv-elf/gp-hidden-64.rd: New.
  54. * testsuite/ld-riscv-elf/gp-hidden-lib.rd: New.
  55. * testsuite/ld-riscv-elf/gp-hidden-lib.s: New.
  56. * testsuite/ld-riscv-elf/gp-hidden-ver-64.rd: New.
  57. * testsuite/ld-riscv-elf/gp-hidden-ver.rd: New.
  58. * testsuite/ld-riscv-elf/gp-hidden-ver.s: New.
  59. * testsuite/ld-riscv-elf/gp-hidder-ver.ver: New.
  60. * testsuite/ld-riscv-elf/gp-hidden.rd: New.
  61. * testsuite/ld-riscv-elf/gp-hidden.s: New.
  62. * testsuite/ld-riscv-elf/gp-hidden.sd: New.
  63. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Change riscv to riscv*.
  64. Run the new tests with run_ld_link_tests.
  65. 2017-12-04 Alan Modra <amodra@gmail.com>
  66. * testsuite/ld-i386/pr17935-1.d: Adjust expected error.
  67. * testsuite/ld-i386/pr17935-2.d: Likewise.
  68. * testsuite/ld-x86-64/pr17935-1.d: Likewise.
  69. * testsuite/ld-x86-64/pr17935-2.d: Likewise.
  70. 2017-12-04 Alan Modra <amodra@gmail.com>
  71. * testsuite/ld-powerpc/powerpc.exp (ppceabitests): Add -a32 -mbig
  72. to assembler options, and -melf32ppc to linker options. Always
  73. run these tests.
  74. 2017-12-01 Tobias Ulmer <tobiasu@tmux.org>
  75. * ldwrite.c (build_link_order): Check return value of all
  76. bfd_new_link_order calls.
  77. 2017-12-01 Alan Modra <amodra@gmail.com>
  78. * testsuite/ld-elfweak/alias.c,
  79. * testsuite/ld-elfweak/alias.dat,
  80. * testsuite/ld-elfweak/aliasmain.c,
  81. * testsuite/ld-elfweak/weakref1.c,
  82. * testsuite/ld-elfweak/weakref2.c: New test.
  83. * testsuite/ld-elfweak/elfweak.exp: Run it. Don't return on fails,
  84. attempt other tests.
  85. 2017-12-01 Alan Modra <amodra@gmail.com>
  86. * testsuite/ld-elf/shared.exp: Run new textrel tests.
  87. * testsuite/ld-elf/textrel.map: New file.
  88. * testsuite/ld-elf/textrel.rd: New file.
  89. * testsuite/ld-elf/textrel.s: New file.
  90. * testsuite/ld-elf/textrel.warn: New file.
  91. 2017-11-30 Alan Modra <amodra@gmail.com>
  92. PR 22471
  93. * testsuite/ld-elf/shared.exp: Save and restore ASFLAGS.
  94. 2017-11-29 H.J. Lu <hongjiu.lu@intel.com>
  95. PR ld/22471
  96. * testsuite/ld-elf/pr22471.t: New file.
  97. * testsuite/ld-elf/pr22471a.s: Likewise.
  98. * testsuite/ld-elf/pr22471b.s: Likewise.
  99. * testsuite/ld-elf/shared.exp (ASFLAGS): Define UNDERSCORE for
  100. underscore targets.
  101. Run PR ld/22471 tests.
  102. 2017-11-29 Stefan Stroe <stroestefan@gmail.com>
  103. * po/Make-in (datadir): Define as @datadir@.
  104. (localedir): Define as @localedir@.
  105. (gnulocaledir, gettextsrcdir): Use @datarootdir@.
  106. 2017-11-28 Alan Modra <amodra@gmail.com>
  107. PR 22471
  108. * ldexp.c (struct definedness_hash_entry): Delete "by_script". Make
  109. "iteration" an 8-bit field, and update mask in all uses.
  110. (definedness_newfunc): Don't init "by_script".
  111. (update_definedness): Test ldscript_def rather than by_script.
  112. (is_sym_value): Likewise.
  113. (fold_name <DEFINED>): Return a result for first phase. Test
  114. ldscript_def.
  115. (fold_name <NAME>): Return a result for first phase.
  116. * ldlang.c (open_input_bfds): Process all assignments, not just
  117. defsym.
  118. (lang_process): Increment lang_statement_iteration before
  119. open_input_bfds.
  120. * testsuite/ld-mips-elf/tlsdyn-o32-1.d: Adjust for larger .dynsym.
  121. * testsuite/ld-mips-elf/tlsdyn-o32-1.got: Likewise.
  122. * testsuite/ld-mips-elf/tlsdyn-o32-2.d: Likewise.
  123. * testsuite/ld-mips-elf/tlsdyn-o32-2.got: Likewise.
  124. * testsuite/ld-mips-elf/tlsdyn-o32-3.d: Likewise.
  125. * testsuite/ld-mips-elf/tlsdyn-o32-3.got: Likewise.
  126. 2017-11-28 Alan Modra <amodra@gmail.com>
  127. * ldexp.h (struct ldexp_control): Add "assign_src".
  128. * ldexp.c (fold_trinary): Save and restore assign_src around
  129. condition evaluation.
  130. (fold_name <NAME>): Set expld.assign_src.
  131. (try_copy_symbol_type): Delete.
  132. (exp_fold_tree_1): Set symbol type using expld.assign_src.
  133. 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
  134. PR ld/22502
  135. * testsuite/ld-plugin/lto.exp: Run PR ld/22502 test.
  136. * testsuite/ld-plugin/pr22502a.c: New file.
  137. * testsuite/ld-plugin/pr22502b.c: Likewise.
  138. 2017-11-24 H.J. Lu <hongjiu.lu@intel.com>
  139. * testsuite/ld-elf/pr21562c.t: Also provide ___start_scnfoo and
  140. ___stop_scnfoo.
  141. * testsuite/ld-elf/pr21562d.t: Likewise.
  142. 2017-11-23 Martin Storsjo <martin@martin.st>
  143. * pe-dll.c (autofilter_liblist): Add libmsvcrt, libmsvcrt-os and
  144. libucrtbase.
  145. 2017-11-23 Jan Beulich <jbeulich@suse.com>
  146. PR gas/22441
  147. * testsuite/ld-x86-64/apic.{s,d}: New.
  148. * testsuite/ld-x86-64/x86-64.exp: Run new test.
  149. 2017-11-21 Nick Clifton <nickc@redhat.com>
  150. PR 22419
  151. * emultempl/v850elf.em (v850_create_output_section_statements):
  152. New function. Generate an error if attempting to convert the
  153. format of the output file.
  154. * testsuite/ld-unique/pr21529.d: Skip for the V850.
  155. * testsuite/ld-elf/pr21884.d: Skip for the V850.
  156. 2017-11-21 Claudiu Zissulescu <claziss@synopsys.com>
  157. * testsuite/ld-arc/jli-simple.d: Update test.
  158. 2017-11-20 Nick Clifton <nickc@redhat.com>
  159. PR 22450
  160. * testsuite/ld-elf/elf.exp: Add --defsym ALIGN=2|3 to assembler
  161. command line depending upon the size of the target address space.
  162. * testsuite/ld-elf/pr22450.s: New test file.
  163. * testsuite/ld-elf/pr22450.d: New test driver.
  164. * testsuite/config/default.exp: Add note that LD_CLASS refers to
  165. the size of the host linker not the size of the target linker.
  166. 2017-11-15 Nick Clifton <nickc@redhat.com>
  167. PR 15152
  168. * testsuite/ld-avr/gc-section-debugline.d: Update expected
  169. output.
  170. 2017-11-15 Alan Modra <amodra@gmail.com>
  171. * ldmisc.c (vfinfo): Support up to 9 positional args.
  172. 2017-11-14 Jim Wilson <jimw@sifive.com>
  173. * testsuite/ld-elf/compress1-alt.s: New.
  174. * testsuite/ld-elf/compressed1d-alt.d: New.
  175. * testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
  176. 2017-11-14 Alan Modra <amodra@gmail.com>
  177. * testsuite/ld-elf/note-3.t: Don't discard .got.
  178. 2017-11-14 Alan Modra <amodra@gmail.com>
  179. * testsuite/ld-ifunc/ifunc.exp: Ensure non-PIC tests are really
  180. not PIE by default gcc options.
  181. 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
  182. * emultempl/ppc32elf.em (ppc_before_allocation): Replace
  183. exp_dataseg_none with exp_seg_none.
  184. * emultempl/ppc64elf.em (prelim_size_sections): Likewise.
  185. * emultempl/spuelf.em (spu_before_allocation): Likewise.
  186. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  187. * ldlang.c (lang_size_sections_1): Extract GNU_RELRO region check
  188. into ...
  189. (ldlang_check_relro_region): New function.
  190. (lang_find_relro_sections_1): Add an argument for pointer to
  191. seg_align_type and replace expld.dataseg with the pointer.
  192. (lang_find_relro_sections): Pass address of expld.dataseg to
  193. lang_find_relro_sections_1.
  194. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  195. * ldlang.c (lang_size_segment): New function.
  196. (lang_size_relro_segment_1): Likewise.
  197. (lang_size_relro_segment): Likewise.
  198. (lang_size_sections): Rewrite to call lang_size_relro_segment.
  199. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  200. * ldexp.c (fold_unary): Extract the DATA_SEGMENT_END case to ...
  201. (fold_segment_end): New function.
  202. (fold_binary): Extract the DATA_SEGMENT_ALIGN case to ...
  203. (fold_segment_align): New function.
  204. (fold_binary): Extract the DATA_SEGMENT_RELRO_END case to ...
  205. (fold_segment_relro_end): New function.
  206. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  207. * ldexp.h (phase_enum): Rename exp_dataseg_none,
  208. exp_dataseg_align_seen, exp_dataseg_relro_seen,
  209. exp_dataseg_end_seen, exp_dataseg_relro_adjust,
  210. exp_dataseg_adjust and exp_dataseg_done to exp_seg_none,
  211. exp_seg_align_seen, exp_seg_relro_seen, exp_seg_end_seen,
  212. exp_seg_relro_adjust, exp_seg_adjust and exp_seg_done.
  213. (relro_enum): Rename exp_dataseg_relro_none,
  214. exp_dataseg_relro_start and exp_dataseg_relro_end to
  215. exp_seg_relro_none, exp_seg_relro_start and exp_seg_relro_end.
  216. (seg_align_type): New struct type.
  217. (ldexp_control): Use seg_align_type.
  218. * ldexp.c (fold_unary): Updated.
  219. (fold_binary): Likewise.
  220. * ldlang.c (strip_excluded_output_sections): Likewise.
  221. (lang_size_sections_1): Likewise.
  222. (lang_size_sections): Likewise.
  223. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  224. PR ld/22423
  225. * testsuite/ld-alpha/tlsbin.rd: Replace "R E " with "R +" for
  226. PT_PHDR segment.
  227. * testsuite/ld-alpha/tlsbinr.rd: Likewise.
  228. * testsuite/ld-ia64/tlsbin.rd: Likewise.
  229. * testsuite/ld-powerpc/tlsexe.r: Likewise.
  230. * testsuite/ld-powerpc/tlsexe32.r: Likewise.
  231. * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
  232. * testsuite/ld-s390/tlsbin.rd: Likewise.
  233. * testsuite/ld-s390/tlsbin_64.rd: Likewise.
  234. * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
  235. * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
  236. * testsuite/ld-elf/pr22423.d: New test.
  237. 2017-11-12 H.J. Lu <hongjiu.lu@intel.com>
  238. * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): Renamed
  239. to ...
  240. (OTHER_PLT_SECTIONS): This.
  241. * emulparams/elf_i386.sh: Likewise.
  242. * emulparams/elf_iamcu.sh: Likewise.
  243. * emulparams/elf_x86_64.sh: Likewise.
  244. * scripttempl/elf.sc: Place ${OTHER_PLT_SECTIONS} just after
  245. .plt.
  246. 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
  247. * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Reformat
  248. to generate consistent codes.
  249. 2017-11-07 Alan Modra <amodra@gmail.com>
  250. * testsuite/ld-aarch64/ifunc-13.d,
  251. * testsuite/ld-aarch64/ifunc-15.d,
  252. * testsuite/ld-aarch64/ifunc-20.d,
  253. * testsuite/ld-alpha/tlsbin.rd,
  254. * testsuite/ld-alpha/tlspic.rd,
  255. * testsuite/ld-arm/ifunc-3.rd,
  256. * testsuite/ld-arm/ifunc-9.rd,
  257. * testsuite/ld-arm/unwind-mix.d,
  258. * testsuite/ld-arm/unwind-rel.d,
  259. * testsuite/ld-cris/hiddef1.d,
  260. * testsuite/ld-cris/libdso-13.d,
  261. * testsuite/ld-cris/libdso-2.d,
  262. * testsuite/ld-cris/pr16044.d,
  263. * testsuite/ld-cris/tls-local-63.d,
  264. * testsuite/ld-cris/tls-local-64.d,
  265. * testsuite/ld-cris/tls-und-38.d,
  266. * testsuite/ld-cris/tls-und-42.d,
  267. * testsuite/ld-cris/tls-und-46.d,
  268. * testsuite/ld-cris/tls-und-50.d,
  269. * testsuite/ld-cris/weakref3.d,
  270. * testsuite/ld-cris/weakref4.d,
  271. * testsuite/ld-elf/comm-data2r.rd,
  272. * testsuite/ld-elf/discard1.d,
  273. * testsuite/ld-elf/discard2.d,
  274. * testsuite/ld-elf/pr19539.d,
  275. * testsuite/ld-elf/pr22374-1.r,
  276. * testsuite/ld-elf/pr22374-2.r,
  277. * testsuite/ld-i386/combreloc.d,
  278. * testsuite/ld-i386/emit-relocs-nacl.rd,
  279. * testsuite/ld-i386/emit-relocs.rd,
  280. * testsuite/ld-i386/pr13302.d,
  281. * testsuite/ld-i386/pr17709-nacl.rd,
  282. * testsuite/ld-i386/pr17709.rd,
  283. * testsuite/ld-i386/pr19539.d,
  284. * testsuite/ld-i386/pr19615.d,
  285. * testsuite/ld-i386/pr19636-1a.d,
  286. * testsuite/ld-i386/pr19636-1e.d,
  287. * testsuite/ld-i386/pr19636-1f.d,
  288. * testsuite/ld-i386/pr19636-2a.d,
  289. * testsuite/ld-i386/pr19636-2b.d,
  290. * testsuite/ld-i386/pr19636-2d-nacl.d,
  291. * testsuite/ld-i386/pr19636-2e-nacl.d,
  292. * testsuite/ld-i386/pr19636-3a.d,
  293. * testsuite/ld-i386/pr19636-3d.d,
  294. * testsuite/ld-i386/pr19636-3e.d,
  295. * testsuite/ld-i386/pr19636-4a.d,
  296. * testsuite/ld-i386/pr19645.d,
  297. * testsuite/ld-i386/pr19827-nacl.rd,
  298. * testsuite/ld-i386/pr19827.rd,
  299. * testsuite/ld-i386/pr20253-4a.d,
  300. * testsuite/ld-i386/pr20253-4b.d,
  301. * testsuite/ld-i386/pr20253-5.d,
  302. * testsuite/ld-i386/tlsbin-nacl.rd,
  303. * testsuite/ld-i386/tlsbin.rd,
  304. * testsuite/ld-i386/tlspic-nacl.rd,
  305. * testsuite/ld-i386/tlspic.rd,
  306. * testsuite/ld-i386/undefweakb.d,
  307. * testsuite/ld-ia64/tlsbin.rd,
  308. * testsuite/ld-ia64/tlspic.rd,
  309. * testsuite/ld-ifunc/ifunc-13-i386.d,
  310. * testsuite/ld-ifunc/ifunc-13-x86-64.d,
  311. * testsuite/ld-ifunc/ifunc-15-i386.d,
  312. * testsuite/ld-ifunc/ifunc-15-x86-64.d,
  313. * testsuite/ld-ifunc/ifunc-20-i386.d,
  314. * testsuite/ld-ifunc/ifunc-20-x86-64.d,
  315. * testsuite/ld-ifunc/ifunc-23a-x86.d,
  316. * testsuite/ld-ifunc/ifunc-23b-x86.d,
  317. * testsuite/ld-ifunc/ifunc-23c-x86.d,
  318. * testsuite/ld-ifunc/ifunc-24a-x86.d,
  319. * testsuite/ld-ifunc/ifunc-24b-x86.d,
  320. * testsuite/ld-ifunc/ifunc-24c-x86.d,
  321. * testsuite/ld-ifunc/ifunc-25a-x86.d,
  322. * testsuite/ld-ifunc/ifunc-25b-x86.d,
  323. * testsuite/ld-ifunc/ifunc-25c-x86.d,
  324. * testsuite/ld-m68k/got-1.d,
  325. * testsuite/ld-mips-elf/vxworks1.rd,
  326. * testsuite/ld-powerpc/ambiguousv1.d,
  327. * testsuite/ld-powerpc/ambiguousv1b.d,
  328. * testsuite/ld-powerpc/ambiguousv2.d,
  329. * testsuite/ld-powerpc/ambiguousv2b.d,
  330. * testsuite/ld-powerpc/tlsexe.r,
  331. * testsuite/ld-powerpc/tlsexe32.r,
  332. * testsuite/ld-powerpc/tlsexetoc.r,
  333. * testsuite/ld-powerpc/tlsso.r,
  334. * testsuite/ld-powerpc/tlsso32.r,
  335. * testsuite/ld-powerpc/tlstocso.r,
  336. * testsuite/ld-powerpc/vle-multiseg-1.d,
  337. * testsuite/ld-powerpc/vle-multiseg-2.d,
  338. * testsuite/ld-powerpc/vle-multiseg-3.d,
  339. * testsuite/ld-s390/tlsbin.rd,
  340. * testsuite/ld-s390/tlsbin_64.rd,
  341. * testsuite/ld-s390/tlspic.rd,
  342. * testsuite/ld-s390/tlspic_64.rd,
  343. * testsuite/ld-sh/ld-r-1.d,
  344. * testsuite/ld-sh/sh64/gotplt.d,
  345. * testsuite/ld-sh/shared-1.d,
  346. * testsuite/ld-sh/tlsbin-2.d,
  347. * testsuite/ld-sh/tlspic-2.d,
  348. * testsuite/ld-sparc/gotop32.rd,
  349. * testsuite/ld-sparc/gotop64.rd,
  350. * testsuite/ld-sparc/tlssunpic32.rd,
  351. * testsuite/ld-sparc/tlssunpic64.rd,
  352. * testsuite/ld-sparc/vxworks1-lib.rd,
  353. * testsuite/ld-tic6x/shlib-app-1.rd,
  354. * testsuite/ld-tic6x/shlib-app-1b.rd,
  355. * testsuite/ld-tic6x/shlib-app-1r.rd,
  356. * testsuite/ld-tic6x/shlib-app-1rb.rd,
  357. * testsuite/ld-tic6x/shlib-noindex.rd,
  358. * testsuite/ld-vax-elf/export-class-data.rd,
  359. * testsuite/ld-x86-64/pr13082-1a.d,
  360. * testsuite/ld-x86-64/pr13082-1b.d,
  361. * testsuite/ld-x86-64/pr13082-2a.d,
  362. * testsuite/ld-x86-64/pr13082-2b.d,
  363. * testsuite/ld-x86-64/pr13082-3a.d,
  364. * testsuite/ld-x86-64/pr13082-3c.d,
  365. * testsuite/ld-x86-64/pr13082-4a.d,
  366. * testsuite/ld-x86-64/pr13082-5a.d,
  367. * testsuite/ld-x86-64/pr13082-5b.d,
  368. * testsuite/ld-x86-64/pr13082-6a.d,
  369. * testsuite/ld-x86-64/pr13082-6b.d,
  370. * testsuite/ld-x86-64/pr17709-nacl.rd,
  371. * testsuite/ld-x86-64/pr17709.rd,
  372. * testsuite/ld-x86-64/pr19539a.d,
  373. * testsuite/ld-x86-64/pr19539b.d,
  374. * testsuite/ld-x86-64/pr19615.d,
  375. * testsuite/ld-x86-64/pr19636-1a.d,
  376. * testsuite/ld-x86-64/pr19636-1d.d,
  377. * testsuite/ld-x86-64/pr19636-1e.d,
  378. * testsuite/ld-x86-64/pr19636-2a.d,
  379. * testsuite/ld-x86-64/pr19636-2e.d,
  380. * testsuite/ld-x86-64/pr19636-2f.d,
  381. * testsuite/ld-x86-64/pr19636-3a.d,
  382. * testsuite/ld-x86-64/pr19645.d,
  383. * testsuite/ld-x86-64/pr19807-2b.d,
  384. * testsuite/ld-x86-64/pr19807-2d.d,
  385. * testsuite/ld-x86-64/pr19827-nacl.rd,
  386. * testsuite/ld-x86-64/pr19827.rd,
  387. * testsuite/ld-x86-64/pr20253-4a.d,
  388. * testsuite/ld-x86-64/pr20253-4b.d,
  389. * testsuite/ld-x86-64/pr20253-4d.d,
  390. * testsuite/ld-x86-64/pr20253-4e.d,
  391. * testsuite/ld-x86-64/pr20253-5a.d,
  392. * testsuite/ld-x86-64/pr20253-5b.d,
  393. * testsuite/ld-x86-64/tlsbin-nacl.rd,
  394. * testsuite/ld-x86-64/tlsbin.rd,
  395. * testsuite/ld-x86-64/tlspic-nacl.rd,
  396. * testsuite/ld-x86-64/tlspic.rd,
  397. * testsuite/ld-x86-64/tlspic2-nacl.rd: Update for
  398. pluralization fixes.
  399. 2017-11-07 Alan Modra <amodra@gmail.com>
  400. * ldlang.c (lang_size_sections_1): Properly pluralize messages.
  401. (lang_check_section_addresses): Likewise.
  402. 2017-11-07 Alan Modra <amodra@gmail.com>
  403. * ld.h (textdomain, bindtextdomain): Use safer "do nothing".
  404. (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
  405. 2017-11-01 Alan Modra <amodra@gmail.com>
  406. * testsuite/ld-powerpc/ambiguousv2.d: Remove FIXME.
  407. 2017-11-01 Alan Modra <amodra@gmail.com>
  408. PR 22374
  409. * testsuite/ld-elf/pr22374a.s,
  410. * testsuite/ld-elf/pr22374b.s,
  411. * testsuite/ld-elf/pr22374-1.r,
  412. * testsuite/ld-elf/pr22374-2.r: New test.
  413. * testsuite/ld-elf/elf.exp: Run it.
  414. 2017-11-01 Alan Modra <amodra@gmail.com>
  415. * testsuite/ld-elf/elf.exp: Merge some conditionals, a better
  416. name than "shared library for next test", and use xfail arg
  417. of run_ld_link_tests in a few places.
  418. 2017-10-26 Renlin Li <renlin.li@arm.com>
  419. * testsuite/ld-elf/elf.exp: xfail pr21703 tests on specific targets.
  420. Only run shared lib test for targets which support it.
  421. * testsuite/ld-elf/pr21703-r.sd: Adjust the expected output.
  422. * testsuite/ld-elf/pr21703-shared.sd: Likewise.
  423. 2017-10-26 James Greenhalgh <james.greenhalgh@arm.com>
  424. * testsuite/ld-arm/cortex-a8-far.d: Update expected disassembly.
  425. * testsuite/ld-arm/farcall-group-size2: Likewise.
  426. * testsuite/ld-arm/farcall-group.d: Likewise.
  427. 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
  428. * ld.texinfo: Correct -z ibt.
  429. 2017-10-25 Alan Modra <amodra@gmail.com>
  430. * testsuite/ld-plugin/lto-3r.d: Match "__gnu_lto_v" optionally
  431. prefixed with "_".
  432. * testsuite/ld-plugin/lto-5r.d: Likewise.
  433. 2017-10-25 Hans-Peter Nilsson <hp@axis.com>
  434. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Fix typo for istarget.
  435. 2017-10-24 Andrew Waterman <andrew@sifive.com>
  436. * testsuite/ld-riscv-elf/c-lui.d: New testcase.
  437. * testsuite/ld-riscv-elf/c-lui.s: Likewise.
  438. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: New test suite.
  439. 2017-10-24 Renlin Li <renlin.li@arm.com>
  440. PR ld/21703
  441. * testsuite/ld-elf/elf.exp: Run new tests.
  442. * testsuite/ld-elf/pr21703-1.s: New.
  443. * testsuite/ld-elf/pr21703-2.s: New.
  444. * testsuite/ld-elf/pr21703-3.s: New.
  445. * testsuite/ld-elf/pr21703-4.s: New.
  446. * testsuite/ld-elf/pr21703-r.sd: New.
  447. * testsuite/ld-elf/pr21703-shared.sd: New.
  448. * testsuite/ld-elf/pr21703.sd: New.
  449. * testsuite/ld-elf/pr21703.ver: New.
  450. 2017-10-23 H.J. Lu <hongjiu.lu@intel.com>
  451. * configure.tgt (i[3-7]86-*-linux-*): Move elf32_x86_64 from
  452. targ_extra_libpath to targ64_extra_libpath.
  453. 2017-10-23 Nick Clifton <nickc@redhat.com>
  454. PR 22310
  455. * testsuite/ld-elf/pr22310.s: New test source file.
  456. * testsuite/ld-elf/pr22310.d: New test driver.
  457. * testsuite/ld-mmix/undef-3.d: Update expected output from readelf.
  458. 2017-10-21 Hans-Peter Nilsson <hp@axis.com>
  459. PR ld/21233
  460. * testsuite/ld-elf/shared.exp: Remove kfails.
  461. 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
  462. PR ld/22269
  463. * testsuite/ld-elf/pr22269-1.rd: New file.
  464. * testsuite/ld-elf/pr22269-1.c: Likewise.
  465. * testsuite/ld-elf/shared.exp: Run pr22269-1.
  466. 2017-10-19 Palmer Dabbelt <palmer@dabbelt.com>
  467. * emultempl/riscvelf.em (riscv_elf_before_allocation): Add a
  468. third relaxation pass.
  469. 2017-10-17 Alan Modra <amodra@gmail.com>
  470. * ld.texinfo (-z): Combine negative options with corresponding
  471. positive option. Sort the table. Expand and correct "combreloc",
  472. "common", "common-page-size", "interpose", "loadfltr",
  473. "max-page-size", "muldefs", "nodefaultlib", "nodelete", "nodlopen",
  474. "nodump", "noextern-protected-data", "now", "origin", and "text".
  475. 2017-10-16 H.J. Lu <hongjiu.lu@intel.com>
  476. * emulparams/elf32_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  477. Removed.
  478. * emulparams/elf_i386_be.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  479. Likewise.
  480. * emulparams/elf_i386_chaos.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  481. Likewise.
  482. * emulparams/elf_i386_ldso.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  483. Likewise.
  484. * emulparams/elf_i386_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  485. Likewise.
  486. * emulparams/elf_iamcu.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  487. Likewise.
  488. * emulparams/elf_k1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  489. Likewise.
  490. * emulparams/elf_l1om.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  491. Likewise.
  492. * emulparams/elf_x86_64.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  493. Likewise.
  494. * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  495. Likewise.
  496. * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  497. Likewise.
  498. * emulparams/i386nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  499. Likewise.
  500. * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  501. Likewise.
  502. * emulparams/shelf.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  503. Likewise.
  504. * emulparams/shelf32.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  505. Likewise.
  506. * emulparams/shelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  507. Likewise.
  508. * emulparams/shelf_vxworks.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  509. Likewise.
  510. * emulparams/shlelf32_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  511. Likewise.
  512. * emulparams/shlelf_linux.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  513. Likewise.
  514. * emulparams/shlelf_nto.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  515. Likewise.
  516. * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
  517. Set link_info.check_relocs_after_open_input to TRUE.
  518. * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse):
  519. Likewise.
  520. * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse):
  521. Likewise.
  522. * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
  523. after_parse_default.
  524. * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
  525. * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
  526. * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
  527. * emultempl/gld960.em (ld_${EMULATION_NAME}_emulation): Likewise.
  528. * emultempl/gld960c.em (ld_${EMULATION_NAME}_emulation): Likewise.
  529. * emultempl/lnk960.em (ld_${EMULATION_NAME}_emulation): Likewise.
  530. * emultempl/m68kcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
  531. * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
  532. * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
  533. * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
  534. * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
  535. * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
  536. * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
  537. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Always
  538. set link_info.check_relocs_after_open_input to TRUE.
  539. (ld_${EMULATION_NAME}_emulation): Add $LDEMUL_AFTER_CHECK_RELOCS.
  540. * emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
  541. Set link_info.check_relocs_after_open_input to TRUE.
  542. (ld_${EMULATION_NAME}_emulation): Add after_check_relocs_default.
  543. * emultempl/mmix-elfnmmo.em (mmix_before_parse): New function.
  544. (LDEMUL_BEFORE_PARSE): New.
  545. * emultempl/mmixelf.em (elfmmix_before_parse): Replace
  546. gld${EMULATION_NAME}_before_parse with mmix_before_parse.
  547. * emultempl/ppc32elf.em (ppc_after_open): Renamed to ...
  548. (ppc_after_check_relocs): This. Call after_check_relocs_default
  549. instead of gld${EMULATION_NAME}_after_open.
  550. (LDEMUL_AFTER_OPEN): Removed.
  551. (LDEMUL_AFTER_CHECK_RELOCS): New.
  552. * ldemul.c (ldemul_after_check_relocs): New.
  553. (after_check_relocs_default): Likewise.
  554. * ldemul.h (ldemul_after_check_relocs): Likewise.
  555. (after_check_relocs_default): Likewise.
  556. (ld_emulation_xfer_struct): Add after_check_relocs.
  557. * ldlang.c (lang_process): Call ldemul_after_check_relocs after
  558. lang_check_relocs.
  559. * testsuite/ld-aarch64/gc-got-relocs.d: Don't expect GOT section.
  560. * testsuite/ld-aarch64/gc-tls-relocs.d: Likewise.
  561. * testsuite/ld-cris/tls-gc-68.d: Likewise.
  562. * testsuite/ld-cris/tls-gc-69.d: Likewise.
  563. * testsuite/ld-cris/tls-gc-70.d: Likewise.
  564. * testsuite/ld-cris/tls-gc-75.d: Likewise.
  565. * testsuite/ld-cris/tls-gc-79.d: Likewise.
  566. * testsuite/ld-mmix/bpo-10.d: Don't expect .MMIX.reg_contents
  567. section.
  568. 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
  569. PR ld/22269
  570. * testsuite/ld-cris/weakhiddso.d: Update and remove R_CRIS_NONE.
  571. 2017-10-13 Alan Modra <amodra@gmail.com>
  572. PR ld/22263
  573. * testsuite/ld-elf/tls.exp: Link with -z text.
  574. * testsuite/ld-elf/pr22263-1.rd: Test for tprel relocs.
  575. 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
  576. PR ld/22263
  577. * testsuite/ld-elf/pr22263-1.rd: New file.
  578. * testsuite/ld-elf/pr22263-1a.c: Likewise.
  579. * testsuite/ld-elf/pr22263-1b.c: Likewise.
  580. * testsuite/ld-elf/tls.exp: Likewise.
  581. 2017-10-12 Nick Clifton <nickc@redhat.com>
  582. * testsuite/ld-aarch64/pcrel_pic_defined.d: Expect errors not
  583. warnings. Expect errors about unsupported relocations.
  584. * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
  585. 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
  586. * testsuite/ld-elf/pr22269b.d: Expect warning of
  587. "-z dynamic-undefined-weak ignored".
  588. * testsuite/ld-i386/pr19636-1j.d: Likewise.
  589. * testsuite/ld-i386/pr19636-1k.d: Likewise.
  590. * testsuite/ld-i386/pr19636-1l.d: Likewise.
  591. * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
  592. * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
  593. * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
  594. * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
  595. 2017-10-12 Alan Modra <amodra@gmail.com>
  596. PR 22269
  597. * emultempl/elf32.em (after_parse): Warn on --no-dynamic-linker
  598. -z dynamic-undefined-weak combination. Set dynamic_undefined_weak
  599. to zero when nointerp.
  600. 2017-10-12 Alan Modra <amodra@gmail.com>
  601. * emultempl/elf32.em (before_allocation): Call
  602. elf_backend_hide_symbol, not _bfd_elf_link_hash_hide_symbol.
  603. Formatting.
  604. 2017-10-11 H.J. Lu <hongjiu.lu@intel.com>
  605. * PR ld/22269
  606. * testsuite/ld-elf/pr22269.s: New file.
  607. * testsuite/ld-elf/pr22269a.d: Likewise.
  608. * testsuite/ld-elf/pr22269b.d: Likewise.
  609. 2017-10-11 H.J. Lu <hongjiu.lu@intel.com>
  610. * testsuite/ld-i386/i386.exp: Run pr19636-1j, pr19636-1k,
  611. pr19636-1l, pr19636-3h and pr19636-3i.
  612. * testsuite/ld-i386/pr19636-1j.d: New file.
  613. * testsuite/ld-i386/pr19636-1k.d: Likewise.
  614. * testsuite/ld-i386/pr19636-1l.d: Likewise.
  615. * testsuite/ld-i386/pr19636-3h.d: Likewise.
  616. * testsuite/ld-i386/pr19636-3i.d: Likewise.
  617. * testsuite/ld-x86-64/pr19636-1h.d: Likewise.
  618. * testsuite/ld-x86-64/pr19636-1i.d: Likewise.
  619. * testsuite/ld-x86-64/pr19636-1j.d: Likewise.
  620. * testsuite/ld-x86-64/pr19636-2j.d: Likewise.
  621. * testsuite/ld-x86-64/pr19636-2k.d: Likewise.
  622. * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
  623. * testsuite/ld-x86-64/pr19636-2m.d: Likewise.
  624. * testsuite/ld-x86-64/x86-64.exp: Run pr19636-1h, pr19636-1i,
  625. pr19636-1j, pr19636-2j, pr19636-2k, pr19636-2l and pr19636-2m.
  626. 2017-10-11 Alan Modra <amodra@gmail.com>
  627. * emultempl/aarch64elf.em: Wrap einfo strings in _(). Formatting.
  628. * emultempl/aix.em: Likewise.
  629. * emultempl/armcoff.em: Likewise.
  630. * emultempl/armelf.em: Likewise.
  631. * emultempl/avrelf.em: Likewise.
  632. * emultempl/beos.em: Likewise.
  633. * emultempl/cr16elf.em: Likewise.
  634. * emultempl/elf-generic.em: Likewise.
  635. * emultempl/elf32.em: Likewise.
  636. * emultempl/genelf.em: Likewise.
  637. * emultempl/hppaelf.em: Likewise.
  638. * emultempl/linux.em: Likewise.
  639. * emultempl/lnk960.em: Likewise.
  640. * emultempl/m68hc1xelf.em: Likewise.
  641. * emultempl/m68kcoff.em: Likewise.
  642. * emultempl/m68kelf.em: Likewise.
  643. * emultempl/metagelf.em: Likewise.
  644. * emultempl/mipself.em: Likewise.
  645. * emultempl/mmix-elfnmmo.em: Likewise.
  646. * emultempl/mmo.em: Likewise.
  647. * emultempl/msp430.em: Likewise.
  648. * emultempl/nds32elf.em: Likewise.
  649. * emultempl/nios2elf.em: Likewise.
  650. * emultempl/pe.em: Likewise.
  651. * emultempl/pep.em: Likewise.
  652. * emultempl/ppc32elf.em: Likewise.
  653. * emultempl/ppc64elf.em: Likewise.
  654. * emultempl/riscvelf.em: Likewise.
  655. * emultempl/s390.em: Likewise.
  656. * emultempl/scoreelf.em: Likewise.
  657. * emultempl/spuelf.em: Likewise.
  658. * emultempl/sunos.em: Likewise.
  659. * emultempl/tic6xdsbt.em: Likewise.
  660. * emultempl/v850elf.em: Likewise.
  661. * emultempl/vms.em: Likewise.
  662. * emultempl/vxworks.em: Likewise.
  663. * ldcref.c: Likewise.
  664. * ldlang.c: Likewise.
  665. * ldlex.l: Likewise.
  666. * ldmain.c: Likewise.
  667. * pe-dll.c: Likewise.
  668. * plugin.c: Likewise.
  669. 2017-10-10 Renlin Li <renlin.li@arm.com>
  670. PR ld/21402
  671. * testsuite/ld-arm/tls-app.d: Update address.
  672. * testsuite/ld-arm/tls-app.r: Remove relocations.
  673. * testsuite/ld-arm/unresolved-1-dyn.d: Update.
  674. 2017-10-10 Alan Modra <amodra@gmail.com>
  675. * Makefile.am (earmelfb_fuchsia.c): Rename rule from earmelf_fuchsia.c.
  676. * Makefile.in: Regenerate.
  677. 2017-10-09 Nick Clifton <nickc@redhat.com>
  678. * testsuite/ld-srec/srec.exp (run_srec_test): Set start address.
  679. PR ld/19874
  680. * testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
  681. 2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
  682. PR ld/22267
  683. * ldlex.l (SYMBOLNAMECHAR1) New.
  684. (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1.
  685. (EXPRESSION): Likewise.
  686. * testsuite/ld-scripts/expr.exp: Run pr22267.
  687. * testsuite/ld-scripts/pr22267.d: New file.
  688. * testsuite/ld-scripts/pr22267.s: Likewise.
  689. * testsuite/ld-scripts/pr22267.t: Likewise.
  690. 2017-10-07 H.J. Lu <hongjiu.lu@intel.com>
  691. * testsuite/ld-elf/merge.d: Don't expect to fail for sparc.
  692. 2017-10-05 Nick Clifton <nickc@redhat.com>
  693. * po/tr.po: Updated Turkish translation.
  694. 2017-10-05 Nick Clifton <nickc@redhat.com>
  695. PR 22262
  696. * testsuite/ld-powerpc/relocsort.d: Update expected output (for
  697. longer reloc names).
  698. 2017-10-05 Alan Modra <amodra@gmail.com>
  699. PR 21167
  700. * testsuite/ld-elf/group9b.d: Adjust for relocs included in group.
  701. 2017-10-03 Alan Modra <amodra@gmail.com>
  702. PR 21294
  703. * NEWS: Note that defaulting to -z relro results in increased
  704. memory and disk size.
  705. 2017-10-03 Alan Modra <amodra@gmail.com>
  706. * ld.texinfo (-z relro): Expand description.
  707. (DATA_SEGMENT_ALIGN): Note that -z relro is not effective when
  708. running with system page size larger than commonpagesize.
  709. (DATA_SEGMENT_RELRO_END): Be explicit about the alignment.
  710. 2017-10-01 Alan Modra <amodra@gmail.com>
  711. PR 21970
  712. * ldlang.c (lang_leave_overlay): Reset overlay_subalign.
  713. 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
  714. PR binutils/21978
  715. * testsuite/ld-elf/pr21978.od: New file.
  716. * testsuite/ld-elf/pr21978a.c: Likewise.
  717. * testsuite/ld-elf/pr21978b.c: Likewise.
  718. * testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.
  719. 2017-09-28 Nick Clifton <nickc@redhat.com>
  720. PR 14918
  721. * testsuite/ld-plugin/lto.exp (link_elf_tests): Skip the pr14918
  722. test for ARM targets as they always link with libgcc.
  723. 2017-09-28 Alan Modra <amodra@gmail.com>
  724. * testsuite/ld-plugin/pr22220.h,
  725. * testsuite/ld-plugin/pr22220lib.cc,
  726. * testsuite/ld-plugin/pr22220lib.ver,
  727. * testsuite/ld-plugin/pr22220main.cc: New test.
  728. * testsuite/ld-plugin/lto.exp: Run it.
  729. 2017-09-26 Maciej W. Rozycki <macro@imgtec.com>
  730. * testsuite/ld-undefined/undefined.exp: Correct the dyn reloc
  731. test for MIPS and S+core targets.
  732. 2017-09-22 H.J. Lu <hongjiu.lu@intel.com>
  733. PR ld/22150
  734. * testsuite/ld-elf/pr22150.vd: New file.
  735. * testsuite/ld-elf/pr22150.ver: Likewise.
  736. * testsuite/ld-elf/pr22150a.s: Likewise.
  737. * testsuite/ld-elf/pr22150b.s: Likewise.
  738. * testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
  739. 2017-09-21 Alan Modra <amodra@gmail.com>
  740. * testsuite/ld-powerpc/tlsopt5.wf: Update for reduced alignment.
  741. 2017-09-19 Maciej W. Rozycki <macro@imgtec.com>
  742. * configure.tgt <mips64el-*-openbsd*, mips64-*-openbsd*>: New
  743. targets.
  744. 2017-09-15 Alan Modra <amodra@gmail.com>
  745. PR 22118
  746. * testsuite/ld-aarch64/erratum843419.d: Correct regexp.
  747. 2017-09-14 H.J. Lu <hongjiu.lu@intel.com>
  748. PR ld/22139
  749. * testsuite/ld-elf/globalaudit.rd: Allow additional bits in
  750. DT_FLAGS_1.
  751. 2017-09-14 H.J. Lu <hongjiu.lu@intel.com>
  752. PR ld/22135
  753. * testsuite/ld-i386/i386.exp: Run pr22135.
  754. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  755. * testsuite/ld-i386/pr22135.d: New file.
  756. * testsuite/ld-i386/pr22135.s: Likewise.
  757. * testsuite/ld-x86-64/pr22135.d: Likewise.
  758. * testsuite/ld-x86-64/pr22135.s: Likewise.
  759. 2017-09-09 Alan Modra <amodra@gmail.com>
  760. * ld.texinfo (--plt-align): Describe new behaviour of option.
  761. * emultempl/ppc64elf.em (params): Default plt_stub_align to 5.
  762. * testsuite/ld-powerpc/powerpc.exp: Pass --no-plt-align for
  763. selected tests.
  764. * testsuite/ld-powerpc/relbrlt.d: Pass --no-plt-align.
  765. * testsuite/ld-powerpc/elfv2so.d: Adjust expected output.
  766. 2017-09-09 H.J. Lu <hongjiu.lu@intel.com>
  767. PR ld/22115
  768. * ld-i386/i386.exp: Run PR ld/22115 tests,
  769. * ld/testsuite/ld-x86-64/x86-64.exp: Likewise.
  770. * testsuite/ld-i386/pr22115-1.s: New file.
  771. * testsuite/ld-i386/pr22115-1a.d: Likewise.
  772. * testsuite/ld-i386/pr22115-1b.d: Likewise.
  773. * testsuite/ld-i386/pr22115-1c.d: Likewise.
  774. * testsuite/ld-i386/pr22115-1d.d: Likewise.
  775. * testsuite/ld-x86-64/pr22115-1.s: Likewise.
  776. * testsuite/ld-x86-64/pr22115-1a-x32.d: Likewise.
  777. * testsuite/ld-x86-64/pr22115-1a.d: Likewise.
  778. * testsuite/ld-x86-64/pr22115-1b-x32.d: Likewise.
  779. * testsuite/ld-x86-64/pr22115-1b.d: Likewise.
  780. * testsuite/ld-x86-64/pr22115-1c-x32.d: Likewise.
  781. * testsuite/ld-x86-64/pr22115-1c.d: Likewise.
  782. * testsuite/ld-x86-64/pr22115-1d-x32.d: Likewise.
  783. * testsuite/ld-x86-64/pr22115-1d.d: Likewise.
  784. 2017-09-06 H.J. Lu <hongjiu.lu@intel.com>
  785. * testsuite/ld-x86-64/pr19609-2a.d: Updated.
  786. * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
  787. * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
  788. * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
  789. 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
  790. * testsuite/ld-x86-64/pr19609-5d.d: Updated.
  791. * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
  792. * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
  793. 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
  794. * testsuite/ld-x86-64/pr19609-4e.d: Updated.
  795. * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
  796. 2017-09-03 H.J. Lu <hongjiu.lu@intel.com>
  797. PR ld/22071
  798. * testsuite/ld-x86-64/pr22071.d: New file.
  799. * testsuite/ld-x86-64/pr22071.s: Likewise.
  800. * testsuite/ld-x86-64/x86-64.exp: Run pr22071.
  801. 2017-09-02 Alan Modra <amodra@gmail.com>
  802. * ldlang.h (lang_input_statement_type): Expand comments.
  803. (LANG_FOR_EACH_INPUT_STATEMENT): Rewrite without casts.
  804. * ldlang.c (lang_for_each_input_file): Likewise.
  805. (load_symbols): Set usrdata for archives.
  806. (find_rescan_insertion): New function.
  807. (lang_process): Trim off and reinsert entries added to file chain
  808. when rescanning archives for LTO.
  809. * ldmain.c (add_archive_element): Set my_archive input_statement
  810. next pointer to last element added.
  811. 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
  812. PR ld/22064
  813. * testsuite/ld-x86-64/pr22064a.S: New file.
  814. * testsuite/ld-x86-64/pr22064b.c: Likewise.
  815. * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22064 test.
  816. 2017-09-02 Alan Modra <amodra@gmail.com>
  817. * emultempl/msp430.em (eval_upper_either_sections): Make base_sec_name
  818. a const char*.
  819. (eval_lower_either_sections): Likewise.
  820. (msp430_elf_after_allocation): Likewise, and don't needlessly concat
  821. and free. Warning fix.
  822. 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
  823. PR ld/22061
  824. * testsuite/ld-i386/ibt-plt-1.d: Updated.
  825. * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
  826. * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
  827. * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
  828. * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
  829. * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
  830. * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
  831. * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
  832. * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
  833. * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
  834. * testsuite/ld-i386/ibt-plt-2b.d: Pass --hash-style=sysv to ld
  835. and dump unwind information.
  836. * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
  837. * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
  838. * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
  839. * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
  840. * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
  841. * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
  842. * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
  843. * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
  844. * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
  845. * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
  846. * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
  847. 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
  848. PR ld/22048
  849. * testsuite/ld-x86-64/pr22048.d: New file.
  850. * testsuite/ld-x86-64/pr22048a.s: Likewise.
  851. * testsuite/ld-x86-64/pr22048b.s: Likewise.
  852. * testsuite/ld-x86-64/x86-64.exp: Run pr22048.
  853. 2017-08-31 Alan Modra <amodra@gmail.com>
  854. * testsuite/ld-elf/eh3.d: Update.
  855. * testsuite/ld-elf/eh4.d: Update.
  856. 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
  857. * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
  858. sections.
  859. 2017-08-30 Maciej W. Rozycki <macro@imgtec.com>
  860. * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test.
  861. * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New
  862. test.
  863. * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d: New
  864. test.
  865. * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: New test.
  866. * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d: New
  867. test.
  868. * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d: New
  869. test.
  870. * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: New test.
  871. * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: New test.
  872. * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: New test.
  873. * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d: New
  874. test.
  875. * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d: New
  876. test.
  877. * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d: New
  878. test.
  879. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  880. 2017-08-30 Alan Modra <amodra@gmail.com>
  881. * testsuite/ld-powerpc/tls.s: Add calls with tls markers.
  882. * testsuite/ld-powerpc/tls32.s: Likewise.
  883. * testsuite/ld-powerpc/powerpc.exp: Run tls marker tests.
  884. * testsuite/ld-powerpc/tls.d: Adjust for TPREL16_HA/LO optimization.
  885. * testsuite/ld-powerpc/tlsexe.d: Likewise.
  886. * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
  887. * testsuite/ld-powerpc/tlsld.d: Likewise.
  888. * testsuite/ld-powerpc/tlsmark.d: Likewise.
  889. * testsuite/ld-powerpc/tlsopt4.d: Likewise.
  890. * testsuite/ld-powerpc/tlstoc.d: Likewise.
  891. 2017-08-30 Alan Modra <amodra@gmail.com>
  892. * testsuite/ld-powerpc/tls.d: Update.
  893. * testsuite/ld-powerpc/tlsexe.d: Update.
  894. * testsuite/ld-powerpc/tlsexetoc.d: Update.
  895. * testsuite/ld-powerpc/tlsld.d: Update.
  896. * testsuite/ld-powerpc/tlsmark.d: Update.
  897. * testsuite/ld-powerpc/tlsopt4.d: Update.
  898. * testsuite/ld-powerpc/tlstoc.d: Update.
  899. 2017-08-30 Hans-Peter Nilsson <hp@axis.com>
  900. * testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
  901. * testsuite/ld-cris/dso-pltdis2.d,
  902. testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
  903. testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
  904. testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
  905. testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
  906. testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
  907. testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
  908. testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
  909. testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
  910. testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
  911. testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
  912. testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
  913. testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
  914. testsuite/ld-cris/tls-dso-dtpoffd2.d,
  915. testsuite/ld-cris/tls-dso-dtpoffd4.d,
  916. testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
  917. testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
  918. testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
  919. testsuite/ld-cris/tls-ldgdex-14.d,
  920. testsuite/ld-cris/tls-ldgdex-15.d,
  921. testsuite/ld-cris/tls-legdx-16.d,
  922. testsuite/ld-cris/tls-legdx-17.d,
  923. testsuite/ld-cris/tls-local-63.d,
  924. testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
  925. testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
  926. testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
  927. testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
  928. testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
  929. testsuite/ld-cris/weakref4.d: Likewise.
  930. 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
  931. * emultempl/msp430.em (change_output_section): New function.
  932. (move_prefixed_section): New function.
  933. (add_region_prefix): New function.
  934. (msp430_elf_after_open): New function.
  935. (gld${EMULATION_NAME}_add_options): Implement.
  936. (gld${EMULATION_NAME}_list_options): Implement.
  937. (gld${EMULATION_NAME}_handle_option): Implement.
  938. * ld.texinfo: Document new options.
  939. * testsuite/ld-msp430-elf/main-bss-lower.d: New.
  940. * testsuite/ld-msp430-elf/main-bss-upper.d: New.
  941. * testsuite/ld-msp430-elf/main-const-lower.d: New.
  942. * testsuite/ld-msp430-elf/main-const-upper.d: New.
  943. * testsuite/ld-msp430-elf/main-text-lower.d: New.
  944. * testsuite/ld-msp430-elf/main-text-upper.d: New.
  945. * testsuite/ld-msp430-elf/main-var-lower.d: New.
  946. * testsuite/ld-msp430-elf/main-var-upper.d: New.
  947. * testsuite/ld-msp430-elf/main-with-data-bss-unique-sec.s: New.
  948. * testsuite/ld-msp430-elf/main-with-data-bss.s: New.
  949. * testsuite/ld-msp430-elf/main-with-text-rodata-unique-sec.s: New.
  950. * testsuite/ld-msp430-elf/main-with-text-rodata.s: New.
  951. * testsuite/ld-msp430-elf/msp430-elf.exp: New.
  952. * testsuite/ld-msp430-elf/msp430-no-lower.ld: New.
  953. * testsuite/ld-msp430-elf/msp430.ld: New.
  954. * emultempl/msp430.em (data_statement_size): New.
  955. (eval_upper_either_sections): New.
  956. (eval_lower_either_sections): New.
  957. (intermediate_relax_sections): New.
  958. (msp430_elf_after_allocation): New.
  959. * emultempl/msp430.em (gld${EMULATION_NAME}_place_orphan): Always
  960. place sections in the lower region.
  961. 2017-08-26 H.J. Lu <hongjiu.lu@intel.com>
  962. PR ld/21997
  963. * testsuite/ld-i386/i386.exp: Run PR ld/21997 tests.
  964. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  965. * testsuite/ld-i386/pr21997-1a.S: New file.
  966. * testsuite/ld-i386/pr21997-1b.c: Likewise.
  967. * testsuite/ld-i386/pr21997-1c.S: Likewise.
  968. * testsuite/ld-x86-64/pr21997-1a.S: Likewise.
  969. * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
  970. * testsuite/ld-x86-64/pr21997-1b.c: Likewise.
  971. * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
  972. * testsuite/ld-x86-64/pr21997-1c.c: Likewise.
  973. 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
  974. * testsuite/ld-elf/pr21903c.d: Remove '\' before --.
  975. * testsuite/ld-elf/pr21903d.d: Likewise.
  976. * testsuite/ld-elf/pr21903e.d: Likewise.
  977. * testsuite/lib/ld-lib.exp (run_dump_test): Add "--" after
  978. regexp.
  979. 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
  980. * testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
  981. with string match.
  982. * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Likewise.
  983. 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
  984. * testsuite/ld-x86-64/x86-64.exp: Run pr22001-1b on x32.
  985. 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
  986. PR ld/22001
  987. * testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
  988. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  989. * testsuite/ld-i386/pr22001-1a.c: New file.
  990. * testsuite/ld-i386/pr22001-1b.c: Likewise.
  991. * testsuite/ld-i386/pr22001-1c.S: Likewise.
  992. * testsuite/ld-x86-64/pr22001-1a.c: Likewise.
  993. * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
  994. * testsuite/ld-x86-64/pr22001-1b.c: Likewise.
  995. * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
  996. * testsuite/ld-x86-64/pr22001-1c.c: Likewise.
  997. 2017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
  998. PR 21961
  999. * ldlang.c (lang_discard_section_p): New function.
  1000. (lang_add_section): Checks moved out into new function, which is
  1001. now called.
  1002. (lang_place_orphans): Call lang_discard_section_p instead of
  1003. duplicating some of the checks from lang_add_section.
  1004. * testsuite/ld-elf/orphan-11.d: New file.
  1005. * testsuite/ld-elf/orphan-11.ld: New file.
  1006. * testsuite/ld-elf/orphan-11.s: New file.
  1007. * testsuite/ld-elf/orphan-12.d: New file.
  1008. * testsuite/ld-elf/orphan-12.s: New file.
  1009. 2017-08-24 Alan Modra <amodra@gmail.com>
  1010. * testsuite/ld-undefined/fundef.s: New test.
  1011. * testsuite/ld-undefined/undefined.exp: Test that undefined
  1012. symbols in shared libraries are made dynamic.
  1013. 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
  1014. * testsuite/ld-elf/pr21903c.d: Add '\' before --.
  1015. * testsuite/ld-elf/pr21903d.d: Likewise.
  1016. * testsuite/ld-elf/pr21903e.d: Likewise.
  1017. 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
  1018. * testsuite/ld-x86-64/pie2.d: Updated.
  1019. * testsuite/ld-x86-64/pr19719.d: Likewise.
  1020. * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
  1021. * testsuite/ld-x86-64/pr19969.d: Likewise.
  1022. 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
  1023. * testsuite/ld-i386/i386.exp: Run protected7.
  1024. * testsuite/ld-i386/protected7.d: New file.
  1025. * testsuite/ld-i386/protected7.s: Likewise.
  1026. * testsuite/ld-x86-64/protected8.d: Likewise.
  1027. * testsuite/ld-x86-64/protected8.s: Likewise.
  1028. * testsuite/ld-x86-64/x86-64.exp: Run protected8.
  1029. 2017-08-23 Alan Modra <amodra@gmail.com>
  1030. * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
  1031. 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
  1032. Alan Modra <amodra@gmail.com>
  1033. * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
  1034. (foo1): This.
  1035. * testsuite/ld-elf/pr21964-1b.c: Rewrite.
  1036. * testsuite/ld-elf/pr21964-1c.c: New file.
  1037. * testsuite/ld-elf/pr21964-2c.c: Likewise.
  1038. * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
  1039. (foo1): This.
  1040. * testsuite/ld-elf/pr21964-2b.c: Rewrite.
  1041. * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
  1042. 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
  1043. Alan Modra <amodra@gmail.com>
  1044. PR ld/21964
  1045. * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
  1046. * testsuite/ld-elf/pr21562b.d: Likewise.
  1047. * testsuite/ld-elf/pr21562c.d: Likewise.
  1048. * testsuite/ld-elf/pr21562d.d: Likewise.
  1049. * testsuite/ld-elf/pr21562e.d: Likewise.
  1050. * testsuite/ld-elf/pr21562f.d: Likewise.
  1051. * testsuite/ld-elf/pr21562g.d: Likewise.
  1052. * testsuite/ld-elf/pr21562h.d: Likewise.
  1053. * testsuite/ld-elf/pr21562i.d: Likewise.
  1054. * testsuite/ld-elf/pr21562j.d: Likewise.
  1055. * testsuite/ld-elf/pr21562k.d: Likewise.
  1056. * testsuite/ld-elf/pr21562l.d: Likewise.
  1057. * testsuite/ld-elf/pr21562m.d: Likewise.
  1058. * testsuite/ld-elf/pr21562n.d: Likewise.
  1059. * testsuite/ld-elf/sizeofa.d: Likewise.
  1060. * testsuite/ld-elf/sizeofb.d: Likewise.
  1061. * testsuite/ld-elf/startofa.d: Likewise.
  1062. * testsuite/ld-elf/startofb.d: Likewise.
  1063. * testsuite/ld-gc/pr20022.d: Likewise.
  1064. * testsuite/ld-gc/start.d: Likewise.
  1065. * testsuite/ld-elf/pr21964-1a.c: New file.
  1066. * testsuite/ld-elf/pr21964-1b.c: New file.
  1067. * testsuite/ld-elf/pr21964-2a.c: New file.
  1068. * testsuite/ld-elf/pr21964-2b.c: New file.
  1069. * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
  1070. 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com>
  1071. PR ld/20125
  1072. * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
  1073. test.
  1074. 2017-08-20 A. Wilcox <awilfox@adelielinux.org>
  1075. PR ld/21976
  1076. * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
  1077. name.
  1078. 2017-08-17 Nick Clifton <nickc@redhat.com>
  1079. * po/pt_BR.po: New Brazilian Portuguese translation.
  1080. * configure.ac (ALL_LINGUAS): Add pt_BR.
  1081. * configure: Regenerate.
  1082. 2017-08-14 Alan Modra <amodra@gmail.com>
  1083. PR 21441
  1084. * testsuite/ld-x86-64/pr21038a.d: Adjust.
  1085. * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
  1086. 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
  1087. * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
  1088. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1089. * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
  1090. * testsuite/ld-x86-64/pr21884.d: Likewise.
  1091. * testsuite/ld-i386/pr21884.t: Revert the last change.
  1092. * testsuite/ld-x86-64/pr21884.t: Likewise.
  1093. * testsuite/ld-i386/pr21884-nacl.d: New file.
  1094. * testsuite/ld-i386/pr21884-nacl.t: Likewise.
  1095. * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
  1096. * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
  1097. 2017-08-13 Alan Modra <amodra@gmail.com>
  1098. * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
  1099. * testsuite/ld-x86-64/pr21884.t: Likewise.
  1100. 2017-08-11 Nick Clifton <nickc@redhat.com>
  1101. * emultempl/elf32.em (handle_option): Accept the -z globalaudit
  1102. command line option.
  1103. * lexsup.c (elf_static_list_options): Add -z globalaudit.
  1104. * ld.texinfo: Document the support for the new command line
  1105. option.
  1106. * NEWS: Mention the new feature.
  1107. * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit
  1108. command line option.
  1109. * testsuite/ld-elf/globalaudit.rd: New file: Expected output from
  1110. readelf.
  1111. 2017-08-11 H.J. Lu <hongjiu.lu@intel.com>
  1112. PR ld/21884
  1113. * testsuite/ld-i386/i386.exp: Run pr21884.
  1114. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1115. * testsuite/ld-i386/pr21884.d: New file.
  1116. * testsuite/ld-i386/pr21884.t: Likewise.
  1117. * testsuite/ld-x86-64/pr21884.d: Likewise.
  1118. * testsuite/ld-x86-64/pr21884.t: Likewise.
  1119. 2017-08-10 Nick Clifton <nickc@redhat.com>
  1120. * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__,
  1121. __DTOR_LIST__ and ___DTOR_LIST__ in PROVIDE statements so that
  1122. they can be overrridden by crt input files.
  1123. * scripttempl/pe.sc: Likewise.
  1124. 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
  1125. * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
  1126. for linker first.
  1127. 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
  1128. * testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
  1129. for 64-bit ELF linker.
  1130. * testsuite/ld-x86-64/pr17618.d (#notarget): Removed.
  1131. * testsuite/ld-x86-64/x86-64.exp: Run pr17618 only for 64-bit
  1132. linker.
  1133. 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
  1134. PR ld/21924
  1135. * testsuite/ld-i386/i386.exp: Require GCC 5 or above for
  1136. "weakundef1 with PIE" test.
  1137. * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
  1138. "tlsdesc1" and "tlsdesc1 with PIE" tests.
  1139. 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
  1140. * configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
  1141. * configure: Regenerated.
  1142. 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
  1143. PR ld/21923
  1144. * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
  1145. for --disable-static.
  1146. * configure: Regenerated.
  1147. 2017-08-08 Romain Geissler <romain.geissler@gmail.com>
  1148. Alan Modra <amodra@gmail.com>
  1149. * configure.ac: Add --enable-default-hash-style option.
  1150. * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH.
  1151. Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH.
  1152. * configure: Regenerate.
  1153. * config.in: Regenerate.
  1154. 2017-08-08 Alan Modra <amodra@gmail.com>
  1155. * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
  1156. * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
  1157. * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
  1158. * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
  1159. * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
  1160. * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
  1161. * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
  1162. * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
  1163. Thumb lib by another lib" test's ld options.
  1164. * testsuite/ld-elf/note-3.l: Match .gnu.hash.
  1165. * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
  1166. 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
  1167. * testsuite/ld-elf/pr21903.s (start): Removed.
  1168. (_start): Likewise.
  1169. (__start): Likewise.
  1170. (main): Likewise.
  1171. (bar): New.
  1172. 2017-08-07 Alan Modra <amodra@gmail.com>
  1173. * testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
  1174. test's ld options.
  1175. * testsuite/ld-arm/arm-elf.exp: Likewise.
  1176. * testsuite/ld-elf/elf.exp: Likewise.
  1177. * testsuite/ld-elf/readelf.exp: Likewise.
  1178. * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
  1179. * testsuite/ld-i386/i386.exp: Likewise.
  1180. * testsuite/ld-ia64/ia64.exp: Likewise.
  1181. * testsuite/ld-m68k/m68k.exp: Likewise.
  1182. * testsuite/ld-metag/metag.exp: Likewise.
  1183. * testsuite/ld-powerpc/powerpc.exp: Likewise.
  1184. * testsuite/ld-s390/s390.exp: Likewise.
  1185. * testsuite/ld-sh/sh-vxworks.exp: Likewise.
  1186. * testsuite/ld-shared/shared.exp: Likewise.
  1187. * testsuite/ld-sparc/sparc.exp: Likewise.
  1188. * testsuite/ld-tic6x/tic6x.exp: Likewise.
  1189. * testsuite/ld-vax-elf/vax-elf.exp: Likewise.
  1190. * testsuite/ld-x86-64/mpx.exp: Likewise.
  1191. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1192. * testsuite/ld-xtensa/xtensa.exp: Likewise.
  1193. * testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
  1194. * testsuite/ld-elf/pr20828-v.ld: Likewise.
  1195. * testsuite/ld-elf/pr20828.ld: Likewise.
  1196. * testsuite/ld-elf/pr21233.ld: Likewise.
  1197. * testsuite/ld-elf/pr21384.ld: Likewise.
  1198. * testsuite/ld-elf/provide-hidden-1.ld: Likewise.
  1199. * testsuite/ld-elf/provide-hidden-2.ld: Likewise.
  1200. * testsuite/ld-elf/provide-hidden-s.ld: Likewise.
  1201. * testsuite/ld-scripts/cross1.t: Likewise.
  1202. * testsuite/ld-elf/stab.d: Adjust allowed section indices.
  1203. * testsuite/ld-i386/pie1.d: Don't match addresses.
  1204. * testsuite/ld-i386/plt-pic2.dd: Likewise.
  1205. * testsuite/ld-i386/pr19636-1d.d: Likewise.
  1206. * testsuite/ld-i386/pr19636-2c.d: Likewise.
  1207. * testsuite/ld-powerpc/elfv2so.d: Likewise.
  1208. * testsuite/ld-powerpc/tlsopt5.d: Likewise.
  1209. * testsuite/ld-powerpc/tlsopt5.wf: Likewise.
  1210. * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
  1211. * testsuite/ld-i386/pr19636-2b.d: Don't match _start.
  1212. * testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
  1213. and address match.
  1214. * testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
  1215. * testsuite/ld-powerpc/ambiguousv2.d: Likewise.
  1216. * testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
  1217. * testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
  1218. * testsuite/ld-aarch64/ifunc-1.d: Likewise.
  1219. * testsuite/ld-aarch64/ifunc-2.d: Likewise.
  1220. * testsuite/ld-aarch64/ifunc-21.d: Likewise.
  1221. * testsuite/ld-aarch64/relasz.d: Likewise.
  1222. * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
  1223. * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
  1224. * testsuite/ld-arc/tls_gd-01.d: Likewise.
  1225. * testsuite/ld-cris/libdso-10.d: Likewise.
  1226. * testsuite/ld-cris/libdso-2.d: Likewise.
  1227. * testsuite/ld-cris/pic-gc-72.d: Likewise.
  1228. * testsuite/ld-cris/pic-gc-73.d: Likewise.
  1229. * testsuite/ld-cris/tls-gd-1.d: Likewise.
  1230. * testsuite/ld-cris/tls-gd-1h.d: Likewise.
  1231. * testsuite/ld-cris/tls-gd-2.d: Likewise.
  1232. * testsuite/ld-cris/tls-gd-2h.d: Likewise.
  1233. * testsuite/ld-cris/tls-ie-10.d: Likewise.
  1234. * testsuite/ld-cris/tls-ie-11.d: Likewise.
  1235. * testsuite/ld-cris/tls-ie-8.d: Likewise.
  1236. * testsuite/ld-cris/tls-ie-9.d: Likewise.
  1237. * testsuite/ld-cris/tls-ld-4.d: Likewise.
  1238. * testsuite/ld-cris/tls-ld-5.d: Likewise.
  1239. * testsuite/ld-cris/tls-ld-6.d: Likewise.
  1240. * testsuite/ld-cris/tls-ld-7.d: Likewise.
  1241. * testsuite/ld-cris/tls-ldgd-14.d: Likewise.
  1242. * testsuite/ld-cris/tls-ldgd-15.d: Likewise.
  1243. * testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
  1244. * testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
  1245. * testsuite/ld-cris/tls-local-54.d: Likewise.
  1246. * testsuite/ld-cris/tls-local-60.d: Likewise.
  1247. * testsuite/ld-cris/tls-local-61.d: Likewise.
  1248. * testsuite/ld-cris/weakhiddso.d: Likewise.
  1249. * testsuite/ld-elf/linkinfo1a.d: Likewise.
  1250. * testsuite/ld-elf/linkinfo1b.d: Likewise.
  1251. * testsuite/ld-elf/pr19617a.d: Likewise.
  1252. * testsuite/ld-elfvsb/hidden2.d: Likewise.
  1253. * testsuite/ld-frv/fdpic-pie-6.d: Likewise.
  1254. * testsuite/ld-frv/fdpic-shared-2.d: Likewise.
  1255. * testsuite/ld-frv/fdpic-shared-5.d: Likewise.
  1256. * testsuite/ld-frv/fdpic-shared-6.d: Likewise.
  1257. * testsuite/ld-frv/fdpic-shared-8.d: Likewise.
  1258. * testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
  1259. * testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
  1260. * testsuite/ld-frv/tls-dynamic-2.d: Likewise.
  1261. * testsuite/ld-i386/ibt-plt-1.d: Likewise.
  1262. * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
  1263. * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
  1264. * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
  1265. * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
  1266. * testsuite/ld-i386/pr20830.d: Likewise.
  1267. * testsuite/ld-ia64/merge1.d: Likewise.
  1268. * testsuite/ld-ia64/merge2.d: Likewise.
  1269. * testsuite/ld-ia64/merge3.d: Likewise.
  1270. * testsuite/ld-ia64/merge4.d: Likewise.
  1271. * testsuite/ld-ia64/merge5.d: Likewise.
  1272. * testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
  1273. * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
  1274. * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
  1275. * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
  1276. * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
  1277. * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
  1278. * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
  1279. * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
  1280. * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
  1281. * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
  1282. * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
  1283. * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
  1284. * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
  1285. * testsuite/ld-m68k/got-1.d: Likewise.
  1286. * testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
  1287. * testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
  1288. * testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
  1289. * testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
  1290. * testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
  1291. * testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
  1292. * testsuite/ld-m68k/got-negative-15-er.d: Likewise.
  1293. * testsuite/ld-m68k/got-single-12-ok.d: Likewise.
  1294. * testsuite/ld-m68k/got-single-13-er.d: Likewise.
  1295. * testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
  1296. * testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
  1297. * testsuite/ld-m68k/tls-gd-1.d: Likewise.
  1298. * testsuite/ld-m68k/tls-gd-2.d: Likewise.
  1299. * testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
  1300. * testsuite/ld-m68k/tls-ie-1.d: Likewise.
  1301. * testsuite/ld-m68k/tls-ld-1.d: Likewise.
  1302. * testsuite/ld-m68k/tls-ld-2.d: Likewise.
  1303. * testsuite/ld-sh/shared-2.d: Likewise.
  1304. * testsuite/ld-sh/tlsbin-2.d: Likewise.
  1305. * testsuite/ld-sh/tlspic-2.d: Likewise.
  1306. * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
  1307. * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
  1308. * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
  1309. * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
  1310. * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
  1311. * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
  1312. * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
  1313. * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
  1314. * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
  1315. * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
  1316. * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
  1317. * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
  1318. * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
  1319. * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
  1320. * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
  1321. * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
  1322. * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
  1323. * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
  1324. * testsuite/ld-x86-64/ilp32-4.d: Likewise.
  1325. * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
  1326. * testsuite/ld-x86-64/load1c.d: Likewise.
  1327. * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
  1328. * testsuite/ld-x86-64/load1d.d: Likewise.
  1329. * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
  1330. * testsuite/ld-x86-64/pie3.d: Likewise.
  1331. * testsuite/ld-x86-64/pr14207.d: Likewise.
  1332. * testsuite/ld-x86-64/pr19162.d: Likewise.
  1333. * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
  1334. * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
  1335. * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
  1336. * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
  1337. * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
  1338. * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
  1339. * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
  1340. * testsuite/ld-x86-64/pr20830a.d: Likewise.
  1341. * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
  1342. * testsuite/ld-x86-64/pr20830b.d: Likewise.
  1343. * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
  1344. * testsuite/ld-x86-64/pr21038a.d: Likewise.
  1345. * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
  1346. * testsuite/ld-x86-64/pr21038b.d: Likewise.
  1347. * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
  1348. * testsuite/ld-x86-64/pr21038c.d: Likewise.
  1349. 2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
  1350. PR ld/21903:
  1351. * ld.h (command_line): Remove inhibit_common_definition.
  1352. * ldgram.y: Replace command_line.inhibit_common_definition with
  1353. link_info.inhibit_common_definition.
  1354. * ldlang.c (lang_common): Likewise.
  1355. * lexsup.c (parse_args): Likewise.
  1356. * ldmain.c (main): Only allow --no-define-common with -shared.
  1357. * testsuite/ld-elf/pr21903.s: New file.
  1358. * testsuite/ld-elf/pr21903a.d: Likewise.
  1359. * testsuite/ld-elf/pr21903b.d: Likewise.
  1360. * testsuite/ld-elf/pr21903c.d: Likewise.
  1361. * testsuite/ld-elf/pr21903d.d: Likewise.
  1362. * testsuite/ld-elf/pr21903e.d: Likewise.
  1363. 2017-08-05 Alan Modra <amodra@gmail.com>
  1364. * testsuite/ld-unique/pr21529.d: Don't xfail hppa.
  1365. 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
  1366. PR ld/21904
  1367. * testsuite/ld-elf/pr21904.d: New file.
  1368. * testsuite/ld-elf/pr21904.s: Likewise.
  1369. 2017-08-03 Nick Clifton <nickc@redhat.com>
  1370. PR ld/21884
  1371. * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
  1372. SCORE to list of targets not supporting file format changes during
  1373. linking.
  1374. * testsuite/ld-unique/pr21529.d: Likewise.
  1375. * emultempl/avrelf.em (_before_allocation): Skip for non-ELF
  1376. output formats.
  1377. (avr_elf_create_output_section_statements): Fail if the output
  1378. format is not ELF.
  1379. (avr_finish): Do not access the ELF header in non-ELF format
  1380. output bfds.
  1381. * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
  1382. output formats.
  1383. (m68hc11elf_create_output_section_statements): Fail if the putput
  1384. format is not ELF.
  1385. (m68hc11elf_after_allocation): Skip for non-ELF output formats.
  1386. 2017-08-03 Alan Modra <amodra@gmail.com>
  1387. PR ld/21884
  1388. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
  1389. last change. Rename iself to elfinput. Expand comments. Condition
  1390. ELF checks on having both input and output ELF files. Extract..
  1391. (elf_orphan_compatible): ..this new function.
  1392. 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
  1393. PR ld/21884
  1394. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check
  1395. ELF section header only for ELF output.
  1396. * testsuite/ld-elf/pr21884.d: New test.
  1397. * testsuite/ld-elf/pr21884.t: Likewise.
  1398. * testsuite/ld-elf/pr21884a.s: Likewise.
  1399. * testsuite/ld-elf/pr21884b.s: Likewise.
  1400. 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
  1401. * emultempl/elf32.em (_place_orphan): Revert the last change.
  1402. 2017-08-02 Max Filippov <jcmvbkbc@gmail.com>
  1403. * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
  1404. Only check for by_name sorting.
  1405. 2017-08-02 Nick Clifton <nickc@redhat.com>
  1406. PR 21884
  1407. * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when
  1408. looking for sections to merge.
  1409. 2017-07-31 Alan Modra <amodra@gmail.com>
  1410. * ld.texinfo (plt-localentry): Revise.
  1411. 2017-07-29 Alan Modra <amodra@gmail.com>
  1412. * ld.texinfo (plt-localentry): Document.
  1413. 2017-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1414. * ldgram.y (ldgram_had_keep): Make static.
  1415. (ldgram_vers_current_lang): Likewise.
  1416. (filename_spec): New rule.
  1417. (input_section_spec_no_keep): Use filename_spec.
  1418. (wildcard_maybe_exclude): New rule.
  1419. (wildcard_spec): Rename to...
  1420. (section_name_spec): ...this.
  1421. (section_NAME_list): Rename to...
  1422. (section_name_list): ...this.
  1423. (section_name_spec): Simplifiy and use wildcard_maybe_exclude.
  1424. * ldlang.c (placed_commons): Delete.
  1425. (lang_add_wild): No longer set placed_commons.
  1426. (print_wild_statement): Use full names for SORT specifiers.
  1427. * testsuite/ld-scripts/align.exp: Run new tests.
  1428. * testsuite/ld-scripts/align3.d: New file.
  1429. * testsuite/ld-scripts/align3.t: New file.
  1430. * testsuite/ld-scripts/align4.d: New file.
  1431. * testsuite/ld-scripts/align4.t: New file.
  1432. * testsuite/ld-scripts/align5.d: New file.
  1433. * testsuite/ld-scripts/align5.t: New file.
  1434. * testsuite/ld-scripts/exclude-file-5.d: New file.
  1435. * testsuite/ld-scripts/exclude-file-5.map: New file.
  1436. * testsuite/ld-scripts/exclude-file-5.t: New file.
  1437. * testsuite/ld-scripts/exclude-file-6.d: New file.
  1438. * testsuite/ld-scripts/exclude-file-6.map: New file.
  1439. * testsuite/ld-scripts/exclude-file-6.t: New file.
  1440. * NEWS: Mention the changes.
  1441. 2017-07-27 Georg-Johann Lay <gjl@gcc.gnu.org>
  1442. PR ld/21849
  1443. * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
  1444. former at a higher address.
  1445. 2017-07-25 Alan Modra <amodra@gmail.com>
  1446. * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
  1447. * testsuite/ld-powerpc/tlsopt5.d: Update.
  1448. * testsuite/ld-powerpc/tlsopt5.wf: New file.
  1449. * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test.
  1450. 2017-07-24 Claudiu Zissulescu <claziss@synopsys.com>
  1451. * testsuite/ld-arc/jli-overflow.d: Force testing for little
  1452. endian.
  1453. * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
  1454. systems.
  1455. * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
  1456. 2017-07-19 Maciej W. Rozycki <macro@imgtec.com>
  1457. * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add
  1458. `notarget' entries. Update comments.
  1459. * testsuite/ld-scripts/fill16.d: New test.
  1460. * testsuite/ld-scripts/fill16_0.s: New test source.
  1461. * testsuite/ld-scripts/fill16_1.s: New test source.
  1462. * testsuite/ld-scripts/fill16_2.s: New test source.
  1463. * testsuite/ld-scripts/data.exp: Run the new test.
  1464. 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
  1465. John Eric Martin <John.Martin@emmicro-us.com>
  1466. * emulparams/arcelf.sh (JLI_START_TABLE): Define.
  1467. * scripttempl/elfarc.sc: Handle jlitab section.
  1468. * scripttempl/elfarcv2.sc: Likewise.
  1469. * testsuite/ld-arc/arc.exp: Add JLI test.
  1470. * testsuite/ld-arc/jli-script.ld: New file.
  1471. * testsuite/ld-arc/jli-simple.dd: Likewise.
  1472. * testsuite/ld-arc/jli-simple.rd: Likewise.
  1473. * testsuite/ld-arc/jli-simple.s: Likewise.
  1474. * testsuite/ld-arc/jli-overflow.s: Likewise.
  1475. * testsuite/ld-arc/jli-overflow.d: Likewise.
  1476. * testsuite/ld-arc/jli-overflow.err: Likewise.
  1477. 2017-07-19 Tristan Gingold <gingold@adacore.com>
  1478. * ldmain.c (main): Remove display of data size.
  1479. 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
  1480. PR ld/16656
  1481. * testsuite/ld-elf/binutils.exp (binutils_test): Make the
  1482. expectation for `.got' in GNU_RELRO segment target-specific.
  1483. Handle `.got.plt' separately.
  1484. 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
  1485. PR ld/16656
  1486. * testsuite/ld-elf/binutils.exp (binutils_test): Make the
  1487. expectation for `.dynamic' in GNU_RELRO segment target-specific.
  1488. 2017-07-18 Nick Clifton <nickc@redhat.com>
  1489. PR 21775
  1490. * ld.texinfo: Fix spelling typos.
  1491. * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
  1492. 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
  1493. * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
  1494. * testsuite/ld-i386/pie1-nacl.d: New file.
  1495. * testsuite/ld-i386/pie1.d: Likewise.
  1496. * testsuite/ld-i386/pie1.s: Likewise.
  1497. 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
  1498. PR ld/21782
  1499. * testsuite/ld-x86-64/pie3-nacl.d: New file.
  1500. * testsuite/ld-x86-64/pie3.d: Likewise.
  1501. * testsuite/ld-x86-64/pie3.s: Likewise.
  1502. * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.
  1503. 2017-07-14 Alan Modra <amodra@gmail.com>
  1504. * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests.
  1505. * testsuite/ld-powerpc/tlsopt5.d: Adjust.
  1506. * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer.
  1507. * testsuite/ld-powerpc/tlsopt2_32.s: Likewise.
  1508. * testsuite/ld-powerpc/tlsopt3_32.s: Likewise.
  1509. * testsuite/ld-powerpc/tlsopt4_32.s: Likewise.
  1510. * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite.
  1511. * testsuite/ld-powerpc/tlsopt1_32.d: Adjust.
  1512. * testsuite/ld-powerpc/tlsopt2_32.d: Adjust.
  1513. * testsuite/ld-powerpc/tlsopt3_32.d: Adjust.
  1514. * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
  1515. 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
  1516. * testsuite/ld-unique/pr21529.ld: New test linker script.
  1517. * testsuite/ld-unique/pr21529.d: Use it.
  1518. 2017-07-12 Alan Modra <amodra@gmail.com>
  1519. * po/bg.po: Update from translationproject.org/latest/ld/.
  1520. * po/da.po: Likewise.
  1521. * po/es.po: Likewise.
  1522. * po/fi.po: Likewise.
  1523. * po/fr.po: Likewise.
  1524. * po/id.po: Likewise.
  1525. * po/it.po: Likewise.
  1526. * po/ja.po: Likewise.
  1527. * po/tr.po: Likewise.
  1528. * po/uk.po: Likewise.
  1529. * po/vi.po: Likewise.
  1530. * po/zh_CN.po: Likewise.
  1531. * po/zh_TW.po: Likewise.
  1532. * po/de.po: New file from translationproject.org.
  1533. * po/ru.po: Likewise.
  1534. * configure.ac (ALL_LINGUAS): Add de, ru. Sort.
  1535. * configure: Regenerate.
  1536. 2017-07-12 Alan Modra <amodra@gmail.com>
  1537. * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*.
  1538. * testsuite/ld-scripts/assign-loc.d: Likewise.
  1539. * testsuite/ld-scripts/defined3.d: Likewise.
  1540. * testsuite/ld-scripts/defined4.d: Likewise.
  1541. * testsuite/ld-scripts/defined5.d: Likewise.
  1542. * testsuite/ld-scripts/expr2.d: Likewise.
  1543. * testsuite/ld-scripts/provide.exp: Likewise.
  1544. * testsuite/ld-scripts/sane1.d: Likewise.
  1545. * testsuite/ld-scripts/size.exp: Likewise.
  1546. * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*.
  1547. 2017-07-12 Alan Modra <amodra@gmail.com>
  1548. * testsuite/ld-arc/nps-1b.err: Update.
  1549. * testsuite/ld-x86-64/ilp32-11.d: Update.
  1550. 2017-07-11 H.J. Lu <hongjiu.lu@intel.com>
  1551. * testsuite/ld-selective/selective.exp: Support single digit
  1552. GCC version.
  1553. 2017-07-11 Jiong Wang <jiong.wang@arm.com>
  1554. * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
  1555. filter out remaining lines.
  1556. 2017-07-07 Maciej W. Rozycki <macro@imgtec.com>
  1557. * emultempl/mipself.em (mips_before_allocation): Avoid ELF
  1558. processing if not MIPS ELF.
  1559. * testsuite/ld-mips-elf/binary.d: New test.
  1560. * testsuite/ld-mips-elf/binary.ld: New test linker script.
  1561. * testsuite/ld-mips-elf/binary.s: New test source.
  1562. * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
  1563. 2017-07-07 Alan Modra <amodra@gmail.com>
  1564. * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
  1565. * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
  1566. * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
  1567. 2017-07-07 Alan Modra <amodra@gmail.com>
  1568. * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
  1569. 2017-07-04 Tristan Gingold <gingold@adacore.com>
  1570. * configure: Regenerate.
  1571. 2017-07-04 Tristan Gingold <gingold@adacore.com>
  1572. * NEWS: Add marker for 2.29.
  1573. 2017-07-03 Tristan Gingold <gingold@adacore.com>
  1574. * po/ld.pot: Regenerate.
  1575. 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
  1576. * testsuite/ld-mips-elf/relax-offset.dd: New test.
  1577. * testsuite/ld-mips-elf/relax-offset.gd: New test.
  1578. * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
  1579. * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
  1580. * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
  1581. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  1582. (prune_warnings): New temporary procedure.
  1583. 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
  1584. * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
  1585. tests.
  1586. 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
  1587. PR ld/13402
  1588. * testsuite/ld-avr/pr13402.d: New test.
  1589. * testsuite/ld-avr/pr13402.s: New test.
  1590. 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
  1591. * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
  1592. Add an `args' final argument and examination code for `readelf
  1593. -A' output. Update procedure description accordingly.
  1594. 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
  1595. * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
  1596. Use `remote_exec' to call `readelf'. Log the command issued.
  1597. 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
  1598. * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
  1599. Use `readelf -h' rather than `readelf --headers'.
  1600. 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
  1601. * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
  1602. * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
  1603. 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
  1604. * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
  1605. the symbols examined.
  1606. * testsuite/ld-elf/sizeofc.d: Likewise.
  1607. * testsuite/ld-elf/startofa.d: Likewise.
  1608. * testsuite/ld-elf/startofc.d: Likewise.
  1609. 2017-06-26 Alan Modra <amodra@gmail.com>
  1610. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
  1611. --just-syms bfds when looking for a place to attach .note.gnu.build-id
  1612. and .eh_frame_hdr sections. Delete dead code.
  1613. 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
  1614. * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
  1615. (EABI attribute merging 12): Likewise.
  1616. * testsuite/ld-arm/attr-merge-11a.s: New file.
  1617. * testsuite/ld-arm/attr-merge-11b.s: New file.
  1618. * testsuite/ld-arm/attr-merge-11.attr: New file.
  1619. * testsuite/ld-arm/attr-merge-12a.s: New file.
  1620. * testsuite/ld-arm/attr-merge-12b.s: New file.
  1621. * testsuite/ld-arm/attr-merge-12.attr: New file.
  1622. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1623. * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
  1624. * testsuite/ld-i386/weakundef1.c: New file.
  1625. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1626. PR ld/21090
  1627. * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
  1628. $NOPIE_CFLAGS if non-PIE is required.
  1629. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1630. PR ld/21090
  1631. * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
  1632. $NOPIE_LDFLAGS to "Run pr19031".
  1633. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1634. PR ld/21090
  1635. * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
  1636. $NOPIE_CFLAGS.
  1637. * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
  1638. $NOPIE_LDFLAGS if non-PIE is required.
  1639. * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
  1640. (NOPIE_LDFLAGS): Likewise.
  1641. Pass $NOPIE_LDFLAGS if non-PIE is required.
  1642. * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
  1643. $NOPIE_CFLAGS.
  1644. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1645. * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
  1646. * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
  1647. (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
  1648. * ld.texinfo: Document -z shstk.
  1649. * testsuite/ld-i386/i386.exp: Run SHSTK tests.
  1650. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1651. * testsuite/ld-i386/property-x86-shstk.s: New file.
  1652. * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
  1653. * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
  1654. * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
  1655. * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
  1656. * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
  1657. * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
  1658. * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
  1659. * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
  1660. * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
  1661. * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
  1662. * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
  1663. * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
  1664. * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
  1665. * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
  1666. * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
  1667. * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
  1668. * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
  1669. * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
  1670. * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
  1671. * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
  1672. * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
  1673. * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
  1674. 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
  1675. * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
  1676. * Makefile.in: Regenerated.
  1677. * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
  1678. and -z ibt.
  1679. * emulparams/cet.sh: New file.
  1680. * testsuite/ld-i386/ibt-plt-1.d: Likewise.
  1681. * testsuite/ld-i386/ibt-plt-1.s: Likewise.
  1682. * testsuite/ld-i386/ibt-plt-2.s: Likewise.
  1683. * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
  1684. * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
  1685. * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
  1686. * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
  1687. * testsuite/ld-i386/ibt-plt-3.s: Likewise.
  1688. * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
  1689. * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
  1690. * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
  1691. * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
  1692. * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
  1693. * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
  1694. * testsuite/ld-i386/property-x86-empty.s: Likewise.
  1695. * testsuite/ld-i386/property-x86-ibt.s: Likewise.
  1696. * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
  1697. * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
  1698. * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
  1699. * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
  1700. * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
  1701. * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
  1702. * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
  1703. * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
  1704. * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
  1705. * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
  1706. * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
  1707. * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
  1708. * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
  1709. * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
  1710. * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
  1711. * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
  1712. * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
  1713. * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
  1714. * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
  1715. * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
  1716. * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
  1717. * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
  1718. * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
  1719. * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
  1720. * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
  1721. * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
  1722. * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
  1723. * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
  1724. * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
  1725. * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
  1726. * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
  1727. * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
  1728. * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
  1729. * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
  1730. * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
  1731. * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
  1732. * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
  1733. * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
  1734. * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
  1735. * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
  1736. * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
  1737. * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
  1738. * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
  1739. * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
  1740. * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
  1741. * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
  1742. * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
  1743. * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
  1744. (TINY_READONLY_SECTION): Add .plt.sec.
  1745. * emulparams/elf_i386.sh: Likewise.
  1746. * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
  1747. * ld.texinfo: Document -z ibtplt and -z ibt.
  1748. * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
  1749. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1750. * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
  1751. 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
  1752. PR ld/21090
  1753. * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
  1754. $NOPIE_LDFLAGS if non-PIE is required.
  1755. 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
  1756. PR ld/21090
  1757. * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
  1758. to CC.
  1759. 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
  1760. PR ld/21090
  1761. * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
  1762. size-4b, size-5a, size-5b, size-6 and size-8 tests.
  1763. * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
  1764. (NOPIE_LDFLAGS): Likewise.
  1765. (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
  1766. (CXX): Likewise.
  1767. * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
  1768. (NOPIE_LDFLAGS): Likewise.
  1769. Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
  1770. "No PLT (dynamic 1c)" and "Run pr20253-2f".
  1771. * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
  1772. "Build gotpcrel1" and "Run pr19031".
  1773. 2017-06-21 Alan Modra <amodra@gmail.com>
  1774. * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
  1775. * testsuite/ld-powerpc/tocsave1.s,
  1776. * testsuite/ld-powerpc/tocsave1a.d,
  1777. * testsuite/ld-powerpc/tocsave1s.d,
  1778. * testsuite/ld-powerpc/tocsave2.s,
  1779. * testsuite/ld-powerpc/tocsave2a.d,
  1780. * testsuite/ld-powerpc/tocsave2s.d,
  1781. * testsuite/ld-powerpc/tocsavelib.s: New files.
  1782. 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
  1783. * Makefile.in: Add s390.em as build dependency.
  1784. * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
  1785. * emultempl/s390.em: New file.
  1786. * gen-doc.texi: Add documentation for --s390-pgste option.
  1787. * ld.texinfo: Likewise.
  1788. 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1789. PR ld/21626
  1790. * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
  1791. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  1792. 2017-06-18 Alan Modra <amodra@gmail.com>
  1793. * testsuite/lib/ld-lib.exp (is_underscore_target): New.
  1794. * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
  1795. * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
  1796. reference sym with prefix.
  1797. * testsuite/ld-elf/pr21562b.s: Likewise.
  1798. * testsuite/ld-elf/sizeof.s: Likewise.
  1799. * testsuite/ld-elf/startof.s: Likewise.
  1800. * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
  1801. * testsuite/ld-elf/pr21562a.d: Remove underscore target from
  1802. xfails, and match prefixed symbol.
  1803. * testsuite/ld-elf/pr21562b.d: Likewise.
  1804. * testsuite/ld-elf/pr21562c.d: Likewise.
  1805. * testsuite/ld-elf/pr21562d.d: Likewise.
  1806. * testsuite/ld-elf/pr21562e.d: Likewise.
  1807. * testsuite/ld-elf/pr21562f.d: Likewise.
  1808. * testsuite/ld-elf/pr21562g.d: Likewise.
  1809. * testsuite/ld-elf/pr21562h.d: Likewise.
  1810. * testsuite/ld-elf/pr21562i.d: Likewise.
  1811. * testsuite/ld-elf/pr21562j.d: Likewise.
  1812. * testsuite/ld-elf/pr21562k.d: Likewise.
  1813. * testsuite/ld-elf/pr21562l.d: Likewise.
  1814. * testsuite/ld-elf/pr21562m.d: Likewise.
  1815. * testsuite/ld-elf/pr21562n.d: Likewise.
  1816. * testsuite/ld-elf/sizeofa.d: Likewise.
  1817. * testsuite/ld-elf/sizeofb.d: Likewise.
  1818. * testsuite/ld-elf/sizeofc.d: Likewise.
  1819. * testsuite/ld-elf/startofa.d: Likewise.
  1820. * testsuite/ld-elf/startofb.d: Likewise.
  1821. * testsuite/ld-elf/startofc.d: Likewise.
  1822. 2017-06-16 Alan Modra <amodra@gmail.com>
  1823. PR ld/20022
  1824. PR ld/21557
  1825. PR ld/21562
  1826. PR ld/21571
  1827. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
  1828. __start/__stop syms here.
  1829. * ldlang.c (lang_set_startof): Delete.
  1830. (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
  1831. (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
  1832. undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
  1833. set_start_stop, lang_finalize_start_stop): New functions.
  1834. (lang_process): Call _start_stop functions.
  1835. * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
  1836. Correct typos and list of xfail targets.
  1837. * testsuite/ld-elf/pr21562b.d: Likewise.
  1838. * testsuite/ld-elf/pr21562c.d: Likewise.
  1839. * testsuite/ld-elf/pr21562d.d: Likewise.
  1840. * testsuite/ld-elf/pr21562e.d: Likewise.
  1841. * testsuite/ld-elf/pr21562f.d: Likewise.
  1842. * testsuite/ld-elf/pr21562g.d: Likewise.
  1843. * testsuite/ld-elf/pr21562h.d: Likewise.
  1844. * testsuite/ld-elf/pr21562i.d: Likewise.
  1845. * testsuite/ld-elf/pr21562j.d: Likewise.
  1846. * testsuite/ld-elf/pr21562k.d: Likewise.
  1847. * testsuite/ld-elf/pr21562l.d: Likewise.
  1848. * testsuite/ld-elf/pr21562m.d: Likewise.
  1849. * testsuite/ld-elf/pr21562n.d: Likewise.
  1850. * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
  1851. * testsuite/ld-elf/sizeofb.d: Likewise.
  1852. * testsuite/ld-elf/startofa.d: Likewise.
  1853. * testsuite/ld-elf/startofb.d: Likewise.
  1854. 2017-06-16 Jiong Wang <jiong.wang@arm.com>
  1855. * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
  1856. * testsuite/ld-aarch64/pcrel.s: Add new testcases.
  1857. * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
  1858. warnings.
  1859. * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
  1860. * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
  1861. Update expected warnings.
  1862. 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
  1863. * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
  1864. instead of "-z stacksize=SIZE".
  1865. 2017-06-15 Jiong Wang <jiong.wang@arm.com>
  1866. * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
  1867. * testsuite/ld-aarch64/copy-reloc-2.d: New test.
  1868. * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
  1869. * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
  1870. * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
  1871. * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
  1872. 2017-06-14 Nick Clifton <nickc@redhat.com>
  1873. PR binutils/21580
  1874. * testsuite/ld-nds32/diff.d: Adjust expected output.
  1875. 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1876. PR ld/20022
  1877. * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
  1878. relocations in .text section.
  1879. 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1880. * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
  1881. in in symbol name or without --gc-sections.
  1882. * testsuite/ld-elf/pr21562b.d: Likewise.
  1883. * testsuite/ld-elf/pr21562c.d: Likewise.
  1884. * testsuite/ld-elf/pr21562d.d: Likewise.
  1885. * testsuite/ld-elf/pr21562i.d: Likewise.
  1886. * testsuite/ld-elf/pr21562j.d: Likewise.
  1887. * testsuite/ld-elf/pr21562k.d: Likewise.
  1888. * testsuite/ld-elf/pr21562l.d: Likewise.
  1889. * testsuite/ld-elf/pr21562m.d: Likewise.
  1890. * testsuite/ld-elf/pr21562n.d: Likewise.
  1891. * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
  1892. in symbol name.
  1893. * testsuite/ld-elf/pr21562f.d: Likewise.
  1894. * testsuite/ld-elf/pr21562g.d: Likewise.
  1895. * testsuite/ld-elf/pr21562h.d: Likewise.
  1896. 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1897. * testsuite/ld-gc/pr20022a.s: Add size to bar.
  1898. 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1899. * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
  1900. in symbol name.
  1901. * testsuite/ld-elf/sizeofb.d: Likewise.
  1902. * testsuite/ld-elf/startofa.d: Likewise.
  1903. * testsuite/ld-elf/startofb.d: Likewise.
  1904. 2017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
  1905. PR ld/21583
  1906. * scripttempl/avr.sc (.jumptables): Move down in text section.
  1907. (.hightext): New in text.
  1908. 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
  1909. * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
  1910. 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1911. * ldlang.c (lang_set_startof): Skip if config.build_constructors
  1912. is FALSE.
  1913. * testsuite/ld-elf/sizeofc.d: New file.
  1914. * testsuite/ld-elf/startofc.d: Likewise.
  1915. 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1916. * testsuite/ld-elf/sizeof.d: Renamed to ...
  1917. * testsuite/ld-elf/sizeofa.d: This. Updated.
  1918. * testsuite/ld-elf/startof.d: Renamed to ...
  1919. * testsuite/ld-elf/startofa.d: This. Updated.
  1920. * testsuite/ld-elf/sizeofb.d: New file.
  1921. * testsuite/ld-elf/startofb.d: Likewise.
  1922. 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1923. PR ld/20022
  1924. PR ld/21557
  1925. PR ld/21562
  1926. PR ld/21571
  1927. * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
  1928. * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
  1929. and __stop_SECNAME symbols to ...
  1930. (lang_set_startof): Here. Also define __start_SECNAME and
  1931. __stop_SECNAME for -Ur.
  1932. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
  1933. referenced __start_SECNAME and __stop_SECNAME symbols as hidden
  1934. and set start_stop for garbage collection.
  1935. * testsuite/ld-elf/pr21562a.d: New file.
  1936. * testsuite/ld-elf/pr21562a.s: Likewise.
  1937. * testsuite/ld-elf/pr21562a.t: Likewise.
  1938. * testsuite/ld-elf/pr21562b.d: Likewise.
  1939. * testsuite/ld-elf/pr21562b.s: Likewise.
  1940. * testsuite/ld-elf/pr21562b.t: Likewise.
  1941. * testsuite/ld-elf/pr21562c.d: Likewise.
  1942. * testsuite/ld-elf/pr21562c.t: Likewise.
  1943. * testsuite/ld-elf/pr21562d.d: Likewise.
  1944. * testsuite/ld-elf/pr21562d.t: Likewise.
  1945. * testsuite/ld-elf/pr21562e.d: Likewise.
  1946. * testsuite/ld-elf/pr21562f.d: Likewise.
  1947. * testsuite/ld-elf/pr21562g.d: Likewise.
  1948. * testsuite/ld-elf/pr21562h.d: Likewise.
  1949. * testsuite/ld-elf/pr21562i.d: Likewise.
  1950. * testsuite/ld-elf/pr21562j.d: Likewise.
  1951. * testsuite/ld-elf/pr21562k.d: Likewise.
  1952. * testsuite/ld-elf/pr21562l.d: Likewise.
  1953. * testsuite/ld-elf/pr21562m.d: Likewise.
  1954. * testsuite/ld-elf/pr21562n.d: Likewise.
  1955. * testsuite/ld-gc/pr20022.d: Likewise.
  1956. * testsuite/ld-gc/pr20022a.s: Likewise.
  1957. * testsuite/ld-gc/pr20022b.s: Likewise.
  1958. * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
  1959. * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
  1960. symbol.
  1961. * testsuite/ld-gc/start.d: Likewise.
  1962. * testsuite/ld-x86-64/lea1a.d: Updated.
  1963. * testsuite/ld-x86-64/lea1b.d: Updated.
  1964. * testsuite/ld-x86-64/lea1d.d: Updated.
  1965. * testsuite/ld-x86-64/lea1e.d: Likewise.
  1966. 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1967. * testsuite/ld-elf/sizeof.d: New file.
  1968. * testsuite/ld-elf/sizeof.s: Likewise.
  1969. * testsuite/ld-elf/startof.d: Likewise.
  1970. * testsuite/ld-elf/startof.s: Likewise.
  1971. 2017-06-13 Renlin Li <renlin.li@arm.com>
  1972. * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
  1973. option to rdynamic-1 and dynamic-1 tests.
  1974. 2017-06-09 H.J. Lu <hongjiu.lu@intel.com>
  1975. * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
  1976. * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
  1977. * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
  1978. * testsuite/ld-x86-64/property-x86-3.d: Also pass
  1979. -defsym __64_bit__=1 to asssembler.
  1980. * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
  1981. * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
  1982. * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
  1983. __64_bit__ isn't defined.
  1984. * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
  1985. * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
  1986. * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
  1987. property-x86-4a-x32 and property-x86-4b-x32.
  1988. 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
  1989. * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
  1990. 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
  1991. * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
  1992. "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
  1993. ifunc-1-local-x86.map.
  1994. * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
  1995. "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
  1996. * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
  1997. * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
  1998. 2017-06-07 Alan Modra <amodra@gmail.com>
  1999. * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
  2000. nds32, and score. Match any output.
  2001. 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
  2002. * ld.h (struct args_type): Fix typo in comment.
  2003. 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
  2004. * ld.h (struct args_type): Add force_group_allocation field.
  2005. * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
  2006. * ldlex.h: Likewise.
  2007. * ldlex.l: Likewise.
  2008. * lexsup.c: Likewise.
  2009. * ldlang.c (unique_section_p): Check resolve_section_groups flag
  2010. not the relaxable link flag.
  2011. (lang_add_section): Discard section groups when we're resolving
  2012. groups. Clear the SEC_LINK_ONCE flag if we're resolving section
  2013. groups.
  2014. * ldmain.c (main): Initialise resolve_section_groups flag in
  2015. link_info based on command line flags.
  2016. * testsuite/ld-elf/group11.d: New file.
  2017. * testsuite/ld-elf/group12.d: New file.
  2018. * testsuite/ld-elf/group12.ld: New file.
  2019. * NEWS: Mention new features.
  2020. * ld.texinfo (Options): Document --force-group-allocation.
  2021. (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
  2022. 2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
  2023. PR ld/21529
  2024. * testsuite/ld-unique/pr21529.d: New file.
  2025. * testsuite/ld-unique/pr21529.s: Likewise.
  2026. * testsuite/ld-unique/unique.exp: Run *.d.
  2027. 2017-06-05 Alan Modra <amodra@gmail.com>
  2028. * ldmain.c (main): Correct setting of link_indo.new_dtags.
  2029. * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
  2030. * testsuite/ld-elf/now-4.d: Likewise.
  2031. * testsuite/ld-elf/rpath-1.d: Likewise.
  2032. * testsuite/ld-elf/rpath-2.d: Likewise.
  2033. 2017-06-05 Slava Barinov <v.barinov@samsung.com>
  2034. * configure.ac: Add --enable-new-dtags option.
  2035. * ldmain.c (main): Set link_info.new_dtags to 1 if when
  2036. --enable-new-dtags is switched on.
  2037. * configure: Regenerate.
  2038. * config.in: Regenerate.
  2039. 2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
  2040. * emulparams/call_nop.sh: Remove -z prefix-nop.
  2041. * ld.texinfo: Likewise.
  2042. * testsuite/ld-i386/call3c.d: Check for linker error.
  2043. * testsuite/ld-x86-64/call1c.d: Likewise.
  2044. 2017-06-01 Alan Modra <amodra@gmail.com>
  2045. * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
  2046. (enum ppc64_opt): New, replacing OPTION_* defines. Add
  2047. OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
  2048. (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
  2049. * testsuite/ld-powerpc/elfv2so.d: Update.
  2050. * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
  2051. * testsuite/ld-powerpc/tlsopt5.d: Update.
  2052. 2017-05-31 Alan Modra <amodra@gmail.com>
  2053. * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
  2054. 2017-05-22 Jiong Wang <jiong.wang@arm.com>
  2055. * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
  2056. aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
  2057. aarch64-*-linux-gnu_ilp32.
  2058. 2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
  2059. * testsuite/ld-i386/i386.exp: Run property-x86-4a and
  2060. property-x86-4b.
  2061. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  2062. * testsuite/ld-i386/property-x86-4a.d: New file.
  2063. * testsuite/ld-i386/property-x86-4a.s: Likewise.
  2064. * testsuite/ld-i386/property-x86-4b.d: Likewise.
  2065. * testsuite/ld-i386/property-x86-4b.s: Likewise.
  2066. * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
  2067. * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
  2068. * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
  2069. * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
  2070. 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
  2071. PR ld/21472
  2072. * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
  2073. * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
  2074. Use RODATA_PM_OFFSET as default if not already defined.
  2075. (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
  2076. (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
  2077. __RODATA_PM_OFFSET__.
  2078. 2017-05-18 Nick Clifton <nickc@redhat.com>
  2079. PR ld/21251
  2080. * ldfile.c (ldfile_add_library_path): If the path starts with
  2081. $SYSROOT then use the sysroot as the real prefix.
  2082. * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
  2083. way as =.
  2084. * ldlex.l: Add $SYSROOT as allow prefix for a filename.
  2085. * ld.texinfo (-L): Document that $SYSROOT acts like = when
  2086. prefixing a library search path.
  2087. (INPUT): Likewise.
  2088. * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
  2089. tests.
  2090. 2017-05-18 Alan Modra <amodra@gmail.com>
  2091. * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
  2092. * emultempl/pe.em: Likewise.
  2093. * emultempl/pep.em: Likewise.
  2094. * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
  2095. Don't compare enum against TRUE.
  2096. 2017-05-18 Alan Modra <amodra@gmail.com>
  2097. PR ld/20882
  2098. * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
  2099. Allow for 16-bit address targets and match expected data fully.
  2100. * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
  2101. * testsuite/ld-gc/pr20882b.s: Likewise.
  2102. * testsuite/ld-gc/pr20882c.s: Likewise.
  2103. 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
  2104. PR ld/20882
  2105. * testsuite/ld-gc/gc.exp: Run pr20882.
  2106. * testsuite/ld-gc/pr20882.d: New file.
  2107. * testsuite/ld-gc/pr20882a.s: Likewise.
  2108. * testsuite/ld-gc/pr20882b.s: Likewise.
  2109. * testsuite/ld-gc/pr20882c.s: Likewise.
  2110. 2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
  2111. PR ld/21481
  2112. * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
  2113. if IFUNC is supported by run-time.
  2114. 2017-05-16 Alan Modra <amodra@gmail.com>
  2115. * plugin.c: Rename occurrences of non_ir_ref.
  2116. 2017-05-16 Alan Modra <amodra@gmail.com>
  2117. * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
  2118. (plugin_notice): Set non_ir_ref for references from regular
  2119. objects, non_ir_ref_dynamic for references from dynamic objects.
  2120. 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
  2121. * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
  2122. * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
  2123. * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
  2124. * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
  2125. * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
  2126. * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
  2127. * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
  2128. * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
  2129. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  2130. 2017-05-15 Nick Clifton <nickc@redhat.com>
  2131. PR ld/21459
  2132. * scripttempl/pe.sc: Add .debug_gdb_scripts section.
  2133. * scripttempl/pep.sc: Likewise.
  2134. 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
  2135. * testsuite/ld-i386/i386.exp: Run property-x86-3.
  2136. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  2137. * testsuite/ld-i386/property-x86-3.d: New file.
  2138. * testsuite/ld-i386/property-x86-3.s: Likewise.
  2139. * testsuite/ld-x86-64/property-x86-3.d: Likewise.
  2140. * testsuite/ld-x86-64/property-x86-3.s: Likewise.
  2141. 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
  2142. * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
  2143. .plt.bnd with .plt.sec.
  2144. * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
  2145. * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
  2146. * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
  2147. * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
  2148. * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
  2149. * testsuite/ld-x86-64/mpx3.dd: Likewise.
  2150. * testsuite/ld-x86-64/mpx3n.dd: Likewise.
  2151. * testsuite/ld-x86-64/mpx4.dd: Likewise.
  2152. * testsuite/ld-x86-64/mpx4n.dd: Likewise.
  2153. * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
  2154. * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
  2155. * testsuite/ld-x86-64/pr21038b.d: Likewise.
  2156. * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
  2157. * testsuite/ld-x86-64/pr21038c.d: Likewise.
  2158. 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
  2159. * testsuite/ld-i386/plt-pic2.dd: Updated.
  2160. * testsuite/ld-i386/plt2.dd: Likewise.
  2161. * testsuite/ld-i386/plt2.rd: Likewise.
  2162. * testsuite/ld-i386/pr17689now.rd: Likewise.
  2163. * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
  2164. * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
  2165. * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
  2166. * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
  2167. * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
  2168. * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
  2169. * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
  2170. * testsuite/ld-x86-64/plt2.dd: Likewise.
  2171. * testsuite/ld-x86-64/plt2.rd: Likewise.
  2172. * testsuite/ld-x86-64/pr17689now.rd: Likewise.
  2173. * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
  2174. * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
  2175. 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
  2176. * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
  2177. to yes.
  2178. * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
  2179. Likewise.
  2180. * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
  2181. 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
  2182. PR ld/21481
  2183. * testsuite/ld-x86-64/pr21481a.c: New file.
  2184. * testsuite/ld-x86-64/pr21481b.S: Likewise.
  2185. * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
  2186. 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
  2187. * testsuite/ld-arc/attr-merge-0.d: New file.
  2188. * testsuite/ld-arc/attr-merge-0.s: Likewise.
  2189. * testsuite/ld-arc/attr-merge-0e.s: Likewise.
  2190. * testsuite/ld-arc/attr-merge-1.d: Likewise.
  2191. * testsuite/ld-arc/attr-merge-1.s: Likewise.
  2192. * testsuite/ld-arc/attr-merge-1e.s: Likewise.
  2193. * testsuite/ld-arc/attr-merge-2.d: Likewise.
  2194. * testsuite/ld-arc/attr-merge-2.s: Likewise.
  2195. * testsuite/ld-arc/attr-merge-3.d: Likewise.
  2196. * testsuite/ld-arc/attr-merge-3.s: Likewise.
  2197. * testsuite/ld-arc/attr-merge-3e.s: Likewise.
  2198. * testsuite/ld-arc/attr-merge-4.s: Likewise.
  2199. * testsuite/ld-arc/attr-merge-5.d: Likewise.
  2200. * testsuite/ld-arc/attr-merge-5a.s: Likewise.
  2201. * testsuite/ld-arc/attr-merge-5b.s: Likewise.
  2202. * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
  2203. * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
  2204. * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
  2205. * testsuite/ld-arc/got-01.d: Update test.
  2206. * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
  2207. * testsuite/ld-arc/attr-quarkse.s: Likewise.
  2208. * testsuite/ld-arc/attr-quarkse2.s: Likewise.
  2209. 2017-05-09 Awson <kyrab@mail.ru>
  2210. PR ld/21471
  2211. * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
  2212. 2017-05-09 Benjamin Peterson <bp@benjamin.pe>
  2213. * ld.texinfo (orphan sections): Grammar fix.
  2214. 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
  2215. * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
  2216. * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
  2217. * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
  2218. * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
  2219. * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
  2220. * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
  2221. * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
  2222. * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
  2223. * testsuite/ld-x86-64/mpx3n.dd: Likewise.
  2224. * testsuite/ld-x86-64/mpx4n.dd: Likewise.
  2225. * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
  2226. * testsuite/ld-x86-64/plt2.dd: Likewise.
  2227. * testsuite/ld-x86-64/plt2.rd: Likewise.
  2228. * testsuite/ld-x86-64/plt2.s: Likewise.
  2229. * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
  2230. * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
  2231. * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
  2232. * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
  2233. * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
  2234. * testsuite/ld-x86-64/load1b-nacl.d: Updated.
  2235. * testsuite/ld-x86-64/load1b.d: Likewise.
  2236. * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
  2237. * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
  2238. * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
  2239. with func@plt.
  2240. * testsuite/ld-x86-64/pr20830b.d: Likewise.
  2241. * testsuite/ld-x86-64/pr21038a.d: Likewise.
  2242. * testsuite/ld-x86-64/pr21038c.d: Likewise.
  2243. * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
  2244. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  2245. 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
  2246. * testsuite/ld-i386/i386.exp: Add some -z now tests.
  2247. * testsuite/ld-i386/plt-pic2.dd: New file.
  2248. * testsuite/ld-i386/plt2.dd: Likewise.
  2249. * testsuite/ld-i386/plt2.rd: Likewise.
  2250. * testsuite/ld-i386/plt2.s: Likewise.
  2251. * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
  2252. * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
  2253. * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
  2254. * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
  2255. * testsuite/ld-i386/pr20830.d: Update the .plt.got section
  2256. with func@plt.
  2257. 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
  2258. * testsuite/ld-arm/arm-elf.exp
  2259. (Secure gateway import library generation): Check e_type field
  2260. of import library and executable produced.
  2261. * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
  2262. 2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
  2263. PR ld/21404
  2264. * testsuite/ld-avr/pr21404-1.d: New test.
  2265. * testsuite/ld-avr/pr21404-1.s: New test.
  2266. * testsuite/ld-avr/pr21404-2.d: New test.
  2267. * testsuite/ld-avr/pr21404-2.s: New test.
  2268. * testsuite/ld-avr/pr21404-3.d: New test.
  2269. * testsuite/ld-avr/pr21404-3.s: New test.
  2270. * testsuite/ld-avr/pr21404-4.d: New test.
  2271. * testsuite/ld-avr/pr21404-4.s: New test.
  2272. * testsuite/ld-avr/pr21404-5.d: New test.
  2273. * testsuite/ld-avr/pr21404-5.s: New test.
  2274. * testsuite/ld-avr/pr21404-6.d: New test.
  2275. * testsuite/ld-avr/pr21404-6.s: New test.
  2276. * testsuite/ld-avr/pr21404-7.d: New test.
  2277. * testsuite/ld-avr/pr21404-7.s: New test.
  2278. * testsuite/ld-avr/pr21404-8.d: New test.
  2279. * testsuite/ld-avr/pr21404-8.s: New test.
  2280. 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
  2281. * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
  2282. * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
  2283. * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
  2284. * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
  2285. * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
  2286. * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
  2287. * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
  2288. * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
  2289. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  2290. 2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
  2291. * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
  2292. additional dynamic symbols on some targets.
  2293. 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
  2294. * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
  2295. * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
  2296. * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
  2297. test.
  2298. * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
  2299. test.
  2300. * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
  2301. test.
  2302. * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
  2303. New test.
  2304. * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
  2305. test.
  2306. * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
  2307. test.
  2308. * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
  2309. New test.
  2310. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  2311. 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2312. * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
  2313. "TLS without PLT (1)" and "TLS without PLT (3)".
  2314. * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
  2315. to "TLS without PLT (3)".
  2316. 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2317. PR ld/21384
  2318. * testsuite/ld-elf/pr21384.d: New file.
  2319. * testsuite/ld-elf/pr21384.dl: Likewise.
  2320. * testsuite/ld-elf/pr21384.ld: Likewise.
  2321. * testsuite/ld-elf/pr21384.s: Likewise.
  2322. 2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
  2323. * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
  2324. is working GNU2 TLS support.
  2325. * testsuite/ld-x86-64/tls.exp: Likewise.
  2326. * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
  2327. 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
  2328. * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
  2329. to -mtls-dialect=gnu2 if target compiler supports it.
  2330. * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
  2331. * testsuite/ld-x86-64/tls.exp: Likewise.
  2332. * testsuite/ld-i386/tlsdesc1a.c: New file.
  2333. * testsuite/ld-i386/tlsdesc1b.c: Likewise.
  2334. * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
  2335. * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
  2336. 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
  2337. * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
  2338. * testsuite/ld-i386/tls.exp: Likewise.
  2339. * testsuite/ld-ifunc/ifunc.exp: Likewise.
  2340. * testsuite/ld-x86-64/tls.exp: Likewise.
  2341. 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
  2342. * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
  2343. in .eh_frame section.
  2344. * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
  2345. 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
  2346. * testsuite/ld-i386/tlsdesc2.d: New test.
  2347. * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
  2348. 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
  2349. PR ld/21334
  2350. * testsuite/ld-mips-elf/pr21334.dd: New test.
  2351. * testsuite/ld-mips-elf/pr21334.gd: New test.
  2352. * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
  2353. * testsuite/ld-mips-elf/pr21334.s: New test source.
  2354. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  2355. 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
  2356. * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
  2357. * testsuite/ld-x86-64/no-plt-1e.nd: New file.
  2358. 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
  2359. * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
  2360. * testsuite/ld-i386/pr12570b.d: Likewise.
  2361. 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
  2362. PR ld/20815
  2363. * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
  2364. 2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
  2365. * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
  2366. instead of `rett' in V9.
  2367. * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
  2368. * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
  2369. 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
  2370. PR ld/21402
  2371. * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
  2372. indirect6 tests on i386.
  2373. 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
  2374. PR ld/19617
  2375. PR ld/21086
  2376. * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
  2377. * testsuite/ld-elf/pr19617b.d: Likewise.
  2378. * testsuite/ld-elf/pr19617c.d: Likewise.
  2379. *testsuite/ld-i386/pr19636-4d.d: Likewise.
  2380. * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
  2381. with --export-dynamic.
  2382. * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
  2383. with -E.
  2384. 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
  2385. PR ld/21402
  2386. * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
  2387. $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
  2388. PIE indirect5 and indirect6 tests on i386.
  2389. 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
  2390. * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
  2391. 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
  2392. PR ld/21382
  2393. * plugin.c (is_visible_from_outside): Symbol may be visible
  2394. from outside if dynamic_ref_after_ir_def is set.
  2395. (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
  2396. defined in an IR object and referenced in a dynamic object.
  2397. * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
  2398. * testsuite/ld-plugin/pr21382a.c: New file.
  2399. * testsuite/ld-plugin/pr21382b.c: Likewise.
  2400. 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
  2401. PR ld/21401
  2402. * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
  2403. -z now.
  2404. 2017-04-19 Alan Modra <amodra@gmail.com>
  2405. * ld.texinfo (dynamic-undefined-weak): Document.
  2406. (nodynamic-undefined-weak): Document that this option now can
  2407. be used with shared libs.
  2408. * emulparams/dynamic_undefined_weak.sh: Support -z
  2409. dynamic-undefined-weak.
  2410. * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
  2411. * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
  2412. (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
  2413. and -z nodynamic-undefined-weak tests.
  2414. * Makefile.am: Update powerpc dependencies.
  2415. * Makefile.in: Regenerate.
  2416. 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2417. PR ld/21389
  2418. * testsuite/ld-elf/pr21389.map: New file.
  2419. * testsuite/ld-elf/pr21389.s: Likewise.
  2420. * testsuite/ld-elf/pr21389a.d: Likewise.
  2421. * testsuite/ld-elf/pr21389b.d: Likewise.
  2422. * testsuite/ld-elf/pr21389c.d: Likewise.
  2423. 2017-04-17 Alan Modra <amodra@gmail.com>
  2424. * testsuite/ld-elf/indirect5a.c,
  2425. * testsuite/ld-elf/indirect5b.c,
  2426. * testsuite/ld-elf/indirect5.map,
  2427. * testsuite/ld-elf/indirect5.out: New test.
  2428. * testsuite/ld-elf/indirect6a.c: Likewise.
  2429. * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
  2430. Run new tests and check dynsyms.
  2431. 2017-04-11 Alan Modra <amodra@gmail.com>
  2432. PR 21274
  2433. PR 18466
  2434. * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
  2435. symbol buffer. Instead, xmalloc max size needed with space for
  2436. prefix. Wrap overlong lines. Formatting. Pass symbol buffer
  2437. copy of name to pe_walk_relocs_of_symbol.
  2438. (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
  2439. * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
  2440. (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
  2441. Use bfd_get_signed_* and remove unnecessary casts. Formatting.
  2442. * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
  2443. callback.
  2444. (make_import_fixup_mark): Add "name" param. Make use of prefix
  2445. space rather than xmalloc here.
  2446. (pe_create_import_fixup): Likewise.
  2447. * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
  2448. (pe_create_import_fixup): Likewise.
  2449. * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
  2450. (pep_create_import_fixup): Likewise.
  2451. 2017-04-10 Nick Clifton <nickc@redhat.com>
  2452. * ld.texinfo (--strip-discarded): Document.
  2453. (--embedded-relocs): Document.
  2454. (--spare-dynamic-tags): Document.
  2455. (--task-link): Document.
  2456. 2017-04-10 Alan Modra <amodra@gmail.com>
  2457. PR 21287
  2458. * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
  2459. * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
  2460. section types.
  2461. * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
  2462. warnings about "ignoring incorrect section type".
  2463. (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
  2464. 2017-04-10 Alan Modra <amodra@gmail.com>
  2465. * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
  2466. sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
  2467. remote_file host exists rather than file exists.
  2468. 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
  2469. PR ld/21090
  2470. * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
  2471. NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
  2472. version of the test.
  2473. 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
  2474. PR ld/19579
  2475. PR ld/21306
  2476. * testsuite/ld-elf/pr19579a.c (main): Updated.
  2477. 2017-04-07 Nick Clifton <nickc@redhat.com>
  2478. PR 21090
  2479. * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
  2480. disable PIE for the non-pie version of the test.
  2481. 2017-04-07 Alan Modra <amodra@gmail.com>
  2482. * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
  2483. 2017-04-07 gingold <gingold@gingold-Precision-7510>
  2484. * testsuite/ld-pe/pe.exp: New test.
  2485. * testsuite/ld-pe/weakdef-1.s: New test source.
  2486. * testsuite/ld-pe/weakdef-1.d: New test.
  2487. 2017-04-07 Alan Modra <amodra@gmail.com>
  2488. * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
  2489. * testsuite/ld-elf/mbind1b.d: Likewise.
  2490. * testsuite/ld-elf/mbind1c.d: Likewise.
  2491. 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
  2492. PR ld/21233
  2493. * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
  2494. indentation issue introduced with last commit.
  2495. 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
  2496. PR ld/21233
  2497. * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
  2498. first test for cris*-*-*.
  2499. 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
  2500. PR ld/21233
  2501. * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
  2502. * testsuite/ld-elf/pr21233.sd: New test.
  2503. * testsuite/ld-elf/pr21233-l.sd: New test.
  2504. * testsuite/ld-elf/pr21233.ld: New test linker script.
  2505. * testsuite/ld-elf/pr21233-e.ld: New test linker script.
  2506. * testsuite/ld-elf/pr21233.s: New test source.
  2507. * testsuite/ld-elf/pr21233-l.s: New test source.
  2508. * testsuite/ld-elf/shared.exp: Run the new tests.
  2509. 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
  2510. * NEWS: Mention support for ELF SHF_GNU_MBIND and
  2511. PT_GNU_MBIND_XXX.
  2512. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
  2513. input GNU_MBIND sections with the same type, attributes and
  2514. sh_info field into a single output GNU_MBIND section.
  2515. * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
  2516. * testsuite/ld-elf/mbind1.s: New file.
  2517. * testsuite/ld-elf/mbind1a.d: Likewise.
  2518. * testsuite/ld-elf/mbind1b.d: Likewise.
  2519. * testsuite/ld-elf/mbind1c.d: Likewise.
  2520. * testsuite/ld-elf/mbind2a.s: Likewise.
  2521. * testsuite/ld-elf/mbind2b.c: Likewise.
  2522. 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
  2523. * NEWS: Mention support for ELF GNU program properties.
  2524. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
  2525. ELF setup_gnu_properties.
  2526. * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
  2527. * testsuite/ld-i386/pass.c: New file.
  2528. * testsuite/ld-i386/property-1.r: Likewise.
  2529. * testsuite/ld-i386/property-2.r: Likewise.
  2530. * testsuite/ld-i386/property-3.r: Likewise.
  2531. * testsuite/ld-i386/property-4.r: Likewise.
  2532. * testsuite/ld-i386/property-5.r: Likewise.
  2533. * testsuite/ld-i386/property-6.r: Likewise.
  2534. * testsuite/ld-i386/property-6a.c: Likewise.
  2535. * testsuite/ld-i386/property-6b.c: Likewise.
  2536. * testsuite/ld-i386/property-6c.S: Likewise.
  2537. * testsuite/ld-i386/property-7.r: Likewise.
  2538. * testsuite/ld-i386/property-no-copy.S: Likewise.
  2539. * testsuite/ld-i386/property-stack.S: Likewise.
  2540. * testsuite/ld-i386/property-unsorted-1.S: Likewise.
  2541. * testsuite/ld-i386/property-unsorted-2.S: Likewise.
  2542. * testsuite/ld-i386/property-x86-1.S: Likewise.
  2543. * testsuite/ld-i386/property-x86-2.S: Likewise.
  2544. * testsuite/ld-x86-64/pass.c: Likewise.
  2545. * testsuite/ld-x86-64/property-1.r: Likewise.
  2546. * testsuite/ld-x86-64/property-2.r: Likewise.
  2547. * testsuite/ld-x86-64/property-3.r: Likewise.
  2548. * testsuite/ld-x86-64/property-4.r: Likewise.
  2549. * testsuite/ld-x86-64/property-5.r: Likewise.
  2550. * testsuite/ld-x86-64/property-6.r: Likewise.
  2551. * testsuite/ld-x86-64/property-6a.c: Likewise.
  2552. * testsuite/ld-x86-64/property-6b.c: Likewise.
  2553. * testsuite/ld-x86-64/property-6c.S: Likewise.
  2554. * testsuite/ld-x86-64/property-7.r: Likewise.
  2555. * testsuite/ld-x86-64/property-no-copy.S: Likewise.
  2556. * testsuite/ld-x86-64/property-stack.S: Likewise.
  2557. * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
  2558. * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
  2559. * testsuite/ld-x86-64/property-x86-1.S: Likewise.
  2560. * testsuite/ld-x86-64/property-x86-2.S: Likewise.
  2561. * testsuite/ld-x86-64/x86-64.exp: Run property tests for
  2562. Linux/x86-64.
  2563. 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
  2564. PR ld/16044
  2565. * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
  2566. testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
  2567. 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
  2568. * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
  2569. false for nios2-*-elf.
  2570. 2017-03-21 gingold <gingold@gingold-Precision-7510>
  2571. * ldlang.c (lang_check_section_addresses): Check only for
  2572. allocated sections.
  2573. 2017-03-17 Alan Modra <amodra@gmail.com>
  2574. * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
  2575. 2017-03-15 Tristan Gingold <gingold@adacore.com>
  2576. * testsuite/ld-checks/checks.exp (overflow_check): Disable for
  2577. non-elf targets.
  2578. 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
  2579. * ldlang.c (lang_check_section_addresses): Use addr_mask to
  2580. check VMA and LMA.
  2581. 2017-03-13 Nick Clifton <nickc@redhat.com>
  2582. PR binutils/21202
  2583. * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
  2584. 2017-03-13 Tristan Gingold <gingold@adacore.com>
  2585. * ldlang.c (lang_check_section_addresses): Check for address space
  2586. overflow.
  2587. * testsuite/ld-checks/checks.exp (overflow_check): New procedure
  2588. * testsuite/ld-checks/over.s: New test source.
  2589. * testsuite/ld-checks/over.d: New test.
  2590. * testsuite/ld-checks/over2.s: New test source.
  2591. * testsuite/ld-checks/over2.d: New test.
  2592. 2017-03-13 Alexey Neyman <stilor@att.net>
  2593. * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
  2594. cpu, not host.
  2595. 2017-03-11 Alan Modra <amodra@gmail.com>
  2596. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
  2597. sysroot for -rpath search.
  2598. 2017-03-11 Alan Modra <amodra@gmail.com>
  2599. * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
  2600. Only prefix absolute paths with sysroot. Handle DOS paths.
  2601. (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
  2602. (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
  2603. (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
  2604. searches. Rename variable. Simplify get_runpath search.
  2605. 2017-03-11 Alan Modra <amodra@gmail.com>
  2606. * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
  2607. than -rdynamic.
  2608. 2017-03-11 Alan Modra <amodra@gmail.com>
  2609. * ld.texinfo (Orphan Sections): Mention that not all targets
  2610. handle orphans well.
  2611. * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
  2612. * testsuite/ld-elf/orphan-10.d: Likewise.
  2613. 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  2614. * ldlang.c (lang_size_sections_1): Shortcut loop only after
  2615. tracking changes to the default regions LMA.
  2616. * testsuite/ld-elf/orphan-9.ld: Extend header comment.
  2617. * testsuite/ld-elf/orphan-10.d: New file.
  2618. * testsuite/ld-elf/orphan-10.s: New file.
  2619. * NEWS: Mention change in behaviour.
  2620. 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  2621. * ldlang.c (lang_leave_output_section_statement): Move lma_region
  2622. logic to...
  2623. (lang_propagate_lma_regions): ...this new function.
  2624. (lang_process): Call new function.
  2625. * testsuite/ld-elf/orphan-9.d: New file.
  2626. * testsuite/ld-elf/orphan-9.ld: New file.
  2627. * testsuite/ld-elf/orphan-9.s: New file.
  2628. * NEWS: Mention change in behaviour.
  2629. 2017-03-07 Alan Modra <amodra@gmail.com>
  2630. * ldlang.c (open_input_bfds): Check that lang_assignment_statement
  2631. is not an assert before referencing defsym.
  2632. 2017-03-05 Alan Modra <amodra@gmail.com>
  2633. * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
  2634. * testsuite/ld-elf/eh6.d: Likewise.
  2635. * testsuite/ld-alpha/tlsbin.dd: Likewise.
  2636. * testsuite/ld-alpha/tlsbin.td: Likewise.
  2637. * testsuite/ld-alpha/tlsbinr.dd: Likewise.
  2638. * testsuite/ld-alpha/tlspic.dd: Likewise.
  2639. * testsuite/ld-alpha/tlspic.rd: Likewise.
  2640. * testsuite/ld-alpha/tlspic.sd: Likewise.
  2641. * testsuite/ld-alpha/tlspic.td: Likewise.
  2642. * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
  2643. * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
  2644. * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
  2645. * testsuite/ld-x86-64/pr20830a.d: Likewise.
  2646. * testsuite/ld-x86-64/pr21038a.d: Likewise.
  2647. * testsuite/ld-x86-64/pr21038b.d: Likewise.
  2648. * testsuite/ld-x86-64/pr21038c.d: Likewise.
  2649. 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
  2650. PR 12969
  2651. * pe-dll.c (generate_edata): Fail if the input file(s) require too
  2652. many ordinals.
  2653. 2017-03-02 Alan Modra <amodra@gmail.com>
  2654. * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
  2655. and dl3.cc.
  2656. 2017-02-28 Alan Modra <amodra@gmail.com>
  2657. * testsuite/ld-elf/merge.d: xfail for nios.
  2658. 2017-02-28 Alan Modra <amodra@gmail.com>
  2659. * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
  2660. limits of addpcis range.
  2661. 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
  2662. * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
  2663. instructions.
  2664. * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
  2665. * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
  2666. 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
  2667. PR target/20849
  2668. * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
  2669. (.rodata): New section.
  2670. (.data): Remove .rodata*.
  2671. 2017-02-25 Alan Modra <amodra@gmail.com>
  2672. * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
  2673. Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
  2674. defining HPUX where necessary. Define HPUX for implib tests.
  2675. * testsuite/ld-elf/comm-data4.d: Run for hpux.
  2676. * testsuite/ld-elf/endsym.d: Likewise.
  2677. * testsuite/ld-elf/linkoncerdiff.d: Likewise.
  2678. * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
  2679. * testsuite/ld-elf/comm-data5.s: Likewise.
  2680. * testsuite/ld-elf/endsym.s: Likewise.
  2681. * testsuite/ld-elf/pr14170c.s: Likewise.
  2682. * testsuite/ld-elf/symbol3.s: Likewise.
  2683. * testsuite/ld-elf/implib.s: Likewise. Don't start directives
  2684. in first column.
  2685. * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
  2686. * testsuite/ld-elf/warn3.d: Run for hpux.
  2687. * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
  2688. * testsuite/ld-scripts/rgn-at11.d: Likewise.
  2689. * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
  2690. 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
  2691. * testsuite/ld-elf/ver_def.vd: New test.
  2692. * testsuite/ld-elf/ver_def-tic6x.vd: New test.
  2693. * testsuite/ld-elf/ver_def.ld: New test linker script.
  2694. * testsuite/ld-elf/ver_def.ver: New test version script.
  2695. * testsuite/ld-elf/ver_def.s: New test source.
  2696. * testsuite/ld-elf/readelf.exp: New test script.
  2697. 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
  2698. * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
  2699. option.
  2700. * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
  2701. * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
  2702. * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
  2703. 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
  2704. * testsuite/ld-mips-elf/jalr4.dd: New test.
  2705. * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
  2706. 2017-02-23 Alan Modra <amodra@gmail.com>
  2707. PR 20744
  2708. * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
  2709. each group.
  2710. * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
  2711. and sdarel reloc fix.
  2712. 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
  2713. PR ld/20828
  2714. * testsuite/ld-elf/pr20828-d.sd: New test.
  2715. * testsuite/ld-elf/pr20828-e.sd: New test.
  2716. * testsuite/ld-elf/pr20828-v.od: New test.
  2717. * testsuite/ld-elf/pr20828-v.ver: New test version script.
  2718. * testsuite/ld-elf/pr20828-v.ld: New test linker script.
  2719. * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
  2720. `.gnu.version_d'.
  2721. * testsuite/ld-elf/shared.exp: Run the new tests.
  2722. 2017-02-21 Nick Clifton <nickc@redhat.com>
  2723. * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
  2724. about non-void function returning without a result.
  2725. 2017-02-17 Alan Modra <amodra@gmail.com>
  2726. PR 15041
  2727. * scripttempl/pe.sc: Don't combine sections for ld -r.
  2728. * scripttempl/pep.sc: Likewise.
  2729. 2017-02-17 Alan Modra <amodra@gmail.com>
  2730. PR 21099
  2731. * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
  2732. rather than using OTHER_SECTIONS.
  2733. * emulparams/elf32mt.sh: Likewise.
  2734. * emulparams/elf32rx.sh: Likewise.
  2735. * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
  2736. define __rl78_abs__.
  2737. * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
  2738. rather than using OTHER_SECTIONS.
  2739. * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
  2740. * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
  2741. * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
  2742. * emulparams/shelf_uclinux.sh: Likewise.
  2743. * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
  2744. to define _stack, not OTHER_SECTIONS.
  2745. * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
  2746. TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
  2747. * scripttempl/arclinux.sc: Likewise.
  2748. * scripttempl/elf64hppa.sc: Likewise.
  2749. * scripttempl/elfxtensa.sc: Likewise.
  2750. * scripttempl/nds32elf.sc: Likewise.
  2751. * scripttempl/armbpabi.sc: Move STACK before debug sections.
  2752. * scripttempl/elf_chaos.sc: Likewise.
  2753. * scripttempl/elfarc.sc: Delete STACK.
  2754. * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
  2755. TINY_BSS_SECTION, and .stack before debug sections.
  2756. 2017-02-17 Nick Clifton <nickc@redhat.com>
  2757. PR ld/20825
  2758. * ld.texinfo (Options): Add missing @item entry for --pop-state.
  2759. 2017-02-17 Alan Modra <amodra@gmail.com>
  2760. * testsuite/ld-elf/dwarf2.err: Accept other errors between the
  2761. multiple definition errors.
  2762. 2017-02-17 Alan Modra <amodra@gmail.com>
  2763. * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
  2764. * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
  2765. 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
  2766. * testsuite/ld-elf/shared.exp: Update expected results.
  2767. * testsuite/ld-elf/dwarf2.err: Likewise
  2768. 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
  2769. * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
  2770. * testsuite/ld-elf/dwarf2.err: New file.
  2771. * testsuite/ld-elf/dwarf2a.c: New file.
  2772. * testsuite/ld-elf/dwarf2b.c: New file.
  2773. * testsuite/ld-elf/dwarf3.c: New file.
  2774. * testsuite/ld-elf/dwarf3.err: New file.
  2775. 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
  2776. * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
  2777. error, warning_output, and error_output actions. Remove separate
  2778. warnings parameter.
  2779. * testsuite/ld-elf/shared.exp (build_tests): Updated to use
  2780. 'warning' action.
  2781. * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
  2782. 2017-02-16 Alan Modra <amodra@gmail.com>
  2783. * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
  2784. from void pointers to function pointers.
  2785. * testsuite/ld-elf/pr18718.c: Update to suit.
  2786. * testsuite/ld-elf/pr18720a.c: Update to suit.
  2787. 2017-02-16 Alan Modra <amodra@gmail.com>
  2788. PR 21000
  2789. * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
  2790. * testsuite/ld-elf/loadaddr2.d: Likewise.
  2791. * testsuite/ld-elf/loadaddr3a.d: Likewise.
  2792. * testsuite/ld-scripts/rgn-at5.d: Likewise.
  2793. 2017-02-16 Alan Modra <amodra@gmail.com>
  2794. * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
  2795. * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
  2796. 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
  2797. PR ld/21168
  2798. * testsuite/ld-i386/i386.exp: Run pr21168.
  2799. * testsuite/ld-i386/pr21168a.c: New file.
  2800. * testsuite/ld-i386/pr21168b.S: Likewise.
  2801. 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
  2802. PR ld/20244
  2803. * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
  2804. pr20244-4c.
  2805. * testsuite/ld-i386/pr20244-4.s: New file.
  2806. * testsuite/ld-i386/pr20244-4a.d: Likewise.
  2807. * testsuite/ld-i386/pr20244-4b.d: Likewise.
  2808. * testsuite/ld-i386/pr20244-4c.d: Likewise.
  2809. 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
  2810. * ldmisc.c (vfinfo): Don't print the function name again either
  2811. if no source file name has been found both now and previously.
  2812. * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
  2813. * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
  2814. * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
  2815. * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
  2816. * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
  2817. * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
  2818. * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
  2819. * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
  2820. * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
  2821. * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
  2822. Likewise.
  2823. * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
  2824. Likewise.
  2825. * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
  2826. Likewise.
  2827. * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
  2828. * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
  2829. Likewise.
  2830. * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
  2831. Likewise.
  2832. * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
  2833. * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
  2834. * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
  2835. * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
  2836. * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
  2837. * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
  2838. * testsuite/ld-powerpc/tocopt.out: Likewise.
  2839. * testsuite/ld-powerpc/tocopt7.out: Likewise.
  2840. 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
  2841. * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
  2842. 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
  2843. * testsuite/ld-scripts/sysroot-prefix.exp
  2844. (get_base_dir_for_scripts): New function.
  2845. (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
  2846. 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
  2847. * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
  2848. _gp to __global_pointer$
  2849. 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  2850. * configure.tgt (arc*-*-linux*): Change the default linker
  2851. emulation based on --with-cpu selection.
  2852. * NEWS: Mention new configuration option.
  2853. 2017-02-06 Jiong Wang <jiong.wang@arm.com>
  2854. * testsuite/ld-elf/compress.exp: Don't print to stdout for all
  2855. "readelf -w".
  2856. 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
  2857. * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
  2858. 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
  2859. * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
  2860. s/regexp/regex/.
  2861. 2017-02-02 Jiong Wang <jiong.wang@arm.com>
  2862. * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
  2863. * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
  2864. dlopen support into "dlopen_run_tests". These tests include dl1*main
  2865. and dl6*main.
  2866. (dlopen_run_tests): New and only run it when check_libdl_available
  2867. returns true. XFAIL on *-*-netbsdelf*.
  2868. 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
  2869. * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
  2870. presentation of relocation addends.
  2871. * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
  2872. * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
  2873. * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
  2874. 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
  2875. * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
  2876. in `.tdata' section.
  2877. * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
  2878. * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
  2879. 2017-02-01 Jiong Wang <jiong.wang@arm.com>
  2880. * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
  2881. Append $board_cflags to link commands.
  2882. 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
  2883. * testsuite/ld-scripts/print-memory-usage-1.l: Relax
  2884. check for digit in second decimal place.
  2885. 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
  2886. PR ld/20828
  2887. * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
  2888. indentation.
  2889. 2017-01-31 Nick Clifton <nickc@redhat.com>
  2890. * ldmain.c (add_archive_element): Eliminate string buffer.
  2891. * ldlang.c (lang_print_asneeded): Likewise.
  2892. 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
  2893. * emultempl/mipself.em (ignore_branch_isa): New variable.
  2894. (mips_create_output_section_statements): Rename
  2895. `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
  2896. add `ignore_branch_isa' argument.
  2897. (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
  2898. OPTION_NO_IGNORE_BRANCH_ISA enum values.
  2899. (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
  2900. "no-ignore-branch-isa" options.
  2901. (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
  2902. `--no-ignore-branch-isa'.
  2903. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
  2904. OPTION_NO_IGNORE_BRANCH_ISA.
  2905. * ld.texinfo (Options specific to MIPS targets): Add
  2906. `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
  2907. (ld and the MIPS family): Likewise.
  2908. * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
  2909. * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
  2910. * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
  2911. * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
  2912. * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
  2913. * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
  2914. test.
  2915. * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
  2916. test.
  2917. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
  2918. 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
  2919. PR binutils/19935
  2920. Fix long-standing buglet and fallout from now-default initfini-array.
  2921. * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
  2922. (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
  2923. 2017-01-27 Jiong Wang <jiong.wang@arm.com>
  2924. * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
  2925. arm*-*-eabi*.
  2926. 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
  2927. Nick Clifton <nickc@redhat.com>
  2928. PR 20343
  2929. * ld.texinfo (Options): Extend documentation of the --plugin
  2930. option. Include a description of where the plugins should be
  2931. located.
  2932. 2017-01-27 Nick Clifton <nickc@redhat.com>
  2933. * po/sr.po: New Serbian translation.
  2934. * configure.ac (ALL_LINGUAS): Add sr.
  2935. * configure: Regenerate.
  2936. 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
  2937. * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
  2938. (bfin-*-rtems*): Move to (bfin*-*-elf*).
  2939. (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
  2940. (m68*-*-rtems*): Move to (m68*-*-elf*).
  2941. (mips*-*-rtems*): Move to (mips*-*-elf*).
  2942. (or1k*-*-rtems*): Move to (or1k*-*-elf*).
  2943. (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
  2944. (sparc*-*-rtems*): Move to (sparc*-*-elf*).
  2945. (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
  2946. 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
  2947. * configure.tgt (h8300-*-rtemscoff*): Remove.
  2948. (i960-*-rtems*): Likewise.
  2949. (m68*-*-rtemscoff*): Likewise.
  2950. (sh-*-rtemscoff*): Likewise.
  2951. 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
  2952. * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
  2953. add implicit version nodes if an anonymous version tag is being
  2954. used.
  2955. 2017-01-24 Jiong Wang <jiong.wang@arm.com>
  2956. * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
  2957. "Compile 8a", "Compile 8b"...
  2958. (lto_compile_elf_tests): ...to here. Always run these tests.
  2959. (lto_run_elf_tests): Move "LTO 7"...
  2960. (lto_run_elf_shared_tests): ...to here. Restrict these tests on
  2961. environment where share library is supported.
  2962. 2017-01-24 Alan Modra <amodra@gmail.com>
  2963. * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
  2964. and symbols.
  2965. * testsuite/ld-powerpc/tlsexe.d: Likewise.
  2966. * testsuite/ld-powerpc/tlsexe.g: Likewise.
  2967. 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
  2968. * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
  2969. * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
  2970. * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
  2971. * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
  2972. * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
  2973. * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
  2974. * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
  2975. * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
  2976. * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
  2977. * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
  2978. * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
  2979. * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
  2980. * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
  2981. 2017-01-23 Nick Clifton <nickc@redhat.com>
  2982. * po/ga.po: Updated Irish translation.
  2983. 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
  2984. PR ld/20828
  2985. * testsuite/ld-elf/pr20828.ld: Add `.plt'.
  2986. 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
  2987. PR ld/20828
  2988. * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
  2989. `fdata' and `edata' respectively.
  2990. * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
  2991. * testsuite/ld-elf/pr20828-a.sd: Likewise.
  2992. * testsuite/ld-elf/pr20828-b.sd: Likewise.
  2993. * testsuite/ld-elf/pr20828-c.sd: Likewise.
  2994. 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
  2995. PR ld/20828
  2996. * testsuite/ld-elf/pr20828-1.sd: Remove test.
  2997. * testsuite/ld-elf/pr20828-a.sd: New test.
  2998. * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
  2999. * testsuite/ld-elf/pr20828-b.sd: ... this.
  3000. * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
  3001. * testsuite/ld-elf/pr20828-c.sd: ... this.
  3002. * testsuite/ld-elf/shared.exp: Adjust accordingly.
  3003. 2017-01-23 Jiong Wang <jiong.wang@arm.com>
  3004. * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
  3005. board_cflags as gcc is used as linker driver.
  3006. * testsuite/ld-unique/unique.exp: Likewise
  3007. 2017-01-20 Jiong Wang <jiong.wang@arm.com>
  3008. * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
  3009. * testsuite/ld-aarch64/func-in-so.s: New test source file.
  3010. * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
  3011. * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
  3012. 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
  3013. * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
  3014. 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
  3015. PR ld/20995
  3016. * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
  3017. `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
  3018. 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
  3019. PR ld/20828
  3020. * testsuite/ld-elf/pr20828-1.sd: New test.
  3021. * testsuite/ld-elf/pr20828-2a.sd: New test.
  3022. * testsuite/ld-elf/pr20828-2b.sd: New test.
  3023. * testsuite/ld-elf/pr20828.ld: New test linker script.
  3024. * testsuite/ld-elf/pr20828.ver: New test version script.
  3025. * testsuite/ld-elf/pr20828.s: New test source.
  3026. * testsuite/ld-elf/shared.exp: Run the new test.
  3027. 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
  3028. PR gas/20649
  3029. * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
  3030. relocation pairing link test.
  3031. 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
  3032. * testsuite/ld-unique/unique.exp: Filter shared lib cases in
  3033. uniqeue.exp, as not all targets have such support.
  3034. 2017-01-16 Nick Clifton <nickc@redhat.com>
  3035. * po/sv.po: Updated Swedish translation.
  3036. 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
  3037. PR ld/21038
  3038. * testsuite/ld-x86-64/pr21038b.d: Updated.
  3039. * testsuite/ld-x86-64/pr21038c.d: New file.
  3040. * testsuite/ld-x86-64/pr21038c.s: Likewise.
  3041. * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
  3042. 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
  3043. PR ld/21038
  3044. * testsuite/ld-x86-64/pr21038a.d: New file.
  3045. * testsuite/ld-x86-64/pr21038a.s: Likewise.
  3046. * testsuite/ld-x86-64/pr21038b.d: Likewise.
  3047. * testsuite/ld-x86-64/pr21038b.s: Likewise.
  3048. * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
  3049. 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
  3050. * configure.tgt: Add entries for x86-redox and x86_64-redox.
  3051. 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
  3052. * testsuite/ld-x86-64/pr20830b.d: Updated.
  3053. 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
  3054. * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
  3055. * testsuite/ld-x86-64/pr20830.d: Renamed to ...
  3056. * testsuite/ld-x86-64/pr20830a.d: This. Updated.
  3057. * testsuite/ld-x86-64/pr20830b.d: New file.
  3058. * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
  3059. Run pr20830b.
  3060. 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
  3061. PR ld/20830
  3062. * testsuite/ld-i386/i386.exp: Run pr20830.
  3063. * testsuite/ld-x86-64/x86-64.exp: Likewise.
  3064. * testsuite/ld-i386/pr20830.d: New file.
  3065. * testsuite/ld-i386/pr20830.s: Likewise.
  3066. * testsuite/ld-x86-64/pr20830.d: Likewise.
  3067. * testsuite/ld-x86-64/pr20830.s: Likewise.
  3068. 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
  3069. * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
  3070. -Wl,--as-needed to $CC.
  3071. * testsuite/ld-i386/tls.exp: Likewise.
  3072. 2017-01-10 Nick Clifton <nickc@redhat.com>
  3073. * po/sv.po: Updated Swedish translation.
  3074. 2016-12-09 Graham Markall <graham.markall@embecosm.com>
  3075. Andrew Burgess <andrew.burgess@embecosm.com>
  3076. * Makefile.am: Add earclinux_nps.c target and add to
  3077. ALL_EMULATION_SOURCES.
  3078. * Makefile.in: Likewise, regenerated.
  3079. * configure.tgt: Add arclinux_nps as an extra emulation for
  3080. arc*-*-elf* and arc*-*-linux*.
  3081. * emulparams/arc-nps.sh: New file.
  3082. * emulparams/arclinux_nps.sh: New file.
  3083. * testsuite/ld-arc/arclinux-nps.d,
  3084. * testsuite/ld-arc/arclinux-nps.s: New test.
  3085. 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
  3086. PR 20958
  3087. * ldlex.l (option): Add noyywrap
  3088. (yywrap): Delete.
  3089. * ldlex.h (yywrap): Delete prototype.
  3090. 2017-01-04 Alan Modra <amodra@gmail.com>
  3091. * testsuite/ld-elf/audit.exp: Check for shared lib support.
  3092. * testsuite/ld-elf/compress.exp: Likewise.
  3093. * testsuite/ld-elf/dwarf.exp: Likewise.
  3094. * testsuite/ld-elf/shared.exp: Likewise.
  3095. * testsuite/ld-elf/wrap.exp: Likewise.
  3096. * testsuite/ld-ifunc/ifunc.exp: Likewise.
  3097. * testsuite/ld-plugin/lto.exp: Check $CXX exists.
  3098. 2017-01-03 Alan Modra <amodra@gmail.com>
  3099. * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
  3100. allow test to continue after compilation errors.
  3101. (run_cc_link_tests): Likewise.
  3102. 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
  3103. * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
  3104. (epruelf.c): Remove unneeded dependencies.
  3105. * Makefile.in: Regenerate
  3106. 2017-01-03 Alan Modra <amodra@gmail.com>
  3107. * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
  3108. to various tests.
  3109. * testsuite/ld-elfweak/elfweak.exp: Likewise.
  3110. * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
  3111. 2017-01-03 Alan Modra <amodra@gmail.com>
  3112. * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
  3113. * testsuite/ld-pie/pie.exp: Likewise.
  3114. * testsuite/ld-plugin/lto.exp: Likewise.
  3115. 2017-01-02 Alan Modra <amodra@gmail.com>
  3116. * Makefile.am (bootstrap): Delete rule.
  3117. (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
  3118. (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
  3119. (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
  3120. * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
  3121. (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
  3122. * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
  3123. * Makefile.in: Regenerate.
  3124. * configure: Regenerate.
  3125. * testsuite/config/default.exp (get_link_files): Delete.
  3126. (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
  3127. define.
  3128. (ld_simple_link): Delete.
  3129. * testsuite/lib/ld-lib.exp (default_ld_link): Delete
  3130. (default_ld_simple_link): Rename to default_ld_link.
  3131. (ld_simple_link_defsyms): Rename to ld_link_defsyms.
  3132. (run_ld_link_tests): Use ld_link, not ld_simple_link.
  3133. (run_cc_link_tests): Likewise.
  3134. (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
  3135. Don't run exe when not native, and return unsupported.
  3136. * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
  3137. Link ld1 etc. using $CC.
  3138. * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
  3139. * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
  3140. * testsuite/ld-cygwin/exe-export.exp: Likewise.
  3141. * testsuite/ld-elf/binutils.exp: Likewise.
  3142. * testsuite/ld-elf/eh-group.exp: Likewise.
  3143. * testsuite/ld-elf/exclude.exp: Likewise.
  3144. * testsuite/ld-elf/frame.exp: Likewise.
  3145. * testsuite/ld-elf/sec-to-seg.exp: Likewise.
  3146. * testsuite/ld-elf/tls_common.exp: Likewise.
  3147. * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
  3148. * testsuite/ld-fastcall/fastcall.exp: Likewise.
  3149. * testsuite/ld-gc/gc.exp: Likewise.
  3150. * testsuite/ld-ifunc/binutils.exp: Likewise.
  3151. * testsuite/ld-mep/mep.exp: Likewise.
  3152. * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
  3153. * testsuite/ld-mn10300/mn10300.exp: Likewise.
  3154. * testsuite/ld-nios2/nios2.exp: Likewise.
  3155. * testsuite/ld-pe/pe-compile.exp: Likewise.
  3156. * testsuite/ld-pe/pe-run.exp: Likewise.
  3157. * testsuite/ld-pe/pe-run2.exp: Likewise.
  3158. * testsuite/ld-plugin/plugin.exp: Likewise.
  3159. * testsuite/ld-scripts/align.exp: Likewise.
  3160. * testsuite/ld-scripts/alignof.exp: Likewise.
  3161. * testsuite/ld-scripts/assert.exp: Likewise.
  3162. * testsuite/ld-scripts/defined.exp: Likewise.
  3163. * testsuite/ld-scripts/extern.exp: Likewise.
  3164. * testsuite/ld-scripts/log2.exp: Likewise.
  3165. * testsuite/ld-scripts/map-address.exp: Likewise.
  3166. * testsuite/ld-scripts/phdrs.exp: Likewise.
  3167. * testsuite/ld-scripts/phdrs2.exp: Likewise.
  3168. * testsuite/ld-scripts/script.exp: Likewise.
  3169. * testsuite/ld-scripts/section-flags.exp: Likewise.
  3170. * testsuite/ld-scripts/sizeof.exp: Likewise.
  3171. * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
  3172. * testsuite/ld-scripts/weak.exp: Likewise.
  3173. * testsuite/ld-selective/selective.exp: Likewise.
  3174. * testsuite/ld-sh/sh.exp: Likewise.
  3175. * testsuite/ld-sh/sh64/relax.exp: Likewise.
  3176. * testsuite/ld-sh/sh64/relfail.exp: Likewise.
  3177. * testsuite/ld-srec/srec.exp: Likewise.
  3178. * testsuite/ld-tic6x/tic6x.exp: Likewise.
  3179. * testsuite/ld-undefined/weak-undef.exp: Likewise.
  3180. * testsuite/ld-versados/versados.exp: Likewise.
  3181. * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
  3182. * testsuite/ld-xtensa/coalesce.exp: Likewise.
  3183. * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
  3184. * testsuite/ld-xtensa/lcall.exp: Likewise.
  3185. * testsuite/ld-elf/audit.exp: Run non-native too.
  3186. * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
  3187. gcc -Wl, options.
  3188. * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
  3189. not ld_simple_link. Add -Wl,--no-as-needed to some tests.
  3190. * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
  3191. * testsuite/ld-elf/indirect.exp: Run non-native too. Add
  3192. -Wl,--no-as-needed to most tests.
  3193. * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
  3194. to simplify quoting. Set run_tests using [list] rather than
  3195. brace assignment to expand $extralibs. Add -Wl,--no-as-needed
  3196. to many test. Prefix ld options with -Wl,.
  3197. (mix_pic_and_non_pic): Don't run exe if not native.
  3198. * testsuite/ld-elf/wrap.exp: Run non-native too. Add
  3199. -Wl,--no-as-needed and prefix ld options with -Wl,.
  3200. * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
  3201. not ld_simple_link.
  3202. * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
  3203. (visibility_test): Don't run exe if not native.
  3204. * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
  3205. not ld_simple_link.
  3206. (build_exec): Don't run exe if not native.
  3207. * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
  3208. not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
  3209. to some tests and prefix ld options with -Wl,. Expect GNU
  3210. for hppa-linux even when no ifuncs. Delete cleanup.
  3211. * testsuite/ld-pie/pie.exp: Run non-native too.
  3212. * testsuite/ld-plugin/lto.exp: Likewise.
  3213. * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
  3214. not ld_simple_link.
  3215. (shared_test): Don't run exe if not native.
  3216. * testsuite/ld-size/size.exp: Run non-native too. Add
  3217. -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
  3218. * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
  3219. not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
  3220. to some tests and prefix ld options with -Wl,. Expect GNU
  3221. for hppa-linux even when no unique syms. Delete cleanup.
  3222. * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
  3223. tests and prefix ld options with -Wl,.
  3224. * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
  3225. Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
  3226. 2017-01-02 Alan Modra <amodra@gmail.com>
  3227. * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
  3228. 2017-01-02 Alan Modra <amodra@gmail.com>
  3229. PR ld/21000
  3230. * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
  3231. (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
  3232. * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
  3233. is already defined.
  3234. 2017-01-02 Alan Modra <amodra@gmail.com>
  3235. Update year range in copyright notice of all files.
  3236. For older changes see ChangeLog-2016
  3237. Copyright (C) 2017 Free Software Foundation, Inc.
  3238. Copying and distribution of this file, with or without modification,
  3239. are permitted in any medium without royalty provided the copyright
  3240. notice and this notice are preserved.
  3241. Local Variables:
  3242. mode: change-log
  3243. left-margin: 8
  3244. fill-column: 74
  3245. version-control: never
  3246. End: