ChangeLog-2007 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567
  1. 2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
  2. PR ld/5530
  3. * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
  4. _bfd_elf_find_segment_containing_section with output_bfd,
  5. instead of input_bfd.
  6. 2007-12-31 Nick Clifton <nickc@redhat.com>
  7. * elf-m10300.c (mn10300_elf_relax_section): Use
  8. _bfd_merged_section_offset to compute the offset of a symbol in a
  9. merged section.
  10. 2007-12-31 Nick Clifton <nickc@redhat.com>
  11. * elf.c (_bfd_elf_find_segment_containing_section): New function:
  12. Scan the segment map looking for the segment containing a
  13. specified function.
  14. * elf-bfd.h: Prototype the new function.
  15. * elf-hppa.h (elf_hppa_osec_to_segment): Delete.
  16. (elf_hppa_record_segment_addrs): Use new function.
  17. * elf32-bfin.c (_bfdfdpic_osec_to_segment): Use new function.
  18. * elf32-frv.c (_frvfdpic_osec_to_segment): Use new function.
  19. * elf32-hppa.c (hppa_record_segment_addr): Use new function.
  20. * elfxx-ia64.c (elfNN_ia64_relocate_section): Use new function.
  21. 2007-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  22. PR binutils/5146
  23. * elf64-hppa.c: Declare alloca when __GNUC__ is defined.
  24. * som.c: Likewise.
  25. * elf-hppa.h (elf_hppa_osec_to_segment): New function.
  26. (elf_hppa_record_segment_addrs): Use elf_hppa_osec_to_segment.
  27. Remove ATTRIBUTE_UNUSED from abfd argument.
  28. * elf32-hppa.c (hppa_record_segment_addr): Likewise.
  29. 2007-12-28 Nick Hudson <nick.hudson@dsl.pipex.com>
  30. * elf32-hppa.c (hppa_record_segment_addr): Locate the segment
  31. containing the section using the segment map, rather than guessing
  32. based upon the section's vma and file position.
  33. 2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
  34. PR binutils/5488
  35. * elf.c (IS_NOTE): New.
  36. (IS_COREFILE_NOTE): Use IS_NOTE.
  37. (IS_SECTION_IN_INPUT_SEGMENT): Use IS_NOTE instead of
  38. IS_COREFILE_NOTE.
  39. 2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
  40. PR binutils/5449
  41. * elf.c (rewrite_elf_program_header): Don't adjust p_paddr if
  42. p_paddr is set to 0.
  43. (copy_private_bfd_data): Call rewrite_elf_program_header if
  44. p_paddr is set to 0.
  45. * elfcode.h (elf_swap_phdr_out): Set p_paddr to 0 if needed.
  46. * elfxx-ia64.c (ELF_MAXPAGESIZE): Don't redefine it for HPUX.
  47. 2007-12-21 Bob Wilson <bob.wilson@acm.org>
  48. * elf32-xtensa.c (relax_section): Update DIFF relocations in the
  49. same way as other relocations.
  50. 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
  51. * section.c (BFD_FAKE_SECTION): Update.
  52. * bfd-in2.h: Regenerate.
  53. 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
  54. * bfd-in2.h: Regenerate.
  55. 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
  56. * config.bfd: Add arm-*-mingw32ce* target.
  57. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  58. * elf-bfd.h (eh_cie_fde): Replace u.cie.merged with a union of
  59. a merged field and a sec field.
  60. (eh_frame_hdr_info): Remove offsets_adjusted.
  61. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update accesses to
  62. the CIE merged field.
  63. (_bfd_elf_gc_mark_fdes): Likewise.
  64. (_bfd_elf_discard_section_eh_frame): Likewise. Set u.cie.u.sec
  65. when clearing the removed flag.
  66. (_bfd_elf_eh_frame_section_offset): Remove offsets_adjusted handling.
  67. (_bfd_elf_write_section_eh_frame): Likewise. Apply output_offsets
  68. where appropriate.
  69. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  70. * elf-bfd.h (eh_cie_fde): Move add_fde_encoding and
  71. per_encoding_relative to u.cie. Add commentary.
  72. * elf-eh-frame.c (cie): Remove make_relative.
  73. (extra_augmentation_string_bytes): Update use of add_fde_encoding.
  74. (extra_augmentation_data_bytes): Likewise. Use an FDE's own
  75. add_augmentation_size field, rather than referring to the CIE.
  76. (_bfd_elf_parse_eh_frame): Don't set the struct cie
  77. make_relative field; set the eh_cie_fde field directly.
  78. Update setting of add_fde_encoding and per_encoding_relative.
  79. Copy make_relative and add_augmentation_size from the CIE
  80. to the FDE.
  81. (_bfd_elf_discard_section_eh_frame): Use the FDE's own
  82. make_relative field.
  83. (_bfd_elf_eh_frame_section_offset): Likewise.
  84. (_bfd_elf_write_section_eh_frame): Update accesses to
  85. add_fde_encoding and per_encoding_relative. Use the FDE's
  86. own make_relative and add_augmentation_size fields.
  87. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  88. * elf-bfd.h (eh_cie_fde): Remove need_lsda_relative.
  89. Move make_lsda_relative to u.cie.
  90. * elf-eh-frame.c (cie): Rename make_lsda_relative to
  91. can_make_lsda_relative.
  92. (_bfd_elf_parse_eh_frame): Don't set the old eh_cie_fde
  93. make_lsda_relative field. Update after cie renaming.
  94. Set u.cie.make_lsda_relative if can_make_lsda_relative
  95. and if we find a relocation against the LSDA.
  96. (_bfd_elf_discard_section_eh_frame): Copy make_lsda_relative when
  97. changing a CIE's group representative.
  98. (_bfd_elf_eh_frame_section_offset): Don't set need_ldsa_relative here.
  99. (_bfd_elf_write_section_eh_frame): Check u.cie.make_lsda_relative
  100. rather than need_lsda_relative.
  101. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  102. * elf-bfd.h (eh_cie_fde): Add u.fde.next_for_section and
  103. u.cie.gc_mark.
  104. (bfd_elf_section_data): Add fde_list.
  105. (elf_fde_list): New macro.
  106. (elf_obj_tdata): Add eh_frame_section.
  107. (elf_eh_frame_section): New macro.
  108. (_bfd_elf_gc_mark_reloc): Remove last parameter.
  109. (_bfd_elf_gc_mark_fdes): Declare.
  110. * elf-eh-frame.c (_bfd_elf_get_eh_frame_sec_info): Chain the FDEs
  111. for each input section.
  112. (mark_entry, _bfd_elf_gc_mark_fdes): New functions.
  113. * elflink.c (_bfd_elf_gc_mark_reloc): Remove is_eh parameter.
  114. (_bfd_elf_gc_mark): Update call accordingly. Mark the relocations
  115. againts the section's FDEs. Don't mark the bfd's elf_eh_frame_section.
  116. (bfd_elf_gc_sections): Parse each input bfd's .eh_frame before
  117. marking any input sections. Remove the current EH handling.
  118. * section.c (bfd_section): Remove gc_mark_from_eh.
  119. * ecoff.c (bfd_debug_section): Update initializer accordingly.
  120. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  121. * elf-bfd.h (eh_cie_fde): Add u.cie. Document how u.fde.cie_inf
  122. changes when removed == 0.
  123. (eh_frame_hdr_info): Add parsed_eh_frames.
  124. (_bfd_elf_begin_eh_frame_parsing): Declare.
  125. (_bfd_elf_parse_eh_frame): Declare.
  126. (_bfd_elf_end_eh_frame_parsing): Declare.
  127. * elf-eh-frame.c (_bfd_elf_begin_eh_frame_parsing): New function.
  128. (_bfd_elf_parse_eh_frame): New function, split out from
  129. _bfd_elf_discard_section_eh_frame. Make a first pass through the
  130. buffer to calculate the number of entries and CIEs. Allocate memory
  131. for them before the main loop. Replace current extended cie
  132. representation with a pair of pointers, one to the local eh_cie_fde
  133. and one to the full struct cie. Allocate a separate array of struct
  134. cies if not merging. Merge CIEs during the main loop and set up each
  135. u.cie.merged field. Point an FDE's cie_inf field directly at the
  136. local CIE. Initially assume that all entries should be removed.
  137. (_bfd_elf_end_eh_frame_parsing): New function.
  138. (_bfd_elf_discard_section_eh_frame): Assume that the section has
  139. already been parsed. Use a separate pass to mark entries that
  140. need to be kept. Use the u.cie.merged field to track a CIE's
  141. group representative.
  142. * elflink.c (bfd_elf_discard_info): Call _bfd_elf_parse_eh_frame
  143. before _bfd_elf_discard_section_eh_frame. Wrap loop with calls to
  144. _bfd_elf_begin_eh_frame_parsing and _bfd_elf_end_eh_frame_parsing.
  145. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  146. * elf-bfd.h (eh_cie_fde): Put cie_inf in a union. Add a reloc_index
  147. field. Use bitfields for fde_encoding, lsda_encoding and lsda_offset.
  148. * elf-eh-frame.c (extra_augmentation_data_bytes): Adjust cie_inf
  149. accesses after the above change.
  150. (_bfd_elf_eh_frame_section_offset): Likewise.
  151. (_bfd_elf_write_section_eh_frame): Likewise.
  152. (_bfd_elf_discard_section_eh_frame): Likewise. Set up reloc_index.
  153. 2007-12-15 Richard Sandiford <rsandifo@nildram.co.uk>
  154. * elf-bfd.h (_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): Declare.
  155. (_bfd_elf_gc_mark): Use elf_gc_mark_hook_fn.
  156. * elflink.c (init_reloc_cookie, fini_reloc_cookie)
  157. (init_reloc_cookie_rels, fini_reloc_cookie_rels): New functions,
  158. split out from...
  159. (bfd_elf_discard_info): ...here.
  160. (init_reloc_cookie_for_section): New function.
  161. (fini_reloc_cookie_for_section): Likewise.
  162. (_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): New functions,
  163. split out from...
  164. (_bfd_elf_gc_mark): ...here. Use init_reloc_cookie_for_section
  165. and fini_reloc_cookie_for_section.
  166. 2007-12-12 Bob Wilson <bob.wilson@acm.org>
  167. * elf32-xtensa.c (elf_xtensa_do_reloc): Update self_address along with
  168. address.
  169. (print_action_list): Fix name for ta_convert_longcall.
  170. 2007-12-11 Catherine Moore <clm@codesourcery.com>
  171. * elf.c (_bfd_elf_copy_private_symbol_data): Don't copy shndx if
  172. the symbol's section is the undefined section.
  173. 2007-12-11 Alan Modra <amodra@bigpond.net.au>
  174. * elf.c (elf_fake_sections): Add "warning:" to "..changed to PROGBITS"
  175. message.
  176. 2007-12-07 Bob Wilson <bob.wilson@acm.org>
  177. * elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL.
  178. (elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL.
  179. (elf_xtensa_check_relocs): Use default case for all relocations that
  180. need nothing done here.
  181. (elf_xtensa_do_reloc): Compute self_address for all relocation types.
  182. Handle R_XTENSA_32_PCREL.
  183. (elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic
  184. symbols.
  185. (check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations.
  186. 2007-12-05 Alan Modra <amodra@bigpond.net.au>
  187. * elf32-spu.c (spu_elf_size_stubs): Do consider branches to
  188. non-function symbols for overlay stubs.
  189. 2007-12-04 Bob Wilson <bob.wilson@acm.org>
  190. * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
  191. entry for all dynamic objects.
  192. 2007-12-04 Alan Modra <amodra@bigpond.net.au>
  193. * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.
  194. 2007-11-30 Richard Sandiford <rsandifo@nildram.co.uk>
  195. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the
  196. ELF header to choose between 32-bit and 64-bit relocation structures.
  197. 2007-11-29 Mark Shinwell <shinwell@codesourcery.com>
  198. * archures.c (bfd_mach_mips_loongson_2e): New.
  199. (bfd_mach_mips_loongson_2f): New.
  200. * bfd-in2.h (bfd_mach_mips_loongson_2e): New.
  201. (bfd_mach_mips_loongson_2f): New.
  202. * cpu-mips.c: Add I_loongson_2e and I_loongson_2f to
  203. anonymous enum.
  204. (arch_info_struct): Add Loongson-2E and Loongson-2F entries.
  205. * elfxx-mips.c (_bfd_elf_mips_mach): Handle Loongson-2E
  206. and Loongson-2F flags.
  207. (mips_set_isa_flags): Likewise.
  208. (mips_mach_extensions): Add Loongson-2E and Loongson-2F
  209. entries.
  210. 2007-11-29 Nick Clifton <nickc@redhat.com>
  211. PR ld/5398
  212. * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Do not
  213. complain if there is no glue bfd, just return.
  214. 2007-11-28 Nick Clifton <nickc@redhat.com>
  215. * elf-m10300.c (mn10300_elf_relax_section): Extend previous fix to
  216. cover forward jumps.
  217. 2007-11-21 Nick Clifton <nickc@redhat.com>
  218. * elf-m10300.c (mn10300_elf_relax_section): Allow for alignment
  219. relocs when computing whether instructions can be relaxed.
  220. 2007-11-16 Tristan Gingold <gingold@adacore.com>
  221. * elflink.c (elf_link_output_extsym): Weaken assertion: if
  222. --gc-section is set, there may be no TLS segment.
  223. 2007-11-19 Alan Modra <amodra@bigpond.net.au>
  224. * elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
  225. * elflink.c (bfd_elf_perform_complex_relocation): Return status.
  226. Don't print reloc overflow message.
  227. * elf32-mep.c (mep_elf_relocate_section): Handle status from
  228. bfd_elf_perform_complex_relocation.
  229. 2007-11-17 Thiemo Seufer <ths@mips.com>
  230. * elfxx-mips.c (mips_elf_merge_obj_attributes): Handle -mips32r2
  231. -mfp64 attribute.
  232. 2007-11-16 Nick Clifton <nickc@redhat.com>
  233. * elf-m10300.c (mn10300_elf_check_relocs): Fix memory leak and
  234. check that bfd_elf_get_elf_syms is only called once.
  235. 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
  236. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Set udata.p of
  237. synthetic symbol to point to the ELF symbol it was derived from.
  238. 2007-11-15 Alan Modra <amodra@bigpond.net.au>
  239. PR 5328
  240. * opncls.c (separate_debug_file_exists): Use fopen/fread
  241. rather than open/read and open in binary mode.
  242. 2007-11-14 Richard Sandiford <richard@codesourcery.com>
  243. * elfxx-mips.c (mips_got_page_range): New structure.
  244. (mips_got_page_entry): Likewise.
  245. (mips_got_info): Add page_gotno and got_page_entries fields.
  246. (mips_elf_got_per_bfd_arg): Add max_pages field. Delete
  247. primary_count and current_count fields.
  248. (mips_got_page_entry_hash, mips_got_page_entry_eq): New functions.
  249. (mips_elf_pages_for_range, mips_elf_record_got_page_entry): Likewise.
  250. (mips_elf_get_got_for_bfd): New function, split out from
  251. mips_elf_make_got_per_bfd. Initialize the page_gotno and
  252. got_page_entries fields when creating a new GOT structure.
  253. (mips_elf_make_got_pages_per_bfd): New function.
  254. (mips_elf_merge_got_with): New function, split out from
  255. mips_elf_make_got_per_bfd. Merge page entries as well as
  256. non-page entries. Use the minimum of max_pages and the sum
  257. of the page_gotnos to estimate the number of page entries.
  258. (mips_elf_merge_gots): Use the minimum of max_pages and the
  259. bfd's page_gotno to estimate the number of page entries.
  260. Use the above functions.
  261. (mips_elf_multi_got): Add page entries as well as non-page entries
  262. to the individual per-bfd GOTs. Initialize got_per_bfd_arg.max_pages.
  263. Initialize the page_gotno and got_page_entries fields when creating
  264. a new primary GOT. Use the minimum of pages and page_gotno when
  265. adding the number of pages entries to local_gotno.
  266. (mips_elf_create_got_section): Initialize the page_gotno and
  267. got_page_entries fields of the GOT structure.
  268. (mips_elf_rel_relocation_p, mips_elf_read_rel_addend)
  269. (mips_elf_add_lo16_rel_addend, mips_elf_get_section_contents): New
  270. functions, split out from...
  271. (_bfd_mips_elf_relocate_section): ...here.
  272. (_bfd_mips_elf_check_relocs): Record GOT page entries too.
  273. (_bfd_mips_relax_section): Use mips_elf_get_section_contents.
  274. (_bfd_mips_elf_always_size_sections): Use the smaller of the
  275. loadable_size- and page_gotno-derived estimates.
  276. 2007-11-14 Thiemo Seufer <ths@mips.com>
  277. * elfxx-mips.c (mips_elf_merge_obj_attributes): Prevent
  278. unwanted fallthroughs in case statement.
  279. 2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
  280. PR binutils/5307
  281. * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
  282. copy input subsystem if output is different from input.
  283. 2007-11-13 Nick Clifton <nickc@redhat.com>
  284. * elf-m10300.c (mn10300_elf_final_link_relocate): Prevent the
  285. accidental termination of DWARF location list entries.
  286. (mn10300_elf_relax_delete_bytes): Stop deletion if an align reloc
  287. is encountered that is larger than or not a mutliple of the number
  288. of bytes being deleted.
  289. When adjusting symbols, any symbols inside the region being
  290. deleted must be moved to the end of the region.
  291. Move align relocs forward if there is room for them after the
  292. deletion of the region.
  293. 2007-11-13 Alan Modra <amodra@bigpond.net.au>
  294. PR 5233
  295. * elf.c (rewrite_elf_program_header): Formatting. Add
  296. first_matching_lma and first_suggested_lma booleans and use
  297. instead of testing matching_lma and suggested_lma for zero.
  298. 2007-11-12 H.J. Lu <hongjiu.lu@intel.com>
  299. PR binutils/5299
  300. * peicode.h (pe_bfd_object_p): Save and restore previous bfd
  301. state when calling coff_object_p.
  302. 2007-11-12 Alan Modra <amodra@bigpond.net.au>
  303. * elf.c (_bfd_elf_get_synthetic_symtab): Only bump the symbol
  304. pointer when we have a valid symbol. Init udata.p to NULL.
  305. 2007-11-09 Nathan Sidwell <nathan@codesourcery.com>
  306. * elf-vxworks.c (elf_vxworks_emit_relocs): Don't clobber
  307. rel_hash. Move loop inside if test.
  308. 2007-11-08 Nathan Sidwell <nathan@codesourcery.com>
  309. * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.
  310. (elf_vxworks_finish_dynamic_entry): Declare.
  311. * elf-vxworks.c: Include elf/vxworks.h.
  312. (elf_vxworks_add_dynamic_entries): New.
  313. (elf_vxworks_finish_dynamic_entry): New.
  314. * Makefile.am (elf-vxworks.lo): Add dependency.
  315. * Makefile.in (elf-vxworks.lo): Add dependency.
  316. * elf32-i386.c (elf_i386_size_dynamic_sections,
  317. elf_i386_finish_dynamic_sections): Call
  318. elf_vxworks_add_dynamic_entries and
  319. elf_vxworks_finish_dynamic_entry.
  320. * elf32-ppc.c (ppc_elf_size_dynamic_sections,
  321. ppc_elf_finish_dynamic_sections): Likewise.
  322. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections,
  323. sparc_finish_dyn): Likewise.
  324. * elf32-sh.c (sh_elf_size_dynamic_sections,
  325. sh_elf_finish_dynamic_sections): Likewise.
  326. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections,
  327. _bfd_mips_elf_finish_dynamic_sections): Likewise.
  328. * elf32-arm.c (elf32_arm_size_dynamic_sections,
  329. elf32_arm_finish_dynamic_sections): Likewise.
  330. 2007-11-07 Olivier Hainque <hainque@adacore.com>
  331. * bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force
  332. SHF_MIPS_NOSTRIP on .debug_frame for Irix.
  333. 2007-11-06 Alan Modra <amodra@bigpond.net.au>
  334. * elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
  335. (ppc64_elf_gc_sweep_hook): ..or here..
  336. (ppc64_elf_tls_optimize): ..or here. Make two passes through the
  337. relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
  338. (allocate_dynrelocs): Refcount tlsld_got here.
  339. (ppc64_elf_size_dynamic_sections): Allocate local got and call
  340. allocate_dynrelocs before allocating tlsld_got.
  341. (ppc64_elf_relocate_section): Remove check that a tls_get_addr
  342. call follows gd and ld relocs.
  343. * elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here..
  344. (ppc_elf_gc_sweep_hook): ..or here..
  345. (ppc_elf_tls_optimize): ..or here. Make two passes through the
  346. relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
  347. (allocate_dynrelocs): Refcount tlsld_got here.
  348. (ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before
  349. allocating tlsld_got.
  350. (ppc_elf_relocate_section): Remove check that a tls_get_addr
  351. call follows gd and ld relocs.
  352. 2007-11-05 Alan Modra <amodra@bigpond.net.au>
  353. * merge.c (sec_merge_hash_lookup): Revert last change.
  354. (record_section): Likewise.
  355. (_bfd_merge_sections): Likewise.
  356. (_bfd_merged_section_offset): Properly handle NULL secinfo.
  357. (_bfd_add_merge_section): Allocate extra space for a zero
  358. terminator on SEC_STRINGS sections.
  359. 2007-11-05 Danny Smith <dannysmith@users.sourceforge.net>
  360. * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
  361. and .bss section use the default.
  362. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  363. 2007-11-01 Joseph Myers <joseph@codesourcery.com>
  364. * merge.c (sec_merge_hash_lookup): Add parameter sec_end. Check
  365. for unterminated strings. All callers changed.
  366. (record_section): Add parameter abfd. Give error message for
  367. unterminated strings.
  368. (_bfd_merge_sections): Update call to record_section.
  369. (_bfd_write_merged_section, _bfd_merged_section_offset): Handle
  370. NULL secinfo from merge failures.
  371. 2007-10-31 Nick Clifton <nickc@redhat.com>
  372. * elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for
  373. align relocs when there are no relocs attached to the section.
  374. 2007-10-31 Alan Modra <amodra@bigpond.net.au>
  375. * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
  376. * elflink.c (bfd_elf_match_symbols_in_sections): Make static.
  377. Remove section name comparisons.
  378. 2007-10-30 Nick Clifton <nickc@redhat.com>
  379. * reloc.c (BFD_RELOC_MN10300_ALIGN): Add.
  380. * bfd-in2.h: Regenerate.
  381. * libbfd.h: Regnerate.
  382. * elf-m10300.h: Handle R_MN10300_ALIGN relocs.
  383. (mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs.
  384. Re-fix off by one error in comparisons.
  385. 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
  386. * bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case.
  387. * bfd-in2.h: Regenerate.
  388. 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
  389. * elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support for
  390. Tag_GNU_Power_ABI_Vector.
  391. 2007-10-25 Joseph Myers <joseph@codesourcery.com>
  392. * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Do not add
  393. PT_NULL header when not linking.
  394. 2007-10-25 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
  395. * elf.c (elfcore_grok_ppc_vmx): New function.
  396. (elfcore_grok_note): Handle NT_PPC_VMX.
  397. (elfcore_write_ppc_vmx): New function.
  398. * elf-bfd.h (elfcore_write_ppc_vmx): Declare.
  399. 2007-10-24 Alan Modra <amodra@bigpond.net.au>
  400. * Makefile.am: Run "make dep-am".
  401. * Makefile.in: Regenerate.
  402. * po/SRC-POTFILES.in: Regenerate.
  403. 2007-10-23 Alan Modra <amodra@bigpond.net.au>
  404. * elf64-ppc.c (ppc_build_one_stub): Don't duplicate relocs
  405. emitted for ".brlt" entries.
  406. (toc_adjusting_stub_needed): Don't treat ".fixup" specially here..
  407. (ppc64_elf_next_input_section): ..instead do so here.
  408. 2007-10-19 Nick Clifton <nickc@redhat.com>
  409. * config.bfd: Recognise am34-linux-gnu target.
  410. * reloc.c: Add BFD_RELOC_MN10300_SYM_DIFF relocation.
  411. * bfd-in2.h: Regenerate.
  412. * libbfd.h: Regenerate.
  413. * elf-m10300.c (elf_mn10300_howto): Add R_MN10300_SYM_DIFF.
  414. (mn10300_reloc_map): Likewise.
  415. (mn10300_elf_check_relocs): Do not create dynamic relocs for
  416. symbol differences or relocations against absolute symbols.
  417. (mn10300_elf_final_link_relocate): Likewise.
  418. Handle R_MN10300_SYM_DIFF relocs.
  419. (mn10300_elf_relocate_section): Fix for creating local copys of
  420. dynamic relocs.
  421. (mn10300_elf_relax_delete_bytes): Adjust symbols at the end of the
  422. region. Adjust the size of function symbols.
  423. (mn10300_elf_relax_section): Ignore symbols that are in discarded
  424. sections.
  425. 2007-10-19 Nick Clifton <nickc@redhat.com>
  426. * elf-m10300.c: Convert to ISO C.
  427. 2007-10-18 H.J. Lu <hongjiu.lu@intel.com>
  428. Alan Modra <amodra@bigpond.net.au>
  429. PR ld/4424
  430. * config.bfd (targ_selvecs): Add bfd_elf64_alpha_vec for
  431. alpha/FreeBSD. Add bfd_elf64_sparc_vec for sparc64/FreeBSD.
  432. Add bfd_elf32_i386_vec and bfd_efi_app_ia32_vec for i386/FreeBSD.
  433. (targ64_selvecs): Set for i386/FreeBSD.
  434. * elf-bfd.h (elf_backend_data): Add relocs_compatible.
  435. (_bfd_elf_default_relocs_compatible): Declare.
  436. (_bfd_elf_relocs_compatible): Declare.
  437. * elfxx-target.h (elf_backend_relocs_compatible): Define.
  438. (elfNN_bed): Init new relocs_compatible field.
  439. * elflink.c (_bfd_elf_default_relocs_compatible): New function.
  440. (_bfd_elf_relocs_compatible): New function.
  441. (elf_link_add_object_symbols): Call bed->relocs_compatible.
  442. * elf32-i386.c (elf_backend_relocs_compatible): Define.
  443. * elf64-alpha.c: Likewise.
  444. * elf64-sparc.c: Likewise.
  445. * elf64-x86-64.c: Likewise.
  446. 2007-10-16 Bob Wilson <bob.wilson@acm.org>
  447. * elf32-xtensa.c (relax_section): Check for a reference to a discarded
  448. DWARF section and anticipate its replacement with the kept section.
  449. 2007-10-16 Bob Wilson <bob.wilson@acm.org>
  450. * elf32-xtensa.c (elf_xtensa_discard_info_for_section): Remove
  451. unnecessary size variables. Set sec->rawsize.
  452. (relax_section, relax_property_section): Likewise.
  453. 2007-10-16 Bob Wilson <bob.wilson@acm.org>
  454. * section.c (struct bfd_section): Clarify comment for rawsize field.
  455. * bfd-in2.h: Regenerate.
  456. 2007-10-16 Bob Wilson <bob.wilson@acm.org>
  457. * elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
  458. values if they are set.
  459. 2007-10-16 Nick Clifton <nickc@redhat.com>
  460. PR 5146
  461. * configure.in (AC_CHECK_HEADERS): Add alloca.h
  462. * configure: Regenerate.
  463. * config.in: Regenerate.
  464. * som.c: Replace alloca-conf.h inclusion with code recommended in
  465. autoconf documentation.
  466. * elf64-hppa.c: Likewise.
  467. 2007-10-16 Nick Clifton <nickc@redhat.com>
  468. * configure.in (--enable-elf-stt-common): New configure
  469. option. If enabled then the tools can generate symbols with
  470. the ELF STT_COMMON type.
  471. * config.in: Regenerate.
  472. * configure: Regenerate.
  473. * elf.c (swap_out_syms): If USE_STT_COMMON is defined then set
  474. the type of emitted common symbols to STT_COMMON.
  475. * elfcode.h (elf_slurp_symbol_table): Accept STT_COMMON symbol
  476. types.
  477. 2007-10-15 Alan Modra <amodra@bigpond.net.au>
  478. * coff-arm.c (arm_emit_base_file_entry): Check fwrite return value.
  479. Return status. Adjust callers.
  480. * coff-mcore.c (mcore_emit_base_file_entry): Likewise.
  481. * coff-ppc.c (write_base_file_entry): New function.
  482. (coff_ppc_relocate_section): Use it.
  483. * elf32-arm.c (find_thumb_glue): Check asprintf return status.
  484. (find_arm_glue): Likewise.
  485. * vms-misc.c (_bfd_vms_output_flush): Check fwrite return value.
  486. 2007-10-12 Nick Clifton <nickc@redhat.com>
  487. PR 5160
  488. * elflink.c (eval_symbol): Remove bufsz variable and use
  489. sizeof(symbuf) where necessary.
  490. 2007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  491. * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
  492. 2007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
  493. * elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced
  494. local symbols specially.
  495. (mips_elf_set_global_got_offset): Skip forced local symbols.
  496. 2007-10-12 Alan Modra <amodra@bigpond.net.au>
  497. * elf.c (elfcore_grok_prxfpreg): Fix comment typo.
  498. 2007-10-10 H.J. Lu <hongjiu.lu@intel.com>
  499. * elf.c (get_program_header_size): Always add a PT_GNU_RELRO
  500. segment for -z relro.
  501. (_bfd_elf_map_sections_to_segments): Make a PT_GNU_RELRO
  502. segment only when needed.
  503. 2007-10-05 Bob Wilson <bob.wilson@acm.org>
  504. * elf32-xtensa.c (relax_section): Call pin_internal_relocs when
  505. changing a relocation's offset. Adjust call to translate_reloc. Do
  506. not add a fix record for a DIFF reloc. For other relocs, only add a
  507. fix record if the translated target is in a different object file;
  508. otherwise, just update the relocation. Call pin_internal_relocs when
  509. updating a reloc but not when adding a fix record.
  510. (translate_reloc): Get the target section from a new argument, not
  511. from the relocation. Change check for relaxable sections to an
  512. assertion. Compute separate offset adjustments for the base symbol
  513. and the addend, and set the new relocation's addend correctly. Return
  514. the new target section.
  515. 2007-10-05 Bob Wilson <bob.wilson@acm.org>
  516. * elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
  517. r_type and howto after calling do_fix_for_relocateable_link and
  518. do_fix_for_final_link.
  519. 2007-10-05 Bob Wilson <bob.wilson@acm.org>
  520. * elf32-xtensa.c (removed_by_actions): New.
  521. (offset_with_removed_text): Reimplement using removed_by_actions.
  522. (offset_with_removed_text_before_fill): Delete.
  523. (relax_property_section): Use removed_by_actions. Rearrange logic.
  524. (relax_section_symbols): Likewise.
  525. 2007-10-04 Bob Wilson <bob.wilson@acm.org>
  526. * elf32-xtensa.c (reloc_bfd_fix_struct): Delete target_abfd field.
  527. (reloc_bfd_fix_init): Remove target_abfd argument.
  528. (relax_section, move_literal): Adjust calls to reloc_bfd_fix_init.
  529. 2007-10-04 Nick Clifton <nickc@redhat.com>
  530. PR linker/5099
  531. * elf64-x86-64.c (elf64_x86_64_check_relocs): Add missing
  532. apostrophe to error message.
  533. 2007-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  534. * elf32-cr16.c: Fixed DISP8, DISP20 and IMM20 relocations at
  535. final relocation phase.
  536. Added the below relaxations: IMM32 -> IMM20/IM16 -> IMM4.
  537. * reloc.c: Added 3 new relocations: R_CR16_SWITCH8,
  538. R_CR16_SWITCH16, R_CR16_SWITCH32.
  539. * libbfd.h: Regenerate.
  540. * bfd-in2.h: Regenerate.
  541. 2007-09-30 Alan Modra <amodra@bigpond.net.au>
  542. * elflink.c: Formatting.
  543. 2007-09-29 Alan Modra <amodra@bigpond.net.au>
  544. * elflink.c (resolve_symbol): Handle symbols in SEC_MERGE
  545. sections. Don't test symbol st_shndx. Don't bother with
  546. bfd_link_hash_common symbols. Print longs rather than ints
  547. in debug messages.
  548. (eval_symbol): Replace "sym" and "advanced" params with "symp".
  549. Replace "addr" and "section_offset" params with "dot". Don't
  550. cast bfd_vma values to signed, cast them to bfd_signed_vma.
  551. (bfd_elf_perform_complex_relocation): Delete "output_bfd", "info",
  552. "local_syms" and "local_sections" params. Add "relocation".
  553. Delete code calculating relocation value.
  554. (evaluate_complex_relocation_symbols): Delete function. Fold into..
  555. (elf_link_input_bfd): ..existing code examining relocs.
  556. * elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
  557. * elf32-mep.c (mep_elf_check_relocs): Delete function.
  558. (mep_elf_gc_sweep_hook, mep_elf_gc_mark_hook): Likewise.
  559. (mep_elf_object_p): Don't set elf_bad_symtab.
  560. (elf_backend_check_relocs): Don't define.
  561. (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): Likewise.
  562. (elf_backend_can_gc_sections, USE_RELA): Likwise.
  563. (mep_elf_relocate_section): Move bfd_elf_perform_complex_relocation
  564. call after we have calculated reloc value. Delete local sym
  565. debug code. Use RELOC_FOR_GLOBAL_SYMBOL. Delete addend
  566. adjusting code..
  567. (elf_backend_rela_normal): ..instead define this.
  568. 2007-09-28 Alan Modra <amodra@bigpond.net.au>
  569. * elf-m10300.c (mn10300_elf_check_relocs): Delete dead code.
  570. * elf32-arm.c (elf32_arm_check_relocs): Likewise.
  571. * elf32-avr.c (elf32_avr_check_relocs): Likewise.
  572. * elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
  573. * elf32-cris.c (cris_elf_check_relocs): Likewise.
  574. * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
  575. * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
  576. * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
  577. * elf32-frv.c (_frvfdpic_check_discarded_relocs): Likewise.
  578. (elf32_frv_check_relocs): Likewise.
  579. * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
  580. * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
  581. * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
  582. * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
  583. * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
  584. * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
  585. * elf32-mt.c (mt_elf_check_relocs): Likewise.
  586. * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
  587. * elf32-sh.c (sh_elf_check_relocs): Likewise.
  588. * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
  589. * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
  590. * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
  591. (score_elf_local_relocation_p): Likewise.
  592. (_bfd_score_elf_relocate_section): Likewise.
  593. (score_elf_final_link_relocate): Likewise.
  594. 2007-09-26 Jan Beulich <jbeulich@novell.com>
  595. * elf32-i386.c (elf_i386_check_relocs): Revert NULL pointer
  596. check for R_386_GNU_VTINHERIT.
  597. * elf-m10300.c (mn10300_elf_check_relocs): Check for NULL
  598. pointer for R_xxx_GNU_VTENTRY.
  599. * elf32-arm.c (elf32_arm_check_relocs): Likewise.
  600. * elf32-bfin.c (bfin_check_relocs): Likewise.
  601. (bfinfdpic_check_relocs): Likewise.
  602. * elf32-cris.c (cris_elf_check_relocs): Likewise.
  603. * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
  604. * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
  605. * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
  606. * elf32-frv.c (elf32_frv_check_relocs): Likewise.
  607. * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
  608. * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
  609. * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
  610. * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
  611. * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  612. * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
  613. * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
  614. * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
  615. * elf32-s390.c (elf_s390_check_relocs): Likewise.
  616. * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
  617. * elf32-sh.c (sh_elf_check_relocs): Likewise.
  618. * elf32-v850.c (v850_elf_check_relocs): Likewise.
  619. * elf32-vax.c (elf_vax_check_relocs): Likewise.
  620. * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
  621. * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
  622. * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
  623. * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
  624. * elf64-s390.c (elf_s390_check_relocs): Likewise.
  625. * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
  626. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  627. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
  628. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
  629. 2007-09-26 Alan Modra <amodra@bigpond.net.au>
  630. * elflink.c (set_symbol_value): Add isymbuf and locsymcount
  631. params. Change symidx to a size_t. Don't access past end
  632. of symbol buffer.
  633. (resolve_symbol): Add isymbuf param and use instead of
  634. finfo->internal_syms.
  635. (eval_symbol, evaluate_complex_relocation_symbols): Likewise.
  636. (elf_link_input_bfd): Don't read symbols specially for
  637. evaluate_complex_relocation_symbols.
  638. 2007-09-26 Tristan Gingold <gingold@adacore.com>
  639. * som.c (som_get_reloc_upper_bound): If there are no relocs return
  640. enough space to hold a NULL pointer.
  641. 2007-09-26 Alan Modra <amodra@bigpond.net.au>
  642. * elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
  643. 2007-09-25 Alan Modra <amodra@bigpond.net.au>
  644. * elf32-spu.c (struct spu_link_hash_table): Add ovly_load_r_symndx.
  645. (spu_elf_size_stubs): Count stub relocs.
  646. (write_one_stub): Emit relocs on overlay call stubs.
  647. * elf32-spu.c (struct spu_link_hash_table): Add "stubs".
  648. (spu_elf_link_hash_table_create): Init new field.
  649. (spu_elf_size_stubs): Store sorted stub syms in new htab field
  650. rather than local var.
  651. (spu_elf_build_stubs): Iterate over htab stubs rather than
  652. hash traversal.
  653. (struct stubarr): Delete.
  654. (allocate_spuear_stubs, populate_stubs, write_one_stub): Adjust.
  655. 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
  656. * elf.c (assign_file_positions_for_load_sections): Trust
  657. p_align_valid.
  658. (copy_elf_program_header): Copy PT_NULL segments.
  659. 2007-09-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  660. * elf32-spu.c (is_indirect_branch): New function.
  661. (find_function_stack_adjust): End scan on hitting indirect branch.
  662. (sum_stack): Cast %v arg to correct type.
  663. 2007-09-21 H.J. Lu <hongjiu.lu@intel.com>
  664. * Makefile.am: Run "make dep-am".
  665. * Makefile.in: Regenerated.
  666. 2007-09-21 Doug Kwan <dougkwan@google.com>
  667. * Makefile.am (BFD32_LIBS): Add arange-set.lo.
  668. (BFD32_LIBS_CFILES): Add arange-set.c.
  669. (SOURCE_HFILES): Add arange-set.h
  670. (dwarf2.lo): Add dependency upon arange-set.h.
  671. (arange-set.lo): New target.
  672. * Makefile.in: Regenerate.
  673. * arange-set.c: New file.
  674. * arange-set.h: New file.
  675. * dwarf2.c: Include arange-set.h.
  676. (struct dwarf2_debug) Add new fields comp_unit_count and
  677. comp_unit_arange_set.
  678. (struct comp_unit) Replace field arange with a new field arange_set.
  679. (dwarf2_arange_set_allocate, dwarf2_arange_set_deallocate,
  680. dwarf2_combine_arange_value, dwarf2_arange_set_new,
  681. dwarf2_arange_set_with_value_new, dwarf2_comp_unit_arange_add): New
  682. functions to utilize arange set in dwarf2.c.
  683. (arange_add): Formatting change for a line longer than 80 characters.
  684. (decode_line_info): Replace call target arange_add with
  685. dwarf2_comp_unit_arange_add.
  686. (read_rangelist_insert_arange_list,
  687. read_rangelist_comp_unit_arange_add): New functions used as callbacks
  688. for read_rangelist.
  689. (read_rangelist): Change interface to accept a callback and data to
  690. allow caller to select the action peformed on a new range list read.
  691. (scan_unit_for_symbols): Use new interface of read_rangelist.
  692. (parse_comp_unit): Create an arange set for each new comp unit.
  693. Use new interface of read_rangelist. Replace call to arange_add
  694. with that to dwarf2_comp_unit_arange_add.
  695. (comp_unit_contains_address): Replace sequential search with a call to
  696. arange_set_lookup_address, which can handles large set efficiently.
  697. (stash_copy_local_aranges, stash_maybe_enable_arange_set,
  698. stash_find_nearest_line_fast): New functions maintaining and using a
  699. valued global arange set for all compilation units to speed up
  700. bfd_dwarf2_find_nearest_line.
  701. (find_line): Use global arange set. Replace sequential search over all
  702. compilation units with a call to stash_find_nearest_line_fast. Add
  703. book keeping to count number of compilation units. Replace empty
  704. arange list test with a call to arange_set_empty_p.
  705. 2007-09-21 Olivier Hainque <hainque@adacore.com>
  706. Tristan Gingold <gingold@adacore.com>
  707. * syms.c (_bfd_stab_section_find_nearest_line): Look at the
  708. specific SOM sections for stabs if the regular ones are not found.
  709. * som.h (struct somdata): Add a line_info field, to be used by
  710. som_find_nearest_line.
  711. * som.c (som_find_nearest_line): Implement using the bfd stabs
  712. function above.
  713. 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
  714. * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make sure .got
  715. will be output.
  716. 2007-09-19 Alan Modra <amodra@bigpond.net.au>
  717. Doug Kwan <dougkwan@google.com>
  718. * bfd-in.h (bfd_hash_insert): Declare.
  719. * bfd-in2.h: Regenerate.
  720. * hash.c (bfd_hash_insert): New function. Split out from..
  721. (bfd_hash_lookup): ..here.
  722. * merge.c (sec_merge_hash_lookup): Use bfd_hash_insert.
  723. 2007-09-18 Alan Modra <amodra@bigpond.net.au>
  724. * elf.c (bfd_section_from_shdr): Check bfd_alloc return.
  725. (elfcore_write_note): Check realloc return.
  726. * elflink.c (_bfd_elf_link_find_version_dependencies): Check
  727. bfd_zalloc return.
  728. (_bfd_elf_link_assign_sym_version): Check bfd_malloc return.
  729. (elf_link_add_object_symbols): Likewise.
  730. (struct hash_codes_info): New.
  731. (elf_collect_hash_codes): Return bfd_malloc error.
  732. (struct collect_gnu_hash_codes): Add "error".
  733. (elf_collect_gnu_hash_codes): Return bfd_malloc error.
  734. (bfd_elf_size_dynamic_sections): Check return status of
  735. _bfd_elf_link_find_version_dependencies.
  736. (bfd_elf_size_dynsym_hash_dynstr): Adjust for elf_collect_hash_codes
  737. and elf_collect_gnu_hash_codes changes.
  738. (elf_sym_name_compare): Formatting.
  739. (elf_fixup_link_order): Use bfd_malloc, not xmalloc.
  740. 2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
  741. PR binutils/3281
  742. PR binutils/5037
  743. * elf-bfd.h (elf_obj_tdata): Remove relro.
  744. * elf.c (get_program_header_size): Check info->relro instead
  745. of elf_tdata (abfd)->relro.
  746. (_bfd_elf_map_sections_to_segments): Likewise.
  747. (assign_file_positions_for_load_sections): Don't set
  748. PT_GNU_RELRO segment alignment here.
  749. (assign_file_positions_for_non_load_sections): Properly set up
  750. PT_GNU_RELRO segment for copying executable/shared library.
  751. (rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
  752. (copy_elf_program_header): Set p_size and p_size_valid fields for
  753. PT_GNU_RELRO segment.
  754. 2007-09-17 Nick Clifton <nickc@redhat.com>
  755. * po/fi.po: New Finnish translation.
  756. * po/es.po: Updated Spanish translation.
  757. * configure.in (ALL_LINGUAS): Add fi.
  758. * configure: Regenerate.
  759. * po/bfd.pot: Regenerate.
  760. 2007-09-15 Nick Clifton <nickc@redhat.com>
  761. * bfd.c (_bfd_default_error_handler): fflush stdout.
  762. 2007-09-14 Alan Modra <amodra@bigpond.net.au>
  763. * opncls.c (find_separate_debug_file): Ensure bfd_set_error has
  764. been called on all error return paths.
  765. (bfd_fill_in_gnu_debuglink_section): Use bfd_malloc, not malloc.
  766. Clear padding after filename
  767. 2007-09-14 Alan Modra <amodra@bigpond.net.au>
  768. * format.c (bfd_check_format_matches): Record matching targets even
  769. when "matching" is NULL to allow bfd_associated_vector matches.
  770. Consolidate error return code. Consolidate ok return code. Always
  771. restore original target and format on error.
  772. 2007-09-14 Alan Modra <amodra@bigpond.net.au>
  773. * configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for
  774. long long. Partly revert 2007-07-12 change, so that
  775. BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set
  776. independent of "void *" size.
  777. * configure: Regenerate.
  778. * config.in: Regenerate.
  779. * Makefile.in: Regenerate.
  780. 2007-09-12 Alan Modra <amodra@bigpond.net.au>
  781. * elf-bfd.h (struct elf_backend_data): Delete elf_backend_sprintf_vma
  782. and elf_backend_fprintf_vma.
  783. (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
  784. * elf.c (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
  785. * elfxx-target.h (elf_backend_sprintf_vma): Don't define.
  786. (elf_backend_fprintf_vma): Likewise.
  787. (elfNN_bed): Don't init removed fields.
  788. * bfd.c (is32bit): New function.
  789. (bfd_sprintf_vma, bfd_fprintf_vma): Use the above.
  790. 2007-09-11 Nathan Sidwell <nathan@codesourcery.com>
  791. * archures.c: Add bfd_mach_mcf_isa_c_nodiv,
  792. bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac.
  793. * ieee.c (ieee_write_processor): Update coldfire architecture
  794. list.
  795. * bfd-in2.h: Rebuilt.
  796. * cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures.
  797. (m68k_arch_features): Likewise.
  798. * elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV.
  799. (elf32_m68k_print_private_bfd_data): Likewise.
  800. 2007-09-11 Jan Beulich <jbeulich@novell.com>
  801. * elf64-i386.c (elf64_i386_tls_transition): Remove redundant 'const'.
  802. * elf64-x86_64.c (elf64_x86_64_tls_transition): Likewise.
  803. 2007-09-08 Alan Modra <amodra@bigpond.net.au>
  804. * elf64-ppc.c (func_desc_adjust): When resolving undefined
  805. references to dot-symbols, transfer def_regular and
  806. def_dynamic from the descriptor symbol.
  807. 2007-09-08 Alan Modra <amodra@bigpond.net.au>
  808. * config.bfd: Set want64 for spu-*-elf.
  809. 2007-09-08 Alan Modra <amodra@bigpond.net.au>
  810. PR ld/2864, ld/5006
  811. * elf.c (special_sections): Comment typo.
  812. (elf_fake_sections): Force SHT_PROGBITS for sections that are
  813. SHT_NOBITS if BFD section flags say they have contents.
  814. 2007-09-04 Michael Snyder <msnyder@access-company.com>
  815. * elf32-bfin.c (howto_table): Cut and paste error?
  816. Name field of reloc is wrong.
  817. 2007-09-04 Alan Modra <amodra@bigpond.net.au>
  818. * elf32-spu.c (elf_howto_table): Formatting.
  819. 2007-09-02 H.J. Lu <hongjiu.lu@intel.com>
  820. PR ld/4986
  821. * dwarf2.c (new_line_sorts_after): Undo the last change.
  822. (add_line_info): Only keep the last entry with the same address
  823. and end sequence.
  824. 2007-08-31 H.J. Lu <hongjiu.lu@intel.com>
  825. PR ld/4986
  826. * dwarf2.c (new_line_sorts_after): Also compare line number.
  827. 2007-08-31 Jesse Michael <jmichael@suse.de>
  828. * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non
  829. zerofill sections.
  830. 2007-08-28 David Heine <dlheine@tensilica.com>
  831. * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
  832. narrowing instructions.
  833. 2007-08-28 Mark Shinwell <shinwell@codesourcery.com>
  834. Joseph Myers <joseph@codesourcery.com>
  835. * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma,
  836. then on type.
  837. 2007-08-28 Robert Sebastian Gerus <arachnist@gmail.com>
  838. * config.bfd: Add support for i[3-7]86-*-dragonfly*.
  839. * configure.in: Likewise.
  840. * configure: Regenerate.
  841. 2007-08-25 Ulrich Weigand <uweigand@de.ibm.com>
  842. Alan Modra <amodra@bigpond.net.au>
  843. * elf.c (elfcore_grok_spu_note): New function.
  844. (elf_parse_notes): Call it.
  845. 2007-08-24 H.J. Lu <hongjiu.lu@intel.com>
  846. * elf64-x86-64.c (elf64_x86_64_relocate_section): Adjust
  847. indentation.
  848. 2007-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
  849. * elf.c (elfcore_grok_win32pstatus): Remove HAVE_WIN32_PSTATUS_T
  850. guard. Make it host independent.
  851. (elfcore_grok_note): Remove HAVE_WIN32_PSTATUS_T guard around
  852. NT_WIN32PSTATUS.
  853. 2007-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  854. * elf-bfd.h (struct elf_obj_tdata): New BUILD_ID_SIZE, BUILD_ID.
  855. * elf.c (elfcore_read_notes): Split to ...
  856. (elf_read_notes) ... here ...
  857. (elf_parse_notes): ... and here. Check `bfd_get_format (abfd)' with
  858. the former subfunctions called only for BFD_CORE.
  859. Call ELFOBJ_GROK_GNU_NOTE for BFD_OBJECT files with the owner "GNU".
  860. (_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for SHT_NOTEs.
  861. (bfd_section_from_phdr): Update the call for renamed ELFCORE_READ_NOTES.
  862. (elfobj_grok_gnu_build_id, elfobj_grok_gnu_note): New functions.
  863. Code advisory: Roland McGrath
  864. 2007-08-24 Daniel Jacobowitz <dan@codesourcery.com>
  865. * elf64-mips.c (elf_backend_sign_extend_vma): Define.
  866. 2007-08-24 Alan Modra <amodra@bigpond.net.au>
  867. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Warning fix.
  868. 2007-08-23 H.J. Lu <hongjiu.lu@intel.com>
  869. * Makefile.am: Run "make dep-am".
  870. * Makefile.in: Regenerated.
  871. 2007-08-23 H.J. Lu <hongjiu.lu@intel.com>
  872. * elf32-i386.c: Include "bfd_stdint.h".
  873. (elf_i386_rtype_to_howto): New function.
  874. (elf_i386_info_to_howto_rel): Use it.
  875. (x86_64_opcode16): New union type.
  876. (elf_i386_check_tls_transition): New function.
  877. (elf_i386_tls_transition): Updated to check transition and
  878. issue an error if a transition isn't supported.
  879. (elf_i386_check_relocs): Return FALSE if
  880. elf_i386_tls_transition returns FALSE.
  881. (elf_i386_gc_sweep_hook): Likewise.
  882. (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT
  883. on TLS transitions.
  884. * elf64-x86-64.c: Include "bfd_stdint.h".
  885. (x86_64_opcode16): New union type.
  886. (x86_64_opcode32): Likewise.
  887. (elf64_x86_64_check_tls_transition): New function.
  888. (elf64_x86_64_tls_transition): Updated to check transition and
  889. issue an error if a transition isn't supported.
  890. (elf64_x86_64_check_relocs): Return FALSE if
  891. elf64_x86_64_tls_transition returns FALSE.
  892. (elf64_x86_64_gc_sweep_hook): Likewise.
  893. (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT
  894. on TLS transitions.
  895. 2007-08-22 H.J. Lu <hongjiu.lu@intel.com>
  896. * elfxx-ia64.c: Convert to ISO C90 prototypes.
  897. (elfNN_hpux_backend_section_from_bfd_section): Make it static.
  898. 2007-08-22 H.J. Lu <hongjiu.lu@intel.com>
  899. * elf64-x86-64.c: Remove trailing whitespace.
  900. * elfxx-ia64.c: Likewise.
  901. 2007-08-21 H.J. Lu <hongjiu.lu@intel.com>
  902. * elf32-i386.c (elf_i386_tls_transition): Accept a pointer
  903. to ELF hash entry instead of an integer for local test.
  904. (elf_i386_check_relocs): Updated.
  905. (elf_i386_gc_sweep_hook): Likewise.
  906. (elf_i386_relocate_section): Likewise.
  907. * elf64-x86-64.c (elf64_x86_64_tls_transition): Accept a
  908. pointer to ELF hash entry instead of an integer for local
  909. test.
  910. (elf64_x86_64_check_relocs): Updated.
  911. (elf64_x86_64_gc_sweep_hook): Likewise.
  912. (elf64_x86_64_relocate_section): Likewise.
  913. 2007-08-20 H.J. Lu <hongjiu.lu@intel.com>
  914. * elf32-i386.c (elf_i386_tls_transition): Break long line.
  915. * elf64-x86-64.c (elf64_x86_64_tls_transition): Likewise.
  916. 2007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  917. * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE]
  918. (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size.
  919. (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size.
  920. 2007-08-20 Nick Clifton <nickc@redhat.com>
  921. * elflink.c (elf_fixup_link_order): Rewrite conversion of
  922. s->alignment_power into an offset mask in order to avoid a gcc
  923. error message.
  924. 2007-08-17 Jakub Jelinek <jakub@redhat.com>
  925. * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*.
  926. Change sparc64-*-linux-* to sparc64*-*-linux-*.
  927. 2007-08-17 Alan Modra <amodra@bigpond.net.au>
  928. * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
  929. 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
  930. * elf.c: Revert last change.
  931. 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
  932. * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
  933. (bfd_section_from_phdr): Likewise.
  934. (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
  935. if there is an attribute section.
  936. (_bfd_elf_map_sections_to_segments): Likewise.
  937. (IS_SECTION_IN_INPUT_SEGMENT): Likewise.
  938. 2007-08-14 H.J. Lu <hongjiu.lu@intel.com>
  939. PR ld/4918
  940. * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32
  941. on ___tls_get_addr for GD->LE/LD->LE transitions when not
  942. building shared library.
  943. * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow
  944. R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions
  945. when not building shared library.
  946. 2007-08-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  947. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now
  948. initialized only on the first PT_LOAD. New variable LOADBASE_SET.
  949. Removed PF_R checking for IA-64 vDSOs as redundant now.
  950. Code advisory: Roland McGrath
  951. 2007-08-13 Richard Sandiford <richard@codesourcery.com>
  952. * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
  953. (mips_elf_record_global_got_symbol): Increment local_gotno for
  954. each forced-local symbol.
  955. (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
  956. mips_elf_record_global_got_symbol for VxWorks too.
  957. (_bfd_mips_elf_always_size_sections): Set computed_got_sizes
  958. to true after computing the GOT size.
  959. (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
  960. got.offset == 1. Only adjust global_gotno if computed_got_sizes.
  961. For VxWorks, add a local entry when hiding a symbol that needs a
  962. plt but has not been marked as needing a global got entry.
  963. (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
  964. false.
  965. 2007-08-12 Daniel Jacobowitz <dan@codesourcery.com>
  966. * coffgen.c (coff_get_normalized_symtab): Correct cast.
  967. 2007-08-13 Alan Modra <amodra@bigpond.net.au>
  968. * elf.c (elf_modify_segment_map): Add remove_empty_load param.
  969. Don't remove empty PT_LOAD header if false.
  970. (_bfd_elf_map_sections_to_segments): If user phdrs, pass false
  971. to elf_modify_segment_map.
  972. (assign_file_positions_for_load_sections): Pass false to
  973. elf_modify_segment_map.
  974. 2007-08-13 Alan Modra <amodra@bigpond.net.au>
  975. * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define.
  976. Update stub comments.
  977. (build_plt_stub): Build two variants, one without "addis".
  978. (ppc_build_one_stub): Build stubs without "addis" if possible.
  979. (ppc_size_one_stub): Size new stubs.
  980. 2007-08-11 Richard Sandiford <richard@codesourcery.com>
  981. * config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
  982. 2007-08-09 Michael Snyder <msnyder@access-company.com>
  983. * aoutx.h (aout_get_external_symbols): Return if count is zero.
  984. 2007-08-09 H.J. Lu <hongjiu.lu@intel.com>
  985. PR ld/4909
  986. * elf.c (print_segment_map): New function.
  987. (assign_file_positions_for_load_sections): Call print_segment_map
  988. when a section can't be allocated in segment.
  989. 2007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  990. * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
  991. 2007-08-07 Nick Clifton <nickc@redhat.com>
  992. * po/bfd.pot: Updated template.
  993. * po/BLD-POTFILES.in: Regenerate.
  994. 2007-08-07 Alan Modra <amodra@bigpond.net.au>
  995. * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle
  996. bss segments.
  997. 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
  998. * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h.
  999. * Makefile.in: Regenerated.
  1000. 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
  1001. * configure.in: Update version to 2.18.50.
  1002. * configure: Regenerated.
  1003. 2007-08-06 Paul Brook <paul@codesourcery.com>
  1004. * elf32-arm.c (elf32_arm_link_hash_entry): Add
  1005. plt_maybe_thumb_refcount.
  1006. (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
  1007. (elf32_arm_copy_indirect_symbol): Ditto.
  1008. (elf32_arm_adjust_dynamic_symbol): Ditto.
  1009. (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
  1010. (arm_add_to_rel): Ditto.
  1011. (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
  1012. R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub.
  1013. (elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts
  1014. for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
  1015. (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
  1016. and R_ARM_THM_JUMP19.
  1017. (allocate_dynrelocs): Use plt_maybe_thumb_refcount.
  1018. (elf32_arm_finish_dynamic_symbol): Ditto.
  1019. (elf32_arm_output_plt_map): Ditto.
  1020. 2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
  1021. * elf.c (rewrite_elf_program_header): Handle sections not sorted
  1022. by address.
  1023. (copy_elf_program_header): Likewise.
  1024. 2007-08-04 H.J. Lu <hongjiu.lu@intel.com>
  1025. * elf-bfd.h (xvec_get_elf_backend_data): Add const.
  1026. * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
  1027. * elfcore.h (elf_core_file_p): Likewise.
  1028. 2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
  1029. * coffcode.h (ALIGN_SET): Removed.
  1030. (ELIFALIGN_SET): Likewise.
  1031. (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
  1032. IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
  1033. IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
  1034. IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
  1035. 2007-08-01 Michael Snyder <msnyder@access-company.com>
  1036. * vms-tir.c (new_section): Fix cut and paste error.
  1037. * aoutx.h (aout_link_add_symbols): Return if count is zero.
  1038. * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
  1039. pointer must be non-null.
  1040. 2007-08-01 Tristan Gingold <gingold@adacore.com>
  1041. * coffcode.h (coff_sort_func_alent): New function.
  1042. (coff_slurp_line_table): Sort line table if not already sorted.
  1043. 2007-08-01 Jakub Jelinek <jakub@redhat.com>
  1044. * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
  1045. GCC 3.4.x warning.
  1046. 2007-08-01 Alan Modra <amodra@bigpond.net.au>
  1047. * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
  1048. r_type.
  1049. (swap_std_reloc_in): Likewise.
  1050. (aout_link_input_section_std): Likewise. Return with an error
  1051. on unexpected relocation type.
  1052. (aout_link_input_section_ext): Likewise.
  1053. 2007-08-01 Alan Modra <amodra@bigpond.net.au>
  1054. PR4694
  1055. * aoutx.h (final_link): Write a zero in first word of
  1056. stringtab if no symbols rather than corrupting last byte
  1057. of text/data.
  1058. 2007-07-31 Jakub Jelinek <jakub@redhat.com>
  1059. * elf.c (get_program_header_size): Adjacent loadable .note*
  1060. sections need just one PT_NOTE segment.
  1061. (_bfd_elf_map_sections_to_segments): Likewise.
  1062. 2007-07-30 Michael Snyder <msnyder@access-company.com>
  1063. * coffgen.c (_bfd_coff_read_internal_relocs): Revert change of
  1064. 2007-07-26. Buffer still in use, can't be freed.
  1065. 2007-07-27 Michael Snyder <msnyder@access-company.com>
  1066. * cofflink.c (coff_link_add_symbols): Return if count is zero.
  1067. * coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
  1068. * aoutx.h (slurp_symbol_table): Return if count == 0.
  1069. * coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
  1070. * elf32-i386.c (elf_i386_check_relocs): Check for null pointer.
  1071. 2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
  1072. * config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec.
  1073. 2007-07-26 Michael Snyder <msnyder@access-company.com>
  1074. * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
  1075. * linker.c (bfd_section_already_linked_table_insert): Change
  1076. return type from void to boolean. Return FALSE on failure.
  1077. (_bfd_generic_section_already_linked): Test return value of
  1078. bfd_section_already_linked_table_insert, call fatal on error.
  1079. * elflink.c (_bfd_elf_section_already_linked): Test return value
  1080. of bfd_section_already_linked_table_insert, call fatal on error.
  1081. * libbfd-in.h (bfd_section_already_linked_table_insert): Update
  1082. return type to bfd_boolean.
  1083. * libbfd.h: Regenerate.
  1084. 2007-07-26 Adam Nemet <anemet@caviumnetworks.com>
  1085. * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap,
  1086. bfd_slurp_armap): Improve function comment.
  1087. 2007-07-26 Michael Snyder <msnyder@access-company.com>
  1088. * linker.c (already_linked_newfunc): Check for NULL return from
  1089. bfd_hash_allocate.
  1090. * coffgen.c (fixup_symbol_value): Guard against null;
  1091. bfd_is_com_section will dereference the section pointer.
  1092. * syms.c (bfd_decode_symclass): Guard against NULL, since
  1093. bfd_is_com_section dereferences the pointer.
  1094. * srec.c (srec_scan): Check for EOF (critical because return value
  1095. will be used as array index).
  1096. * coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
  1097. are not to be cached, free the temporary buffer.
  1098. * aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero
  1099. or count == zero.
  1100. * tekhex.c (first_phase): Check return value for null.
  1101. * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
  1102. pointer increment.
  1103. 2007-07-26 Alan Modra <amodra@bigpond.net.au>
  1104. * elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
  1105. check on dynobj. Remove bed shadow.
  1106. * srec.c (srec_get_section_contents): Return immediately on
  1107. count zero. Check that offset and count are within section.
  1108. * libbfd.c (_bfd_generic_get_section_contents): Check that
  1109. offset + count does not overflow.
  1110. * srec.c (srec_canonicalize_symtab): Don't alloc when symcount
  1111. is zero. Correct return value on error.
  1112. * mmo.c (mmo_canonicalize_symtab): Likewise.
  1113. * binary.c (binary_canonicalize_symtab) Correct return on error.
  1114. 2007-07-26 Thiemo Seufer <ths@mips.com>
  1115. * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL.
  1116. 2007-07-26 Alan Modra <amodra@bigpond.net.au>
  1117. * reloc.c (bfd_generic_get_relocated_section_contents): Avoid
  1118. bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
  1119. says there are no relocs.
  1120. 2007-07-26 Doug Kwan <dougkwan@google.com>
  1121. Speed up bfd_dwarf2_find_line.
  1122. * dwarf2.c (struct dwarf2_debug): Add new fields to support function
  1123. and variable info hash tables. Add last_comp_unit, info_hash_count,
  1124. funcinfo_hash_table, varinfo_hash_table, hash_units_head.
  1125. (struct comp_unit): Add prev_unit, cached.
  1126. (struct info_list_node, struct info_hash_entry,
  1127. struct info_hash_table): New.
  1128. (info_hash_table_newfunc, create_info_hash_table,
  1129. insert_info_hash_table, lookup_info_hash_table): New functions
  1130. implementing function and variable info hash tables.
  1131. (scan_unit_for_symbols): Add checks to make sure hash tables are
  1132. consistent with compilation units.
  1133. (comp_unit_maybe_decode_line_info): New function.
  1134. (comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
  1135. (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info,
  1136. info_hash_lookup_funcinfo, info_hash_lookup_varinfo,
  1137. stash_maybe_update_info_hash_table, stash_verify_info_hash_table,
  1138. stash_maybe_enable_info_hash_tables, stash_find_line_fast): New
  1139. functions. Make use of info hash tables to speed up
  1140. bfd_dwarf2_find_line.
  1141. (find_line): Use hash table for faster lookup if it is turned on.
  1142. Also add code to maintain bi-directional link in comp units.
  1143. 2007-07-25 Michael Snyder <msnyder@access-company.com>
  1144. * coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
  1145. if size == 0; return and avoid possible null pointer issues.
  1146. 2007-07-25 Alan Modra <amodra@bigpond.net.au>
  1147. * linker.c (generic_link_add_symbol_list): Warning fix.
  1148. 2007-07-24 Michael Snyder <msnyder@access-company.com>
  1149. * opncls.c (bfd_make_writable): Check return from bfd_malloc.
  1150. * elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
  1151. on bfd_malloc error rather than goto error_return.
  1152. 2007-07-24 Alan Modra <amodra@bigpond.net.au>
  1153. * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
  1154. _bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc,
  1155. _bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol,
  1156. _bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create,
  1157. bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class,
  1158. bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list,
  1159. bfd_elf_get_runpath_list, bfd_elf_get_dt_soname,
  1160. bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol,
  1161. struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol,
  1162. elf_sym_name_compare, elf_create_symbuf,
  1163. bfd_elf_match_symbols_in_sections,
  1164. _bfd_elf_match_sections_by_type): Move to here..
  1165. * elf.c: ..from here.
  1166. 2007-07-23 Richard Sandiford <richard@codesourcery.com>
  1167. * elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
  1168. of weakdef->root.type if weakdef has no regular definition.
  1169. 2007-07-22 Adam Nemet <anemet@caviumnetworks.com>
  1170. * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
  1171. small_data_overflow_reported.
  1172. (_bfd_mips_elf_link_hash_table_create): Initialize it.
  1173. (_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
  1174. small-data section overflow.
  1175. 2007-07-19 Doug Kwan <dougkwan@google.com>
  1176. PR binutils/4797
  1177. * dwarf2.c: (find_line) Do not dereference functionname_ptr if
  1178. do_line is true.
  1179. 2007-07-18 Bob Wilson <bob.wilson@acm.org>
  1180. * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
  1181. non-ELF sections.
  1182. 2007-07-18 Bob Wilson <bob.wilson@acm.org>
  1183. * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
  1184. vma and size for dynamic tags from the output sections.
  1185. 2007-07-18 Alan Modra <amodra@bigpond.net.au>
  1186. * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
  1187. * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
  1188. symbol. Instead cache ELF section index. Remove redundant
  1189. checks of st_shndx.
  1190. 2007-07-15 Mike Frysinger <vapier@gentoo.org>
  1191. * trad-core.c (NBPG): If not defined, set to getpagesize().
  1192. 2007-07-13 Roland McGrath <roland@redhat.com>
  1193. * elf-bfd.h (struct elf_obj_tdata): Revert last change.
  1194. Add after_write_object_contents, after_write_object_contents_info.
  1195. * elf.c (_bfd_elf_write_object_contents): Revert last change.
  1196. Instead, call after_write_object_contents if set.
  1197. 2007-07-12 Kai Tietz <kai.tietz@onevision.com>
  1198. * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
  1199. (BFD_HOSTPTR_T): Host pointer type for casting a
  1200. pointer to an integer type.
  1201. (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
  1202. (sprintf_vma, fprintf_vma): Add support for long long prints.
  1203. * bfd-in2.h: Regenerate.
  1204. * configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
  1205. (BFD_HOSTPTR_T): Host pointer type for casting a
  1206. pointer to an integer type. Default is "unsigned long".
  1207. (AC_CHECK_SIZEOF(void *)): New.
  1208. (host64): Set it if the pointer size is 8.
  1209. * configure: Regenerate.
  1210. * config.in: Add macro SIZEOF_VOID_P.
  1211. * coffcode.h: Replace host ptr type assuming "long" with
  1212. bfd_hostptr_t type.
  1213. * coffgen.c: Likewise.
  1214. * elf-eh-frame.c: Likewise.
  1215. * peicode.h: Likewise.
  1216. 2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1217. * Makefile.in: Regenerated.
  1218. 2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1219. PR binutils/4756
  1220. * simple.c (bfd_simple_get_relocated_section_content): Don't
  1221. apply relocation on executable and shared library.
  1222. 2007-07-10 Nathan Sidwell <nathan@codesourcery.com>
  1223. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
  1224. copy relocs on vxworks.
  1225. 2007-07-10 Alan Modra <amodra@bigpond.net.au>
  1226. * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
  1227. * elf64-alpha.c (alpha_elf_size_info): Likewise.
  1228. * elf64-hppa.c (hppa64_elf_size_info): Likewise.
  1229. * elf64-mips.c (mips_elf64_size_info): Likewise.
  1230. * elf64-s390.c (s390_elf64_size_info): Likewise.
  1231. * elf64-sparc.c (elf64_sparc_size_info): Likewise.
  1232. 2007-07-09 H.J. Lu <hongjiu.lu@intel.com>
  1233. * elflink.c (bfd_elf_record_link_assignment): Handle indirect
  1234. symbol.
  1235. (_bfd_elf_merge_symbol): Properly update normal symbol when
  1236. overriding the versioned symbol from a dynamic library.
  1237. 2007-07-09 Roland McGrath <roland@redhat.com>
  1238. * elf-bfd.h (struct elf_obj_tdata): Add members
  1239. emit_note_gnu_build_id and note_gnu_build_id_sec.
  1240. * elf.c (_bfd_id_note_section_size): New global function.
  1241. (read_hex, _bfd_elf_write_build_id_section): New static functions.
  1242. (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
  1243. if emit_note_gnu_build_id is set.
  1244. * Makefile.am (elf.lo): Update dependencies.
  1245. * elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
  1246. (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
  1247. * elfcode.h (elf_checksum_contents): New macro and function.
  1248. (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
  1249. 2007-07-06 Michael Snyder <msnyder@access-company.com>
  1250. * elflink.c (elf_link_add_object_symbols): Return via
  1251. error_free_vers on "notice" failure.
  1252. 2007-07-04 H.J. Lu <hongjiu.lu@intel.com>
  1253. * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
  1254. if arch is unknown.
  1255. 2007-07-04 Nick Clifton <nickc@redhat.com>
  1256. Import this patch from an internal tree:
  1257. 2001-07-17 Richard Henderson <rth@redhat.com>
  1258. * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly
  1259. compensate for high bit set in R_MEP_LOW16.
  1260. 2007-07-03 Joseph Myers <joseph@codesourcery.com>
  1261. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
  1262. input attributes if value has been copied.
  1263. 2007-07-03 Nick Clifton <nickc@redhat.com>
  1264. * COPYING: Replace with GPLv3 text.
  1265. * aix386-core.c: Update copyright notice to refer to GPLv3.
  1266. * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c,
  1267. aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c,
  1268. aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c,
  1269. archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c,
  1270. binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c,
  1271. cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c,
  1272. coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c,
  1273. coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c,
  1274. coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
  1275. coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
  1276. coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
  1277. coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c,
  1278. coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c,
  1279. coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c,
  1280. cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c,
  1281. cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
  1282. cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
  1283. cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
  1284. cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c,
  1285. cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c,
  1286. cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
  1287. cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c,
  1288. cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c,
  1289. cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c,
  1290. cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c,
  1291. cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c,
  1292. cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c,
  1293. demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c,
  1294. ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c,
  1295. elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
  1296. elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c,
  1297. elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c,
  1298. elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
  1299. elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
  1300. elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
  1301. elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c,
  1302. elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c,
  1303. elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c,
  1304. elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c,
  1305. elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c,
  1306. elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c,
  1307. elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h,
  1308. elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c,
  1309. elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c,
  1310. elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c,
  1311. elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
  1312. elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h,
  1313. elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c,
  1314. elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c,
  1315. elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
  1316. elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c,
  1317. epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h,
  1318. hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c,
  1319. hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
  1320. i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
  1321. i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
  1322. libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h,
  1323. libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h,
  1324. linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c,
  1325. m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c,
  1326. mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h,
  1327. newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c,
  1328. nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h,
  1329. ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c,
  1330. pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h,
  1331. pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h,
  1332. pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c,
  1333. pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c,
  1334. pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c,
  1335. reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c,
  1336. simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c,
  1337. srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c,
  1338. sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h,
  1339. trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c,
  1340. vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c,
  1341. xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c,
  1342. xtensa-modules.c: Likewise.
  1343. * elf32-sh-relocs.h: Add copyright notice.
  1344. * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h,
  1345. hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h,
  1346. hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h,
  1347. hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h,
  1348. hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h,
  1349. hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h,
  1350. hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h,
  1351. hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise.
  1352. * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
  1353. 2007-07-02 Joseph Myers <joseph@codesourcery.com>
  1354. * elfxx-mips.c (mips_elf_calculate_relocation): Handle
  1355. R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
  1356. * elf64-mips.c (mips_elf64_howto_table_rela): Support
  1357. R_MIPS_TLS_DTPREL64.
  1358. 2007-07-02 Alan Modra <amodra@bigpond.net.au>
  1359. * Makefile.am: Run "make dep-am".
  1360. * Makefile.in: Regenerate.
  1361. * aclocal.m4: Regenerate.
  1362. * config.in: Regenerate.
  1363. * po/SRC-POTFILES.in: Regenerate.
  1364. * po/bfd.pot: Regenerate.
  1365. 2007-07-02 Alan Modra <amodra@bigpond.net.au>
  1366. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
  1367. symsec != NULL tests.
  1368. 2007-07-02 Alan Modra <amodra@bigpond.net.au>
  1369. PR 4712
  1370. * elf.c (assign_file_positions_for_load_sections): Adjust lma
  1371. by p_vaddr_offset.
  1372. 2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
  1373. * aclocal.m4: Regenerated.
  1374. * Makefile.in: Likewise.
  1375. 2007-06-29 Joseph Myers <joseph@codesourcery.com>
  1376. * elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
  1377. (ppc_elf_merge_private_bfd_data): Call it.
  1378. 2007-06-29 Joseph Myers <joseph@codesourcery.com>
  1379. * elfxx-mips.c (mips_elf_merge_obj_attributes): New.
  1380. (_bfd_mips_elf_merge_private_bfd_data): Call it.
  1381. 2007-06-29 Joseph Myers <joseph@codesourcery.com>
  1382. * elf-attrs.c: New.
  1383. * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
  1384. (BFD32_BACKENDS_CFILES): Add elf-attrs.c.
  1385. (elf-attrs.lo): Generate dependencies.
  1386. * Makefile.in: Regenerate.
  1387. * configure.in (elf): Add elf-attrs.lo.
  1388. * configure: Regenerate.
  1389. * elf-bfd.h (struct elf_backend_data): Add entries for object
  1390. attributes.
  1391. (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
  1392. OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
  1393. Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
  1394. New.
  1395. (struct elf_obj_tdata): Add entries for object attributes.
  1396. (elf_known_obj_attributes, elf_other_obj_attributes,
  1397. elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
  1398. New.
  1399. (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
  1400. bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
  1401. bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
  1402. bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
  1403. bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
  1404. _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
  1405. _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
  1406. * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
  1407. (bfd_section_from_shdr): Handle attributes sections.
  1408. * elflink.c (bfd_elf_final_link): Handle attributes sections.
  1409. * elfxx-target.h (elf_backend_obj_attrs_vendor,
  1410. elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
  1411. elf_backend_obj_attrs_section_type): New.
  1412. (elfNN_bed): Update.
  1413. * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
  1414. aeabi_attribute_list): Remove.
  1415. (struct elf32_arm_obj_tdata): Remove object attributes fields.
  1416. (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
  1417. elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
  1418. Update for new object attributes interfaces.
  1419. (uleb128_size, is_default_attr, eabi_attr_size,
  1420. elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
  1421. elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
  1422. elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
  1423. elf32_arm_add_eabi_attr_int, attr_strdup,
  1424. elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
  1425. copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
  1426. to generic code in elf-attrs.c.
  1427. (elf32_arm_obj_attrs_arg_type): New.
  1428. (elf32_arm_fake_sections): Do not handle .ARM.attributes.
  1429. (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
  1430. (bfd_elf32_bfd_final_link): Remove.
  1431. (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
  1432. elf_backend_obj_attrs_arg_type,
  1433. elf_backend_obj_attrs_section_type): New.
  1434. * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
  1435. attributes.
  1436. * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
  1437. * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
  1438. * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
  1439. * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
  1440. * elf32-sh.c (sh_elf_copy_private_data): Likewise.
  1441. * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
  1442. 2007-06-29 Paul Brook <paul@codesourcery.com>
  1443. * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
  1444. call veneers for call relocations against undefined symbols.
  1445. (elf32_arm_final_link_relocate): Turn call to undefined symbol
  1446. into a jump to the next instruction.
  1447. 2007-06-29 Michael Snyder <msnyder@access-company.com>
  1448. * bfd.c (bfd_demangle): Plug memory leak (Coverity).
  1449. 2007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  1450. * Makefile.am: Add cr16 related entry
  1451. * Makefile.in: Regenerate
  1452. * archures.c: Add bfd_cr16_arch
  1453. * bfd-in2.h: Regenerate
  1454. * config.bfd: Add cr16-elf
  1455. * configure.in: Add bfd_elf32_cr16_vec
  1456. * configure: Regenerate.
  1457. * targets.c: Added cr16 related information
  1458. * cpu-cr16.c: New file.
  1459. * elf32-cr16.c: New file.
  1460. * reloc.c: Added cr16 relocs.
  1461. 2007-06-29 Alan Modra <amodra@bigpond.net.au>
  1462. * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
  1463. message for undefined version nodes.
  1464. (elf_gc_sweep): Don't warn when zero size sections are
  1465. removed.
  1466. 2007-06-29 Nathan Froyd <froydnj@codesourcery.com>
  1467. * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
  1468. types.
  1469. 2007-06-29 Alan Modra <amodra@bigpond.net.au>
  1470. * elf32-spu.c (spu_elf_fake_sections): New function.
  1471. (elf_backend_fake_sections): Define.
  1472. 2007-06-29 Alan Modra <amodra@bigpond.net.au>
  1473. * elf.c (assign_file_positions_for_load_sections): Use elf
  1474. section header sh_size rather than bfd section size, simplifying
  1475. .tbss handling.
  1476. 2007-06-29 Alan Modra <amodra@bigpond.net.au>
  1477. PR ld/4701
  1478. * elf.c (assign_file_positions_for_load_sections): Ensure bss
  1479. segments meet gABI alignment requirements. Don't allocate
  1480. file space for bss sections in a segment also containing file
  1481. or program headers.
  1482. 2007-06-27 Alan Modra <amodra@bigpond.net.au>
  1483. * bfd.c (struct bfd): Rename "next" to "archive_next".
  1484. * archive.c: Rename uses throughout file.
  1485. * archive64.c: Likewise.
  1486. * coff-rs6000.c: Likewise.
  1487. * ecoff.c: Likewise.
  1488. * som.c: Likewise.
  1489. * bfd-in2.h: Regenerate.
  1490. * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
  1491. input bfds.
  1492. * elf32-spu.c (spu_elf_create_sections): Likewise.
  1493. 2007-06-26 H.J. Lu <hongjiu.lu@intel.com>
  1494. * dwarf2.c (find_line): New. Contains the duplicated code from:
  1495. (_bfd_dwarf2_find_nearest_line): Use it.
  1496. (_bfd_dwarf2_find_line): Use it.
  1497. 2007-06-26 Joseph Myers <joseph@codesourcery.com>
  1498. * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
  1499. 2007-06-25 Richard Sandiford <richard@codesourcery.com>
  1500. * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
  1501. to be used for calls from MIPS16 code.
  1502. 2007-06-23 Andreas Schwab <schwab@suse.de>
  1503. * configure.in (--with-separate-debug-dir): New option.
  1504. * configure: Regenerate.
  1505. * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
  1506. * Makefile.in: Regenerate.
  1507. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
  1508. bfd_follow_gnu_debuglink.
  1509. (_bfd_dwarf2_find_line): Likewise.
  1510. 2007-06-22 Nick Clifton <nickc@redhat.com>
  1511. * dwarf2.c: Add support for reading in debug information via a
  1512. .gnu_debuglink section:
  1513. (struct dwarf2_debug): Add bfd field to record the bfd containing
  1514. the debug info.
  1515. (parse_comp_unit): Remove ABFD parameter. Instead use the bfd
  1516. field in the dwarf2_debug structure.
  1517. (_bfd_dwarf2_find_nearest_line): If a debug info section could not
  1518. be found in the current bfd call bfd_follow_gnu_debuglink to see
  1519. if another file contains the debug information. If it does, open
  1520. it and continue.
  1521. (_bfd_dwarf2_find_line): Likewise.
  1522. 2007-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1523. PR ld/4590
  1524. * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
  1525. when removing duplicated entries.
  1526. (get_dyn_sym_info): Initialize the got_offset field to -1.
  1527. Update call to sort_dyn_sym_info.
  1528. (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
  1529. array of addend and remove duplicates.
  1530. 2007-06-18 H.J. Lu <hongjiu.lu@intel.com>
  1531. * libpei.h (_bfd_XXi_final_link_postscript): Remove
  1532. duplication.
  1533. (bfd_target_pei_p): New.
  1534. (bfd_target_pei_arch): New
  1535. (bfd_target_efi_p): Likewise.
  1536. (bfd_target_efi_arch): New
  1537. (bfd_pe_executable_p): Use bfd_target_pei_p and
  1538. bfd_target_efi_p.
  1539. * peicode.h (arch_type): New enum.
  1540. (pe_arch): New function.
  1541. (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
  1542. if there is an EFI/PE target.
  1543. 2007-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1544. * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
  1545. * acinclude.m4: Don't include m4 files. Remove libtool
  1546. kludge.
  1547. * Makefile.in: Regenerated.
  1548. * aclocal.m4: Likewise.
  1549. * configure: Likewise.
  1550. 2007-06-11 Sterling Augustine <sterling@tensilica.com>
  1551. Bob Wilson <bob.wilson@acm.org>
  1552. * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
  1553. XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
  1554. (extend_ebb_bounds_backward, compute_text_actions): Likewise.
  1555. (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
  1556. (xtensa_get_property_predef_flags): Likewise.
  1557. (compute_removed_literals): Pass new arguments to is_removable_literal.
  1558. (is_removable_literal): Add sec, prop_table and ptblsize arguments.
  1559. Do not remove literal if the NO_TRANSFORM property flag is set.
  1560. 2007-05-31 Richard Sandiford <rsandifo@nildram.co.uk>
  1561. * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
  1562. type (3) single-GOT entry, read tls_type from the hash table entry
  1563. rather than the GOT entry.
  1564. 2007-06-01 Alan Modra <amodra@bigpond.net.au>
  1565. * simple.c (bfd_simple_get_relocated_section_contents): Init
  1566. input_bfds_tail.
  1567. 2007-05-30 Alan Modra <amodra@bigpond.net.au>
  1568. * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
  1569. created by objcopy --only-keep-debug.
  1570. (_bfd_elf_init_private_section_data): Only change elf_section_type
  1571. if it is SHT_NULL.
  1572. * elf.c (assign_file_positions_for_load_sections): Correct sh_type
  1573. to SHT_NOBITS earlier. Base actions in rest of function on sh_type
  1574. and sh_flags instead of bfd section flags. Delete voff and code
  1575. keeping nobits segments aligned.
  1576. 2007-05-25 Eric Christopher <echristo@apple.com>
  1577. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
  1578. Check that sym_sec isn't NULL before accessing.
  1579. 2007-05-24 Steve Ellcey <sje@cup.hp.com>
  1580. * Makefile.in: Regnerate.
  1581. * configure: Regenerate.
  1582. * aclocal.m4: Regenerate.
  1583. * doc/Makefile.in: Regenerate.
  1584. 2007-05-22 Paul Brook <paul@codesourcery.com>
  1585. * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
  1586. with sec and sec_shndx.
  1587. (elf32_arm_ouput_plt_map_sym): Use them.
  1588. (elf32_arm_output_arch_local_syms): Output mapping symbols for
  1589. interworking glue.
  1590. 2007-05-18 Paul Brook <paul@codesourcery.com>
  1591. * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
  1592. (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
  1593. (record_arm_to_thumb_glue): Add v5t non-pic glue.
  1594. (elf32_arm_create_thumb_stub): Ditto.
  1595. 2007-05-16 H.J. Lu <hongjiu.lu@intel.com>
  1596. Alan Modra <amodra@bigpond.net.au>
  1597. * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
  1598. section to the minimum alignment.
  1599. 2007-05-15 H.J. Lu <hongjiu.lu@intel.com>
  1600. Alan Modra <amodra@bigpond.net.au>
  1601. PR ld/4504
  1602. * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
  1603. * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
  1604. * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
  1605. _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
  1606. bss section.
  1607. * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
  1608. * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
  1609. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
  1610. * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
  1611. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
  1612. * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
  1613. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
  1614. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
  1615. * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  1616. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
  1617. * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
  1618. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
  1619. * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  1620. * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
  1621. * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  1622. * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
  1623. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
  1624. 2007-05-15 Richard Sandiford <richard@codesourcery.com>
  1625. * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
  1626. input_section argument. Create .rela.dyn relocations against
  1627. symbol 0 rather than the section symbol.
  1628. (mips_elf_local_got_index): Remove input_section argument.
  1629. Update call to mips_elf_create_local_got_entry.
  1630. (mips_elf_got_page, mips_elf_got16_entry): Likewise.
  1631. (mips_elf_calculate_relocation): Update calls to
  1632. mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
  1633. 2007-05-15 Mark Shinwell <shinwell@codesourcery.com>
  1634. * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
  1635. handle the Thumb-2 JUMP19 relocation.
  1636. 2007-05-15 Alan Modra <amodra@bigpond.net.au>
  1637. PR 4479
  1638. * elf.c (elf_fake_sections): Don't allow backend to change
  1639. SHT_NOBITS if called for strip/objcopy --only-keep-debug.
  1640. * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
  1641. fix from here.
  1642. 2007-05-14 Alan Modra <amodra@bigpond.net.au>
  1643. * elf.c (bfd_elf_string_from_elf_section): Return NULL on
  1644. invalid shstrndx.
  1645. (bfd_elf_get_str_section): Likewise.
  1646. 2007-05-12 Alan Modra <amodra@bigpond.net.au>
  1647. PR 4497
  1648. * elf-eh-frame.c (struct cie): Add "local_personality". Make
  1649. "personality" a union.
  1650. (cie_eq): Compare local_personality too. Adjust personality
  1651. comparison.
  1652. (_bfd_elf_discard_section_eh_frame): Check binding on personality
  1653. reloc sym to allow for bad symtab. Use stashed local syms rather
  1654. than reading personality local sym. Handle discarded sections.
  1655. 2007-05-12 Alan Modra <amodra@bigpond.net.au>
  1656. * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
  1657. 2007-05-11 Alan Modra <amodra@bigpond.net.au>
  1658. * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
  1659. (enum ppc_elf_plt_type): Move from..
  1660. * elf32-ppc.c: ..here.
  1661. (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
  1662. (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete
  1663. can_use_new_plt. Make is_vxworks a bitfield.
  1664. (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
  1665. (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd.
  1666. (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc
  1667. flags to better detect object files needing old bss-style plt.
  1668. Allow secure plt to be used without rel16 relocs being detected.
  1669. Warn if secure plt request cannot be allowed.
  1670. 2007-05-11 Alan Modra <amodra@bigpond.net.au>
  1671. * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
  1672. * elf-bfd.h (struct elf_backend_data): Change return type of
  1673. elf_backend_relocate_section to int.
  1674. * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
  1675. R_SPU_PPU64.
  1676. (spu_elf_bfd_to_reloc_type): Convert new relocs.
  1677. (spu_elf_count_relocs): New function.
  1678. (elf_backend_count_relocs): Define.
  1679. (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
  1680. R_SPU_PPU64 relocs.
  1681. * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
  1682. returns 2.
  1683. * bfd-in2.h: Regenerate.
  1684. * libbfd.h: Regenerate.
  1685. 2007-05-10 Richard Sandiford <richard@codesourcery.com>
  1686. * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
  1687. for R_ARM_ABS12 relocs.
  1688. (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
  1689. non-shared VxWorks PLT entries.
  1690. 2007-05-11 Alan Modra <amodra@bigpond.net.au>
  1691. PR 4454
  1692. * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
  1693. (_bfd_elf_discard_section_eh_frame): Handle local syms on
  1694. personality relocation.
  1695. 2007-05-10 Richard Sandiford <richard@codesourcery.com>
  1696. * elf.c (assign_file_positions_for_load_sections): Use p_memsz
  1697. rather than p_filesz to calculate the LMA of the end of a segment.
  1698. 2007-05-10 Jakub Jelinek <jakub@redhat.com>
  1699. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
  1700. processing if symbol is defined in the executable.
  1701. 2007-05-10 Alexandre Oliva <aoliva@redhat.com>
  1702. * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
  1703. (frvfdpic_elf_discard_info): New.
  1704. (elf_backend_discard_info): Define for FDPIC.
  1705. 2007-05-09 Mark Shinwell <shinwell@codesourcery.com>
  1706. * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
  1707. attempt to scan if the bfd doesn't correspond to an ELF image.
  1708. (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
  1709. 2007-05-08 Alexandre Oliva <aoliva@redhat.com>
  1710. * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
  1711. for which _bfd_elf_section_offset returns -1.
  1712. 2007-05-08 Alan Modra <amodra@bigpond.net.au>
  1713. * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
  1714. (mark_functions_via_relocs): Likewise.
  1715. 2007-05-07 Alan Modra <amodra@bigpond.net.au>
  1716. * elflink.c (bfd_elf_final_link): Correct reloc handling for
  1717. elf_backend_count_relocs.
  1718. (bfd_elf_discard_info): Print an error if we can't read syms.
  1719. 2007-05-07 Alan Modra <amodra@bigpond.net.au>
  1720. * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
  1721. invalid reloc code.
  1722. (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
  1723. (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
  1724. define.
  1725. 2007-05-07 Alan Modra <amodra@bigpond.net.au>
  1726. * elf.c (assign_file_positions_for_load_sections): Don't check
  1727. core segment.
  1728. 2007-05-04 H.J. Lu <hongjiu.lu@intel.com>
  1729. * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
  1730. and .rel.dyn aren't present.
  1731. 2007-05-04 Nick Clifton <nickc@redhat.com>
  1732. * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
  1733. sections are present examine the indirect sections in an attempt
  1734. to compute the correct relocation size. If there is any
  1735. ambiguity, produce an error and refuse to sort.
  1736. 2007-05-03 Sandra Loosemore <sandra@codesourcery.com>
  1737. * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
  1738. 2007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
  1739. Nick Clifton <nickc@redhat.com>
  1740. PR gas/3041
  1741. * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
  1742. in the same way as relocs against external symbols.
  1743. 2007-05-02 Alan Modra <amodra@bigpond.net.au>
  1744. * elf.c (assign_file_positions_for_load_sections): Set sh_offset
  1745. here. Set sh_type to SHT_NOBITS if we won't be allocating
  1746. file space. Don't bump p_memsz for non-alloc sections. Adjust
  1747. section-in-segment check.
  1748. (assign_file_positions_for_non_load_sections): Don't set sh_offset
  1749. here for sections that have already been handled above.
  1750. 2007-04-30 Alan Modra <amodra@bigpond.net.au>
  1751. * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
  1752. and emit_stack_syms bitfields.
  1753. (get_sym_h): Read all symbols if stack analysis will be done.
  1754. (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
  1755. params, and stash in hash table.
  1756. (is_hint): Split off from..
  1757. (is_branch): ..here. Adjust callers.
  1758. (spu_elf_size_stubs): Add stack_analysis param. Arrange to read
  1759. and keep all syms.
  1760. (write_one_stub): Fix mem leak.
  1761. (find_function_stack_adjust): New function.
  1762. (sort_syms_syms, sort_syms_psecs): New vars.
  1763. (sort_syms): New function.
  1764. (struct call_info, struct function_info): New.
  1765. (struct spu_elf_stack_info): New.
  1766. (alloc_stack_info, maybe_insert_function, func_name): New functions.
  1767. (is_nop, insns_at_end, check_function_ranges): Likewise.
  1768. (find_function, insert_callee, mark_functions_via_relocs): Likewise.
  1769. (pasted_function, interesting_section, discover_functions): Likewise.
  1770. (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
  1771. (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
  1772. (bfd_elf32_bfd_final_link): Define.
  1773. * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
  1774. (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
  1775. 2007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru>
  1776. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
  1777. memory which we might not own.
  1778. 2007-04-27 Bob Wilson <bob.wilson@acm.org>
  1779. * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
  1780. (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
  1781. (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
  1782. 2007-04-27 Bob Wilson <bob.wilson@acm.org>
  1783. * elf32-xtensa.c (xtensa_read_table_entries): Step through table
  1784. contents and relocs in parallel.
  1785. 2007-04-27 Bob Wilson <bob.wilson@acm.org>
  1786. * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
  1787. 2007-04-27 Alan Modra <amodra@bigpond.net.au>
  1788. * cpu-rs6000.c: Write Mimi's name in ASCII.
  1789. * coff-rs6000.c: Likewise.
  1790. * rs6000-core.c: Likewise.
  1791. 2007-04-27 Alan Modra <amodra@bigpond.net.au>
  1792. * sysdep.h: Include config.h first.
  1793. Many files: Include sysdep.h before bfd.h.
  1794. * Makefile.am: Run "make dep-am".
  1795. * Makefile.in: Regenerate.
  1796. 2007-04-25 Alan Modra <amodra@bigpond.net.au>
  1797. * sysdep.h: Revert last change.
  1798. 2007-04-24 Nick Clifton <nickc@redhat.com>
  1799. * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
  1800. * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
  1801. 2007-04-24 Alan Modra <amodra@bigpond.net.au>
  1802. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
  1803. eh_frame_hdr table won't be created.
  1804. 2007-04-24 Alan Modra <amodra@bigpond.net.au>
  1805. * acinclude.m4: Include config/stdint.m4.
  1806. * configure.in: Invoke GCC_HEADER_STDINT.
  1807. * sysdep.h: Don't include ansidecl.h here.
  1808. * configure: Regenerate.
  1809. * config.in: Regenerate.
  1810. * Makefile.in: Regenerate.
  1811. 2007-04-23 Nathan Sidwell <nathan@codesourcery.com>
  1812. * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
  1813. bfd_mach_mcf_isa_c_emac): New.
  1814. * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
  1815. elf_isac_plt_entry, elf_isac_plt_info): New.
  1816. (elf32_m68k_object_p): Add ISA_C.
  1817. (elf32_m68k_print_private_bfd_data): Print ISA_C.
  1818. (elf32_m68k_get_plt_info): Detect ISA_C.
  1819. * cpu-m68k.c (arch_info): Add ISAC.
  1820. (m68k_arch_features): Likewise,
  1821. (bfd_m68k_compatible): ISAs B & C are not compatible.
  1822. 2007-04-21 Nick Clifton <nickc@redhat.com>
  1823. * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
  1824. (ecoff_link_add_archive_symbols): Likewise.
  1825. * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
  1826. relent.howto.
  1827. * ieee.c (parse_int): Initialise x.
  1828. (must_parse_int): Initialise result.
  1829. (ieee_slurp_external_symbols): Initialise value.
  1830. 2007-04-21 Alan Modra <amodra@bigpond.net.au>
  1831. * config.bfd (spu-*-elf): Delete targ_selvecs.
  1832. 2007-04-19 Nick Clifton <nickc@redhat.com>
  1833. * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
  1834. 2007-04-19 Alan Modra <amodra@bigpond.net.au>
  1835. * bfd.c (bfd_demangle): New function.
  1836. * Makefile.am: Run "make dep-am".
  1837. * Makefile.in: Regenerate.
  1838. * bfd-in2.h: Regenerate.
  1839. 2007-04-18 Matthias Klose <doko@ubuntu.com>
  1840. * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
  1841. (bfdver.h): Use the date in non-release builds for the soversion.
  1842. * Makefile.in: Regenerate.
  1843. 2007-04-17 Paul Brook <paul@codesourcery.com>
  1844. * elf.c (_bfd_elf_is_function_type): New function.
  1845. * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
  1846. (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
  1847. is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
  1848. * elf-bfd.h (elf_backend_data): Add is_function_type.
  1849. (_bfd_elf_is_function_type): Add prototype.
  1850. * elfxx-target.h (elf_backend_is_function_type): Add default
  1851. definition.
  1852. (elfNN_bed): Add elf_backend_is_function_type.
  1853. * elf32-arm.c (elf32_arm_is_function_type): New function.
  1854. (elf_backend_is_function_type): Define.
  1855. 2007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
  1856. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
  1857. DT_MIPS_RLD_MAP before DT_DEBUG again.
  1858. 2007-04-14 Steve Ellcey <sje@cup.hp.com>
  1859. * Makefile.am: Add ACLOCAL_AMFLAGS.
  1860. * configure.in: Change macro call order.
  1861. * Makefile.in: Regnerate.
  1862. * doc/Makefile.in: Regenerate.
  1863. * configure: Regenerate.
  1864. 2007-04-14 Jakub Jelinek <jakub@redhat.com>
  1865. * elflink.c (bfd_elf_final_link): Don't free symbuf for
  1866. non-elf input bfds.
  1867. (bfd_elf_size_dynamic_sections): Don't access elf_section_data
  1868. for non-elf input bfds.
  1869. 2007-04-12 Richard Sandiford <richard@codesourcery.com>
  1870. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
  1871. DT_MIPS_RTLD_MAP for PIEs.
  1872. 2007-04-12 Richard Sandiford <richard@codesourcery.com>
  1873. * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
  1874. when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
  1875. in a read-only section.
  1876. (_bfd_mips_elf_check_relocs): Likewise.
  1877. 2007-04-12 Bob Wilson <bob.wilson@acm.org>
  1878. * elf32-xtensa.c (xtensa_is_insntable_section): New.
  1879. (xtensa_is_proptable_section): New.
  1880. (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
  1881. tables with 12-byte entries, as well as tables with 8-byte entries.
  1882. Sort the relocations before examining them.
  1883. (relax_property_section): Use xtensa_is_proptable_section and
  1884. xtensa_is_littable_section. Rewrite code for combining table entries
  1885. to be more robust in case of unexpected relocations. Do not set offset
  1886. of unused relocations to less than zero.
  1887. (xtensa_is_property_section): Use other functions instead of
  1888. duplicating section name comparisons.
  1889. (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
  1890. (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
  1891. 2007-04-12 Bob Wilson <bob.wilson@acm.org>
  1892. * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
  1893. from Xtensa property sections.
  1894. 2007-04-12 Alan Modra <amodra@bigpond.net.au>
  1895. * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
  1896. is non-NULL before dereferencing.
  1897. 2007-04-11 Nathan Sidwell <nathan@codesourcery.com>
  1898. * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
  1899. relocs too.
  1900. 2007-04-10 Richard Henderson <rth@redhat.com>
  1901. * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
  1902. (elf64_alpha_size_got_sections): Remove unused something_changed local.
  1903. (elf64_alpha_size_plt_section): Return void.
  1904. (elf64_alpha_size_rela_got_section): Likewise.
  1905. (elf64_alpha_relax_section): Only regenerate got+plt if the
  1906. relax_trip counter has changed.
  1907. 2007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
  1908. * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
  1909. * doc/Makefile.am (DOCFILES): Add bfdver.texi.
  1910. (bfdver.texi): New rule.
  1911. * Makefile.in, doc/Makefile.in: Regenerated.
  1912. 2007-04-03 Matt Thomas <matt@netbsd.org>
  1913. * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
  1914. in a shared object if it is not in a CODE section or if it is against
  1915. a section symbol. This allows DWARF2 to use pcrel format.
  1916. 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
  1917. PR ld/4304
  1918. * elflink.c (bfd_elf_final_link): Call einfo callback in
  1919. bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
  1920. warning.
  1921. 2007-04-05 Alan Modra <amodra@bigpond.net.au>
  1922. * elf32-spu.c (spu_elf_output_symbol_hook): New function.
  1923. (elf_backend_link_output_symbol_hook): Define.
  1924. 2007-04-02 Nick Clifton <nickc@redhat.com>
  1925. PR binutils/4292
  1926. * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
  1927. targets as 64-bit values, even if running on a 64-bit host.
  1928. * coffgen.c (coff_print_symbol): Likewise.
  1929. 2007-03-29 Nick Clifton <nickc@redhat.com>
  1930. PR binutils/4110
  1931. * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
  1932. (setup_group): Use it. Report corrupt group section headers.
  1933. (bfd_section_from_shdr): Use new macro. Replace constant 4 with
  1934. GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
  1935. (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
  1936. 2007-03-29 Alan Modra <amodra@bigpond.net.au>
  1937. PR ld/4267
  1938. * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
  1939. for rel->r_info values.
  1940. (bfd_elf_perform_complex_relocation): Likewise.
  1941. * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
  1942. unused entries. Don't clear plt.plist in loop.
  1943. 2007-03-28 Richard Sandiford <richard@codesourcery.com>
  1944. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
  1945. * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
  1946. Merge into...
  1947. (sparc_elf_append_rela): ...this new function.
  1948. (SPARC_ELF_APPEND_RELA): Delete.
  1949. (_bfd_sparc_elf_link_hash_table_create): Don't initialize
  1950. the deleted append_rela field.
  1951. (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
  1952. instead of SPARC_ELF_APPEND_RELA.
  1953. (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
  1954. elf_size_info structure to find the size of a RELA entry and
  1955. the associated swap-out function.
  1956. (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
  1957. (sparc_finish_dyn): ...this new function.
  1958. (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
  1959. 2007-03-28 Richard Sandiford <richard@codesourcery.com>
  1960. Phil Edwards <phil@codesourcery.com>
  1961. * doc/bfd.texinfo: Put the contents after the title page rather
  1962. than at the end of the document.
  1963. 2007-03-27 Andreas Schwab <schwab@suse.de>
  1964. * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
  1965. 2007-03-26 H.J. Lu <hongjiu.lu@intel.com>
  1966. * configure: Regenerated.
  1967. 2007-03-26 Alan Modra <amodra@bigpond.net.au>
  1968. * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
  1969. (allocate_spuear_stubs): New function.
  1970. (spu_elf_size_stubs): Call allocate_spuear_stubs.
  1971. 2007-03-26 Alan Modra <amodra@bigpond.net.au>
  1972. * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
  1973. * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
  1974. (MY (bfd_reloc_name_lookup)): New function.
  1975. * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
  1976. * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
  1977. (MY_bfd_reloc_name_lookup): Define.
  1978. * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
  1979. (MY_bfd_reloc_name_lookup): Define.
  1980. * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
  1981. (NAME (aout, reloc_name_lookup)): New function.
  1982. * bout.c (b_out_bfd_reloc_name_lookup): New function.
  1983. * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
  1984. (_bfd_ecoff_bfd_reloc_name_lookup): Define.
  1985. * coff-arm.c (coff_arm_reloc_name_lookup): New function.
  1986. (coff_bfd_reloc_name_lookup): Define.
  1987. * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
  1988. (coff_i386_reloc_name_lookup): New function.
  1989. * coff-i860.c (coff_i860_reloc_name_lookup): New function.
  1990. (coff_bfd_reloc_name_lookup): Define.
  1991. * coff-i960.c (coff_i960_reloc_name_lookup): New function.
  1992. (coff_bfd_reloc_name_lookup): Define.
  1993. * coff-m68k.c (m68k_reloc_name_lookup): New function.
  1994. (coff_bfd_reloc_name_lookup): Define.
  1995. * coff-maxq.c (maxq_reloc_name_lookup): New function.
  1996. (coff_bfd_reloc_name_lookup): Define.
  1997. * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
  1998. (coff_bfd_reloc_name_lookup): Define.
  1999. * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
  2000. (_bfd_ecoff_bfd_reloc_name_lookup): Define.
  2001. * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
  2002. (coff_bfd_reloc_name_lookup): Define.
  2003. * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
  2004. (_bfd_xcoff_reloc_name_lookup): New function.
  2005. (rs6000coff_vec, pmac_xcoff_vec): Init new field.
  2006. * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
  2007. (sh_coff_reloc_name_lookup): New function.
  2008. * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
  2009. (coff_bfd_reloc_name_lookup): Define.
  2010. * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
  2011. (tic30_coff_reloc_name_lookup): New function.
  2012. * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
  2013. (tic4x_coff_reloc_name_lookup): New function.
  2014. * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
  2015. (tic54x_coff_reloc_name_lookup): New function.
  2016. * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
  2017. (coff_amd64_reloc_name_lookup): New function.
  2018. * coff-z80.c (coff_z80_reloc_name_lookup): New function.
  2019. (coff_bfd_reloc_name_lookup): Define.
  2020. * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
  2021. (coff_bfd_reloc_name_lookup): Define.
  2022. * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
  2023. (xcoff64_reloc_name_lookup): New function.
  2024. (rs6000coff64_vec, aix5coff64_vec): Init new field.
  2025. * coffcode.h (coff_bfd_reloc_name_lookup): Define.
  2026. * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
  2027. * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2028. * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2029. * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2030. * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
  2031. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2032. * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2033. * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
  2034. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2035. * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
  2036. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2037. * elf32-cris.c (cris_reloc_name_lookup): New function.
  2038. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2039. * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
  2040. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2041. * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2042. * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2043. * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
  2044. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2045. * elf32-fr30.c (fr30_reloc_name_lookup): New function.
  2046. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2047. * elf32-frv.c (frv_reloc_name_lookup): New function.
  2048. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2049. * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
  2050. * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
  2051. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2052. * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
  2053. * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
  2054. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2055. * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
  2056. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2057. * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
  2058. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2059. * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
  2060. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2061. * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
  2062. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2063. * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
  2064. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2065. * elf32-m32c.c (m32c_reloc_name_lookup): New function.
  2066. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2067. * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2068. * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2069. * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2070. * elf32-m68k.c (reloc_name_lookup): New function.
  2071. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2072. * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
  2073. * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
  2074. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2075. * elf32-mep.c (mep_reloc_name_lookup): New function.
  2076. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2077. * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2078. (mips_vxworks_bfd_reloc_name_lookup): Likewise.
  2079. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2080. * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2081. * elf32-mt.c (mt_reloc_name_lookup): New function.
  2082. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2083. * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
  2084. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2085. * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2086. * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
  2087. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2088. * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
  2089. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2090. * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
  2091. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2092. * elf32-score.c (elf32_score_reloc_name_lookup): New function.
  2093. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2094. * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
  2095. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2096. * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
  2097. * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
  2098. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2099. * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
  2100. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2101. * elf32-vax.c (reloc_name_lookup): New function.
  2102. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2103. * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
  2104. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2105. * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
  2106. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2107. * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
  2108. (bfd_elf32_bfd_reloc_name_lookup): Define.
  2109. * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
  2110. (bfd_elf64_bfd_reloc_name_lookup): Define.
  2111. * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
  2112. * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
  2113. * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
  2114. * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
  2115. * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
  2116. (bfd_elf64_bfd_reloc_name_lookup): Define.
  2117. * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
  2118. (bfd_elf64_bfd_reloc_name_lookup): Define.
  2119. * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
  2120. (bfd_elf64_bfd_reloc_name_lookup): Define.
  2121. * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
  2122. * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
  2123. (bfd_elf64_bfd_reloc_name_lookup): Define.
  2124. * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
  2125. * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
  2126. (bfd_elfNN_bfd_reloc_name_lookup): Define.
  2127. * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
  2128. * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
  2129. * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
  2130. * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
  2131. * ieee.c (ieee_bfd_reloc_name_lookup): Define.
  2132. * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
  2133. * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
  2134. * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
  2135. (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
  2136. (MY(reloc_name_lookup)): New function.
  2137. * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
  2138. * oasys.c (oasys_bfd_reloc_name_lookup): Define.
  2139. * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
  2140. * pe-mips.c (coff_mips_reloc_name_lookup): New function.
  2141. (coff_bfd_reloc_name_lookup): Define.
  2142. * reloc.c (bfd_reloc_name_lookup): New function.
  2143. * riscix.c (riscix_reloc_name_lookup): New function.
  2144. (MY_bfd_reloc_name_lookup): Define.
  2145. * som.c (som_bfd_reloc_name_lookup): New function.
  2146. * targets.c (struct bfd_target): Add reloc_name_lookup.
  2147. (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
  2148. * versados.c (versados_bfd_reloc_name_lookup): Define.
  2149. * vms.c (vms_bfd_reloc_name_lookup): New function.
  2150. * bfd-in2.h: Regenerate.
  2151. * libbfd.h: Regenerate.
  2152. 2007-03-26 Thiemo Seufer <ths@mips.com>
  2153. PR ld/4208
  2154. * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
  2155. matching relocation is found.
  2156. (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
  2157. 2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
  2158. * configure: Regenerated.
  2159. 2007-03-23 Joseph Myers <joseph@codesourcery.com>
  2160. * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
  2161. * configure: Regenerate.
  2162. 2007-03-23 Alan Modra <amodra@bigpond.net.au>
  2163. * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
  2164. Remove input_sec param. Adjust all calls.
  2165. (write_one_stub): Adjust stub symbol.
  2166. (needs_ovl_stub): New function, extracted from..
  2167. (spu_elf_size_stubs): ..here.
  2168. (spu_elf_relocate_section): Use needs_ovl_stub.
  2169. 2007-03-22 Joseph Myers <joseph@codesourcery.com>
  2170. * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
  2171. if nonempty.
  2172. * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
  2173. * Makefile.in, configure, doc/Makefile.in: Regenerate.
  2174. 2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
  2175. PR ld/4210
  2176. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
  2177. address and virtual size of the last section for the image
  2178. size.
  2179. 2007-03-22 H.J. Lu <hongjiu.lu@intel.com>
  2180. PR ld/4007
  2181. * elf.c (assign_file_positions_for_load_sections): Check if
  2182. all sections are in the segment.
  2183. 2007-03-20 H.J. Lu <hongjiu.lu@intel.com>
  2184. PR ld/4208
  2185. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
  2186. matching LO16 relocation for HI16 relocation.
  2187. 2007-03-20 Paul Brook <paul@codesourcery.com>
  2188. * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
  2189. * bfd-in2.h: Regenerate.
  2190. * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
  2191. (record_arm_to_thumb_glue): Use globals->pic_veneer.
  2192. (elf32_arm_create_thumb_stub): Ditto.
  2193. (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
  2194. 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
  2195. * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
  2196. argument and extra last argument.
  2197. * bfd-in2.h: Regenerate.
  2198. * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
  2199. member.
  2200. (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
  2201. extra last argument. Set no_enum_size_warning appropriately.
  2202. (elf32_arm_merge_eabi_attributes): Improve enum sizes
  2203. diagnostic, suppressing it when no_enum_size_warning dictates.
  2204. 2007-03-20 Nick Clifton <nickc@redhat.com>
  2205. PR binutils/3535
  2206. * elf.c (copy_private_bfd_data): Widen the scope of Solaris
  2207. specific conditions that need the program headers to be
  2208. rewritten.
  2209. 2007-03-19 H.J. Lu <hongjiu.lu@intel.com>
  2210. * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
  2211. MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
  2212. SizeOfInitializedData, SizeOfUninitializedData,
  2213. AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
  2214. extra PE a.out header.
  2215. (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
  2216. (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
  2217. defined.
  2218. (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
  2219. defined.
  2220. (_bfd_XX_print_private_bfd_data_common): Also print Magic,
  2221. MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
  2222. SizeOfInitializedData, SizeOfUninitializedData,
  2223. AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
  2224. extra PE a.out header.
  2225. 2007-03-18 H.J. Lu <hongjiu.lu@intel.com>
  2226. * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
  2227. only if BFD64 is defined.
  2228. 2007-03-17 Alan Modra <amodra@bigpond.net.au>
  2229. * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
  2230. on setjmp calls.
  2231. 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
  2232. * doc/Makefile.in: Regenerated.
  2233. 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
  2234. * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
  2235. create doc/bfdver.texi.
  2236. * Makefile.in: Regenerated.
  2237. * configure.in (--with-bugurl): New option.
  2238. * configure: Regenerated.
  2239. * version.h (REPORT_BUGS_TO): New.
  2240. 2007-03-13 H.J. Lu <hongjiu.lu@intel.com>
  2241. PR binutils/3826
  2242. * elf-bfd.h (elf_backend_data): Add elf_osabi.
  2243. (_bfd_elf_set_osabi): New.
  2244. * elf.c (_bfd_elf_set_osabi): New.
  2245. * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
  2246. (elf_backend_post_process_headers): Defined with
  2247. _bfd_elf_set_osabi.
  2248. (ELF_OSABI): Properly defined for each target.
  2249. * elf32-i370.c (i370_elf_post_process_headers): Removed.
  2250. (ELF_OSABI): Defined.
  2251. (elf_backend_post_process_headers): Defined with
  2252. _bfd_elf_set_osabi.
  2253. * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
  2254. freebsd.
  2255. (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
  2256. * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
  2257. (ELF_OSABI): Defined.
  2258. (elf_backend_post_process_headers): Defined with
  2259. _bfd_elf_set_osabi.
  2260. * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
  2261. freebsd.
  2262. (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
  2263. elf_osabi.
  2264. * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
  2265. with elf_osabi.
  2266. (ELF_OSABI): Properly defined for each target.
  2267. (elf_backend_post_process_headers): Defined with
  2268. _bfd_elf_set_osabi for Linux.
  2269. * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
  2270. (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
  2271. (elf_backend_post_process_headers): Defined with
  2272. _bfd_elf_set_osabi.
  2273. * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
  2274. (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
  2275. (elf_backend_post_process_headers): Defined with
  2276. _bfd_elf_set_osabi.
  2277. * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
  2278. with any ELF target of the compatible machine for which we do not
  2279. have a specific backend.
  2280. * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
  2281. with elf_osabi.
  2282. * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
  2283. (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
  2284. 2007-03-08 Alan Modra <amodra@bigpond.net.au>
  2285. * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
  2286. V850_OTHER_* bits.
  2287. 2007-03-08 Alan Modra <amodra@bigpond.net.au>
  2288. * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
  2289. (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
  2290. Run "make dep-am".
  2291. * Makefile.in: Regenerate.
  2292. * po/SRC-POTFILES.in: Regenerate.
  2293. 2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
  2294. * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
  2295. (x86_64-*-kfreebsd*-gnu): Likewise.
  2296. (x86_64-*-netbsd*): Likewise.
  2297. (x86_64-*-openbsd*): Likewise.
  2298. (x86_64-*-linux-*): Likewise.
  2299. * configure.in: Support bfd_efi_app_x86_64_vec.
  2300. * configure: Regenerated.
  2301. * efi-app-x86_64.c: New file.
  2302. * targets.c (bfd_efi_app_x86_64_vec): New.
  2303. (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
  2304. 2007-03-07 Kai Tietz <kai.tietz@onevision.com>
  2305. * reloc.c (bfd_generic_get_relocated_section_contents): Remove
  2306. const for type reloc_howto_type.
  2307. 2007-03-07 Alan Modra <amodra@bigpond.net.au>
  2308. PR 3958
  2309. * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
  2310. (elf_discarded_section): Move..
  2311. * bfd-in.h: ..to here.
  2312. * bfd-in2.h: Regenerate.
  2313. * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
  2314. from discarded sections before relocate_section has done its job.
  2315. * reloc.c (bfd_generic_get_relocated_section_contents): Handle
  2316. relocs against symbols from discarded sections.
  2317. * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
  2318. SECREL32.
  2319. (elf_hppa_relocate_section): Handle relocatable link after setting
  2320. sec, sym, h etc. for final link. Squash error messages for
  2321. relocatable link. Clear section contents for relocs against
  2322. symbols in discarded sections, and zero reloc. Remove existing
  2323. zero r_symndx code.
  2324. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  2325. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  2326. * elf32-arm.c (elf32_arm_relocate_section): Likewise.
  2327. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  2328. * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
  2329. (bfin_relocate_section): Likewise.
  2330. * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
  2331. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  2332. * elf32-crx.c (elf32_crx_relocate_section): Likewise.
  2333. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  2334. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  2335. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  2336. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  2337. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  2338. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  2339. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  2340. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  2341. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  2342. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
  2343. * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
  2344. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  2345. * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
  2346. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  2347. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  2348. * elf32-mep.c (mep_elf_relocate_section): Likewise.
  2349. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  2350. * elf32-mt.c (mt_elf_relocate_section): Likewise.
  2351. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  2352. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  2353. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  2354. * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
  2355. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  2356. * elf32-spu.c (spu_elf_relocate_section): Likewise.
  2357. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  2358. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  2359. * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
  2360. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  2361. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  2362. * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
  2363. (elf64_alpha_relocate_section): Likewise.
  2364. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  2365. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  2366. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  2367. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  2368. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  2369. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  2370. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
  2371. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
  2372. * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
  2373. symbols for relocatable link. Don't use always-zero st_value.
  2374. (elf_backend_rela_normal): Don't define.
  2375. * elf32-bfin.c (bfinfdpic_relocate_section): Use
  2376. RELOC_FOR_GLOBAL_SYMBOL.
  2377. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  2378. * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
  2379. section symbol adjustments with same for relocatable link.
  2380. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  2381. * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
  2382. (elf32_m68hc11_check_relocs): ..to here.
  2383. * elf32-score.c (score_elf_final_link_relocate): Remove zero
  2384. r_symndx code.
  2385. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
  2386. 2007-03-07 Alan Modra <amodra@bigpond.net.au>
  2387. PR 4144
  2388. * elf.c (assign_file_positions_for_load_sections): Don't
  2389. adjust p_memsz for !SEC_LOAD section vma modulo page size.
  2390. Instead, use the same lma based adjustment for SEC_LOAD
  2391. sections.
  2392. 2007-03-01 Bob Wilson <bob.wilson@acm.org>
  2393. * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
  2394. (find_relaxable_sections): Do not increment src_count for unknown
  2395. opcodes. Decode only once instead of calling is_l32r_relocation.
  2396. (compute_text_actions): Remove unused no_insn_move flag. Assert that
  2397. src_next matches src_count in relax_info.
  2398. 2007-03-01 Joseph Myers <joseph@codesourcery.com>
  2399. * Makefile.am (bfdver.h): Use "." not " " between version number
  2400. and date.
  2401. * Makefile.in: Regenerate.
  2402. * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
  2403. * configure: Regenerate.
  2404. 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
  2405. * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
  2406. 2007-02-27 Alan Modra <amodra@bigpond.net.au>
  2407. * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
  2408. * elf32-spu.c (ovl_mgr_pread): Add const to casts.
  2409. 2007-02-23 Carlos O'Donell <carlos@codesourcery.com>
  2410. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
  2411. DWARF even with 64-bit addresses.
  2412. (_bfd_dwarf2_find_nearest_line): Likewise.
  2413. 2007-02-23 Nick Clifton <nickc@redhat.com>
  2414. PR binutils/3535
  2415. * elf.c (copy_private_bfd_data): Always rewrite the program
  2416. headers when a Solaris interpreter segment is involved.
  2417. 2007-02-22 Paul Brook <paul@codesourcery.com>
  2418. * elflink.c (gc_mark_hook_fn): Remove.
  2419. (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
  2420. (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
  2421. * elf-bfd.h (elf_gc_mark_hook_fn): Define.
  2422. (elf_backend_data): Add gc_mark_extra_sections.
  2423. * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
  2424. definition.
  2425. (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
  2426. * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
  2427. (elf_backend_gc_mark_extra_sections): Define.
  2428. 2007-02-21 Nick Clifton <nickc@redhat.com>
  2429. * elf.c (_bfd_elf_map_sections_to_segments): If the
  2430. override_segment_assignment callback is defined then call it.
  2431. 2007-02-21 Alan Modra <amodra@bigpond.net.au>
  2432. * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
  2433. 2007-02-19 Thiemo Seufer <ths@mips.com>
  2434. * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
  2435. translation marker from untranslatable strings.
  2436. 2007-02-19 Alan Modra <amodra@bigpond.net.au>
  2437. * elf-bfd.h (struct elf_backend_data): Add default_execstack.
  2438. * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
  2439. * elfxx-target.h (elf_backend_default_execstack): Define to 1.
  2440. (elfNN_bed): Init new field.
  2441. * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
  2442. 2007-02-17 Mark Mitchell <mark@codesourcery.com>
  2443. Nathan Sidwell <nathan@codesourcery.com>
  2444. Vladimir Prus <vladimir@codesourcery.com
  2445. Joseph Myers <joseph@codesourcery.com>
  2446. * configure.in (--with-pkgversion): New option.
  2447. * configure: Regenerate.
  2448. * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
  2449. * Makefile.in: Regenerate.
  2450. * version.h (BFD_VERSION_STRING): Define using
  2451. @bfd_version_package@.
  2452. 2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
  2453. * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
  2454. Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
  2455. and EF_MIPS_UCODE.
  2456. 2007-02-15 Alan Modra <amodra@bigpond.net.au>
  2457. * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
  2458. declare.
  2459. (_bfd_norelocs_canonicalize_reloc): Likewise.
  2460. * libbfd.h: Regenerate.
  2461. * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
  2462. (_bfd_norelocs_canonicalize_reloc): Likewise.
  2463. * binary.c (binary_bfd_reloc_type_lookup): Don't define.
  2464. (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
  2465. (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
  2466. * ihex.c: Similarly.
  2467. * mach-o-target.c: Similarly.
  2468. * mach-o.c: Similarly.
  2469. * mmo.c: Similarly.
  2470. * pef.c: Similarly.
  2471. * ppcboot.c: Similarly.
  2472. * srec.c: Similarly.
  2473. * xsym.c: Similarly.
  2474. 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
  2475. PR ld/3953
  2476. * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
  2477. when adding default symbol.
  2478. 2007-02-13 Alan Modra <amodra@bigpond.net.au>
  2479. * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
  2480. for branch lookup table.
  2481. 2007-02-12 Alan Modra <amodra@bigpond.net.au>
  2482. * elf64-ppc.c (create_linkage_sections): Don't create
  2483. .rela.rodata.brlt for --emit-relocs.
  2484. (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
  2485. (ppc_size_one_stub): Count them. Simplify test of stub type
  2486. when counting stub relocs. Set SEC_RELOC too.
  2487. (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
  2488. (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
  2489. 2007-02-12 Alan Modra <amodra@bigpond.net.au>
  2490. * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
  2491. with a zero symbol index.
  2492. 2007-02-12 Alan Modra <amodra@bigpond.net.au>
  2493. * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
  2494. 2007-02-05 Dave Brolley <brolley@redhat.com>
  2495. Stan Cox <scox@redhat.com>
  2496. PR ld/3972
  2497. * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
  2498. 2007-02-05 Dave Brolley <brolley@redhat.com>
  2499. Richard Sandiford <rsandifo@redhat.com>
  2500. Stan Cox <scox@redhat.com>
  2501. Nick Clifton <nickc@redhat.com>
  2502. DJ Delorie <dj@redhat.com>
  2503. Frank Ch. Eigler <fche@redhat.com>
  2504. Ben Elliston <bje@redhat.com>
  2505. Richard Henderson <rth@redhat.com>
  2506. * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
  2507. (ALL_MACHINES_CFILES): Add CPU_MEP.c.
  2508. (BFD32_BACKENDS): Add elf32-mep.lo.
  2509. (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
  2510. (cpu-mep.lo,elf32-mep.lo): New targets.
  2511. * archures.c (bfd_arch_mep): New enumerator.
  2512. (bfd_mach_mep, bfd_mach_mep_h1): New macros.
  2513. (bfd_mep_arch): New external variable.
  2514. (bfd_archures_list): Add bfd_mep_arch.
  2515. * config.bfd: Support mep-*-elf.
  2516. * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
  2517. * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
  2518. * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
  2519. declarations.
  2520. (_bfd_target_vector): Add bfd_elf32_mep_vec and
  2521. bfd_elf32_mep_little_vec.
  2522. * mep-relocs.pl: New file.
  2523. * cpu-mep.c: New file.
  2524. * elf32-mep.c: New file.
  2525. * bfd-in2.h: Regenerate.
  2526. * po/POTFILES.in: Regenerate.
  2527. * libbfd.h: Regenerate.
  2528. * Makefile.in: Regenerate.
  2529. * configure: Regenerate.
  2530. 2007-02-05 Dave Brolley <brolley@redhat.com>
  2531. * elflink.c (evaluate_complex_relocation_symbols): Check for
  2532. STT_SRELC for global symbols.
  2533. (perform_complex_relocations): Renamed to
  2534. perform_complex_relocation and now examines only one relocation.
  2535. (elf_link_input_bfd): Don't call perform_complex_relocations.
  2536. * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
  2537. * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
  2538. (OD,OS,OU): #undefs corrected to N, S and U repectively.
  2539. (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
  2540. (complex_reloc_installation_howto): Removed.
  2541. (mep_info_to_howto_rela): Remove special case for r_type==0xff.
  2542. (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
  2543. 2007-02-05 Dave Brolley <brolley@redhat.com>
  2544. Richard Sandiford <rsandifo@redhat.com>
  2545. DJ Delorie <dj@redhat.com>
  2546. Graydon Hoare <graydon@redhat.com>
  2547. Nick Clifton <nickc@cambridge.redhat.com>
  2548. Jeff Holcomb <jeffh@redhat.com>
  2549. Frank Ch. Eigler <fche@redhat.com>
  2550. * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
  2551. * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
  2552. * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
  2553. * elflink.c (set_symbolValue): New static function.
  2554. (resolve_symbol): Likewise.
  2555. (resolve_section): Likewise.
  2556. (undefined_reference): Likewise.
  2557. (eval_symbol): Likewise.
  2558. (evaluate_complex_relocation_symbols): Likewise.
  2559. (put_value): Likewise.
  2560. (get_value): Likewise.
  2561. (decode_complex_addend):
  2562. (bfd_elf_perform_complex_relocation): New function.
  2563. (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
  2564. * reloc.c (BFD_RELOC_RELC): New relocation number.
  2565. * syms.c (BSF_RELC,BSF_SRELC): New macros.
  2566. 2007-02-05 Bob Wilson <bob.wilson@acm.org>
  2567. * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
  2568. (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
  2569. (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
  2570. (elf_xtensa_allocate_got_size): Replace these with...
  2571. (elf_xtensa_allocate_dynrelocs): ...this new function.
  2572. (elf_xtensa_size_dynamic_sections): Use it.
  2573. 2007-02-05 Bob Wilson <bob.wilson@acm.org>
  2574. * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
  2575. <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
  2576. Set src_mask to zero.
  2577. <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
  2578. <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
  2579. 2007-02-02 Bob Wilson <bob.wilson@acm.org>
  2580. * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
  2581. (elf_xtensa_dynamic_symbol_p): ...this.
  2582. 2007-02-02 Bob Wilson <bob.wilson@acm.org>
  2583. * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
  2584. (struct elf_xtensa_link_hash_table): New.
  2585. (elf_xtensa_hash_table): New.
  2586. (elf_xtensa_link_hash_table_create): New.
  2587. (elf_xtensa_check_relocs): Update plt_reloc_count references.
  2588. Update arguments to add_extra_plt_sections.
  2589. (elf_xtensa_create_dynamic_sections): Record new sections in the hash
  2590. table. Update for plt_reloc_count and add_extra_plt_sections.
  2591. (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
  2592. argument with link info. Update calls to elf_xtensa_get_plt_section
  2593. and elf_xtensa_get_gotplt_section.
  2594. (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
  2595. (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
  2596. (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
  2597. (relax_property_section): Get sections from the hash table and update
  2598. function calls.
  2599. (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
  2600. dynobj argument with link info. Get sections for first plt chunk from
  2601. the hash table.
  2602. (bfd_elf32_bfd_link_hash_table_create): Define.
  2603. 2007-02-02 Jakub Jelinek <jakub@redhat.com>
  2604. * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
  2605. * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
  2606. (struct elf_symbol): Change first member into union.
  2607. (elf_sort_elf_symbol): Compare pointers to internal syms rather than
  2608. internal syms. Only compare st_shndx fields.
  2609. (elf_create_symbuf): New function.
  2610. (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
  2611. for bfds, use a binary search, otherwise don't qsort symbols
  2612. unnecessarily only to select which symbols are for the particular
  2613. shndx.
  2614. 2007-02-01 Nick Clifton <nickc@redhat.com>
  2615. PR ld/3852
  2616. * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
  2617. in the elf_link_hash_table structure.
  2618. 2007-02-01 Alan Modra <amodra@bigpond.net.au>
  2619. * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
  2620. * elfxx-target.h (elf_backend_write_core_note): Define and use.
  2621. * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
  2622. 32-bit core note on 64-bit target.
  2623. (elfcore_write_prstatus): Likewise.
  2624. (elfcore_write_lwpstatus): Make note_name const.
  2625. (elfcore_write_prfpreg): Likewise.
  2626. (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
  2627. target.
  2628. * elf32-ppc.c (ppc_elf_write_core_note): New function.
  2629. (elf_backend_write_core_note): Define.
  2630. * elf64-ppc.c (ppc64_elf_write_core_note): New function.
  2631. (elf_backend_write_core_note): Define.
  2632. 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
  2633. * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
  2634. (elf32_bed): Defined for elf32-us-cris.
  2635. * elf64-sh64.c (elf64_bed): Defined for Linux.
  2636. (INCLUDED_TARGET_FILE): Removed.
  2637. * elfxx-target.h (elfNN_bed): Always define. Don't check
  2638. INCLUDED_TARGET_FILE.
  2639. 2007-01-31 DJ Delorie <dj@redhat.com>
  2640. * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
  2641. message for dangerous relocs, special case the common user error.
  2642. 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
  2643. * elf.c (copy_elf_program_header): Start from the first section
  2644. in a segment and stop when all sections in a segment are
  2645. accounted for.
  2646. 2007-01-29 Julian Brown <julian@codesourcery.com>
  2647. * bfd-in2.h: Regenerate.
  2648. * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
  2649. instruction scanning should be done.
  2650. (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
  2651. (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
  2652. (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
  2653. prototype.
  2654. * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
  2655. argument.
  2656. * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
  2657. (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
  2658. (elf32_vfp11_erratum_type): New enum.
  2659. (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
  2660. veneers.
  2661. (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
  2662. (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
  2663. vfp11_fix and num_vfp11_fixes fields.
  2664. (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
  2665. vfp11_erratum_glue_size, num_vfp11_fixes fields.
  2666. (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
  2667. (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
  2668. glue section.
  2669. (elf32_arm_section_map_add): Add an code/data mapping symbol entry
  2670. to a section's map.
  2671. (record_vfp11_erratum_veneer): Create a single veneer, and its
  2672. associated symbols.
  2673. (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
  2674. (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
  2675. BFDs.
  2676. (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
  2677. required.
  2678. (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
  2679. (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
  2680. (bfd_arm_vfp11_write_mask): Update write mask according to coded
  2681. register number.
  2682. (bfd_arm_vfp11_antidependency): New function.
  2683. (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
  2684. (elf32_arm_compare_mapping): Declare.
  2685. (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
  2686. BFD for potential erratum-triggering insns. Record results.
  2687. (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
  2688. and branches to veneers have been placed in virtual memory after
  2689. layout.
  2690. (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
  2691. hash table.
  2692. (elf32_arm_output_symbol_hook): Remove.
  2693. (elf32_arm_write_section): Output veneers, and branches to veneers.
  2694. Use maps from input sections, not output sections, for code
  2695. byte-swapping.
  2696. * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
  2697. * elf32-score.c (_bfd_score_elf_write_section): Likewise.
  2698. * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
  2699. * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
  2700. 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
  2701. * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
  2702. (INCLUDED_TARGET_FILE): Removed.
  2703. 2007-01-27 Mike Frysinger <vapier@gentoo.org>
  2704. * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
  2705. (INCLUDED_TARGET_FILE): Remove.
  2706. 2007-01-25 DJ Delorie <dj@redhat.com>
  2707. * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
  2708. R_M32C_16 or R_M32C_24 relocs.
  2709. 2007-01-25 Nick Clifton <nickc@redhat.com>
  2710. PR binutils/3874
  2711. * elf32-avr.c (avr_link_hash_table): Check to make sure that the
  2712. hash table was created by elf32_avr_link_hash_table_create before
  2713. using it.
  2714. (elf32_avr_link_hash_newfunc): New function. Just pass the call
  2715. through to _bfd_elf_link_hash_newfunc.
  2716. (elf32_avr_link_hash_table_create): Use
  2717. elf32_avr_link_hash_newfunc instead of
  2718. _bfd_elf_link_hash_newfunc.
  2719. (elf32_avr_relocate_section): Check for the hash table pointer
  2720. being NULL.
  2721. (elf32_avr_relax_section, avr_build_one_stub,
  2722. elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
  2723. elf32_avr_build_stubs): Likewise.
  2724. 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
  2725. PR ld/3831
  2726. * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
  2727. argument, Elf_Internal_Sym *.
  2728. * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
  2729. symbol dynamic if info->dynamic_data is TRUE.
  2730. (bfd_elf_record_link_assignment): Updated call to
  2731. bfd_elf_record_link_assignment.
  2732. (_bfd_elf_merge_symbol): Likewise. Always call
  2733. bfd_elf_link_mark_dynamic_symbol.
  2734. 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
  2735. * Makefile.am (BFD_LIBS): Removed.
  2736. * Makefile.in: Regenerated.
  2737. 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
  2738. PR binutils/3631
  2739. * Makefile.am (OFILES): Add @bfd64_libs@.
  2740. (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
  2741. * Makefile.in: Regenerated.
  2742. * configure.in (bfd_libs): Replaced by ...
  2743. (bfd64_libs): This.
  2744. * configure: Regenerated.
  2745. 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
  2746. * elf.c (assign_file_positions_for_load_sections): We can
  2747. require fewer phdrs than expected.
  2748. 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
  2749. * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
  2750. * bfd-in2.h: Regenerate.
  2751. * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
  2752. bfd_mach_cpu32_fido.
  2753. (m68k_arch_features): Use fido_a instead of cpu32.
  2754. (bfd_m68k_compatible): Reject the combination of Fido and
  2755. ColdFire. Accept the combination of CPU32 and Fido with a
  2756. warning.
  2757. * elf32-m68k.c (elf32_m68k_object_p,
  2758. elf32_m68k_merge_private_bfd_data,
  2759. elf32_m68k_print_private_bfd_data): Treat Fido as an
  2760. architecture by itself.
  2761. 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
  2762. * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
  2763. 2007-01-05 Jakub Jelinek <jakub@redhat.com>
  2764. * texhex.c (first_phase): Don't fall through into the default
  2765. case.
  2766. (pass_over): Replace abort () calls with return FALSE. Fix
  2767. buffer overflow.
  2768. 2007-01-04 Jie Zhang <jie.zhang@analog.com>
  2769. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
  2770. SEC_EXCLUDE on zero size .eh_frame.
  2771. For older changes see ChangeLog-2006
  2772. Copyright (C) 2007 Free Software Foundation, Inc.
  2773. Copying and distribution of this file, with or without modification,
  2774. are permitted in any medium without royalty provided the copyright
  2775. notice and this notice are preserved.
  2776. Local Variables:
  2777. mode: change-log
  2778. left-margin: 8
  2779. fill-column: 74
  2780. version-control: never
  2781. End: