ChangeLog-2010 132 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568
  1. 2010-12-31 Robert Millan <rmh@gnu.org>
  2. * config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
  3. * configure.host: Likewise.
  4. * configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
  5. `bfd_elf32_ntradlittlemips_freebsd_vec',
  6. `bfd_elf32_tradbigmips_freebsd_vec',
  7. `bfd_elf32_tradlittlemips_freebsd_vec',
  8. `bfd_elf64_tradbigmips_freebsd_vec' and
  9. `bfd_elf64_tradlittlemips_freebsd_vec'.
  10. * configure: Regenerate.
  11. * elf32-mips.c: New target for FreeBSD support
  12. (same as traditional MIPS but overrides ELF_OSABI
  13. with ELFOSABI_FREEBSD).
  14. * elf64-mips.c: Likewise.
  15. * elfn32-mips.c: Likewise.
  16. * targets.c (_bfd_target_vector): Add
  17. `bfd_elf32_ntradbigmips_freebsd_vec',
  18. `bfd_elf32_ntradlittlemips_freebsd_vec',
  19. `bfd_elf32_tradbigmips_freebsd_vec',
  20. `bfd_elf32_tradlittlemips_freebsd_vec',
  21. `bfd_elf64_tradbigmips_freebsd_vec' and
  22. `bfd_elf64_tradlittlemips_freebsd_vec'.
  23. 2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
  24. * elfcode.h (NAME(elf,r_info)): New.
  25. (NAME(elf,r_sym)): Likewise.
  26. * elflink.c (elf64_r_info): Removed.
  27. (elf32_r_info): Likewise.
  28. (elf64_r_sym): Likewise.
  29. (elf32_r_sym): Likewise.
  30. 2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
  31. * elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
  32. (elf_backend_relocs_compatible): Defined to
  33. elf_x86_64_relocs_compatible.
  34. 2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
  35. * archures.c (bfd_mach_x64_32): New.
  36. (bfd_mach_x64_32_intel_syntax): Likewise.
  37. * bfd-in2.h: Regenerated.
  38. * config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
  39. i[3-7]86-*-linux-*.
  40. (targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
  41. * configure.in: Support bfd_elf32_x86_64_vec.
  42. * configure: Regenerated.
  43. * cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
  44. (bfd_x64_32_arch): Likewise.
  45. * elf-bfd.h (elf_append_rela): New prototype.
  46. (elf_append_rel): Likewise.
  47. (elf64_r_info): Likewise.
  48. (elf32_r_info): Likewise.
  49. (elf64_r_sym): Likewise.
  50. (elf32_r_sym): Likewise.
  51. * elf64-x86-64.c (ABI_64_P): New.
  52. (elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
  53. ELF32_R_TYPE. Replace ELF64_ST_TYPE with ELF_ST_TYPE.
  54. (elf_x86_64_check_tls_transition):Likewise.
  55. (elf_x86_64_check_relocs): Likewise.
  56. (elf_x86_64_gc_mark_hook):Likewise.
  57. (elf_x86_64_gc_sweep_hook): Likewise.
  58. (elf_x86_64_relocate_section): Likewise.
  59. (elf_x86_64_reloc_type_class): Likewise.
  60. (ELF_DYNAMIC_INTERPRETER): Renamed to ...
  61. (ELF64_DYNAMIC_INTERPRETER): This.
  62. (ELF32_DYNAMIC_INTERPRETER): New.
  63. (elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
  64. dynamic_interpreter and dynamic_interpreter_size.
  65. (elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
  66. htab->r_sym. Replace ELF64_R_INFO with htab->r_info.
  67. (elf_x86_64_get_local_sym_hash): Likewise.
  68. (elf_x86_64_check_tls_transition):Likewise.
  69. (elf_x86_64_check_relocs): Likewise.
  70. (elf_x86_64_gc_mark_hook):Likewise.
  71. (elf_x86_64_gc_sweep_hook): Likewise.
  72. (elf_x86_64_relocate_section): Likewise.
  73. (elf_x86_64_finish_dynamic_symbol): Likewise.
  74. (elf_x86_64_finish_local_dynamic_symbol): Likewise.
  75. (elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
  76. swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
  77. (elf_x86_64_check_relocs): Check ABI_64_P when requesting for
  78. PIC.
  79. (elf_x86_64_relocate_section): Likewise.
  80. (elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
  81. (Elf64_External_Rela) with bed->s->sizeof_rela.
  82. (elf64_x86_64_allocate_dynrelocs): Likewise.
  83. (elf64_x86_64_size_dynamic_sections): Likewise.
  84. (elf64_x86_64_finish_dynamic_symbol): Likewise.
  85. (elf64_x86_64_append_rela): Removed.
  86. (elf32_x86_64_elf_object_p): New.
  87. Add bfd_elf32_x86_64_vec.
  88. * elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
  89. (elf_x86_64_xxx): This.
  90. * elflink.c (bfd_elf_final_link): Check ELF file class on error.
  91. (elf_append_rela): New.
  92. (elf_append_rel): Likewise.
  93. (elf64_r_info): Likewise.
  94. (elf32_r_info): Likewise.
  95. (elf64_r_sym): Likewise.
  96. (elf32_r_sym): Likewise.
  97. * targets.c (bfd_elf32_x86_64_vec): New.
  98. (_bfd_target_vector): Add bfd_elf32_x86_64_vec.
  99. 2010-12-24 Alan Modra <amodra@gmail.com>
  100. * compress.c (decompress_contents): Style.
  101. (bfd_get_full_section_contents): Do not decompress directly into
  102. caller buffer or directly return cached section contents.
  103. Check malloc return for compressed_buffer.
  104. 2010-12-21 Kai Tietz <kai.tietz@onevision.com>
  105. * peXXigen.c (_bfd_XXi_final_link_postscript): Use
  106. bfd_get_symbol_leading_char to determine "_tls_used" name.
  107. 2010-12-21 Pierre Muller <muller@ics.u-strasbg.fr>
  108. * peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
  109. for windows 64-bit TLS table size.
  110. 2010-12-16 DJ Delorie <dj@redhat.com>
  111. * reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
  112. (BFD_RELOC_RX_ABS32_REV): Add.
  113. * bfd-in2.h: Regenerate.
  114. * libbfd.h: Regenerate.
  115. * elf32-rx.c (rx_reloc_map): Add them.
  116. 2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
  117. * elf.c (_bfd_elf_new_section_hook): Special handling for
  118. .init_array/.fini_array output sections.
  119. 2010-12-13 Alan Modra <amodra@gmail.com>
  120. * aoutx.h (aout_link_check_ar_symbols): Formatting.
  121. * cofflink.c (coff_link_check_ar_symbols): Likewise.
  122. * elflink.c (elf_link_add_archive_symbols): Likewise.
  123. * pdp11.c (aout_link_check_ar_symbols): Likewise.
  124. * xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
  125. xcoff_link_check_dynamic_ar_symbols): Likewise.
  126. * aoutx.h (aout_link_check_archive_element): Simplify code dealing
  127. with add_archive_element substitute BFD.
  128. * cofflink.c (coff_link_check_archive_element): Likewise.
  129. * ecoff.c (ecoff_link_check_archive_element): Likewise.
  130. (ecoff_link_add_archive_symbols): Likewise.
  131. * linker.c (generic_link_check_archive_element): Likewise.
  132. * pdp11.c (aout_link_check_archive_element): Likewise.
  133. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
  134. * xcofflink.c (xcoff_link_check_archive_element): Likewise.
  135. * aoutx.h (aout_link_check_archive_element): Free symbols from old
  136. bfd if !keep_memory.
  137. * cofflink.c (coff_link_check_archive_element): Likewise.
  138. * pdp11.c (aout_link_check_archive_element): Likewise.
  139. * xcofflink.c (xcoff_link_check_archive_element): Likewise.
  140. 2010-12-13 Alan Modra <amodra@gmail.com>
  141. * plugin.c (bfd_plugin_mkobject): Delete.
  142. (plugin_vec): Use bfd_false instead.
  143. 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
  144. * elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
  145. 2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
  146. * elf.c (special_sections_g): Add ".gnu.lto_".
  147. 2010-12-10 Alan Modra <amodra@gmail.com>
  148. * config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
  149. Add aix5coff64_vec to powerpc ELF entries.
  150. 2010-12-09 Mike Frysinger <vapier@gentoo.org>
  151. * .gitignore: New file.
  152. 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  153. PR ld/12288
  154. * plugin.c (message): Add putchar for the trailing `\n'.
  155. 2010-12-04 Mike Frysinger <vapier@gentoo.org>
  156. * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
  157. (PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
  158. * Makefile.in: Regenerated.
  159. 2010-12-04 Alan Modra <amodra@gmail.com>
  160. PR ld/12277
  161. * elflink.c (elf_link_output_extsym): Set bfd_error on symbol
  162. and section errors. Allow better translation of error messages.
  163. 2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
  164. * elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
  165. srelgot, splt, srelplt.
  166. (create_got_section, elf32_arm_link_hash_table_create): Don't set them.
  167. (elf32_arm_create_dynamic_sections): Likewise. Use htab->root
  168. fields instead.
  169. (arm_type_of_stub): Use the root fields instead of the removed ones.
  170. (cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
  171. (bfd_elf32_arm_process_before_allocation): Likewise.
  172. (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
  173. (elf32_arm_size_dynamic_sections): Likewise.
  174. (elf32_arm_output_arch_local_syms): Likewise.
  175. (elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
  176. htab fields instead of looking them up by name. Consistently use
  177. these local variables instead of htab fields.
  178. (elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
  179. Use srelbss instead of looking it up by name.
  180. (elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
  181. instead of looking up the symbols by name. Use the root fields
  182. instead of the removed ones.
  183. 2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
  184. * elf32-arm.c (elf32_arm_relocs_copied): Delete.
  185. (elf32_arm_link_hash_entry): Replace relocs_copied with dyn_relocs.
  186. (elf32_arm_link_hash_newfunc): Update accordingly.
  187. (elf32_arm_copy_indirect_symbol, elf32_arm_gc_sweep_hook): Likewise.
  188. (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
  189. (elf32_arm_readonly_dynrelocs): Likewise.
  190. (elf32_arm_size_dynamic_sections): Likewise.
  191. 2010-12-02 Paul Koning <ni1d@arrl.net>
  192. * pdp11.c (aout_link_add_symbols): Ignore debug symbols.
  193. 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
  194. * config.bfd: Add sparc64-rtems.
  195. 2010-11-25 Alan Modra <amodra@gmail.com>
  196. * po/es.po: Update.
  197. * po/fi.po: Update.
  198. * po/fr.po: Update.
  199. * po/ja.po: Update.
  200. * po/zh_CN.po: Update.
  201. 2010-11-24 Joel Brobecker <brobecker@adacore.com>
  202. * Makefile.am (OPTIONAL_BACKENDS): Add rs6000-core.lo.
  203. (OPTIONAL_BACKENDS_CFILES): Add rs6000-core.c.
  204. * Makefile.in: Regenerate.
  205. 2010-11-24 Alan Modra <amodra@gmail.com>
  206. PR ld/12253
  207. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct
  208. DW_EH_PE_datarel handling. Truncate .eh_frame_hdr address to
  209. ptr_size.
  210. 2010-11-23 Mingming Sun <mingm.sun@gmail.com>
  211. * elfxx-mips.c (mips_set_isa_flags): Move bfd_mach_loongson_3a
  212. after bfd_mach_mips_sb1.
  213. 2010-11-17 Tristan Gingold <gingold@adacore.com>
  214. * vms-lib.c (vms_write_index): Add comments.
  215. Partially revert previous patch. Free blocks later.
  216. 2010-11-17 Nick Clifton <nickc@redhat.com>
  217. PR ld/12161
  218. * elf32-avr.c (elf32_avr_check_relocs): Delete.
  219. (elf_backend_check_relocs): Delete.
  220. 2010-11-16 Jie Zhang <jie.zhang@analog.com>
  221. * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
  222. (elf32_bfin_data_in_l1): New variable.
  223. (elf32_bfin_final_write_processing): New.
  224. (elf_backend_final_write_processing): Define.
  225. 2010-11-15 Mike Frysinger <vapier@gentoo.org>
  226. PR binutils/12177
  227. * elf32-bfin.c (_bfin_create_got_section): Drop unused flags code.
  228. 2010-11-12 H.J. Lu <hongjiu.lu@intel.com>
  229. * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
  230. BFD_DECOMPRESS.
  231. (bfd_openr_next_archived_file): Revert the last change.
  232. 2010-11-11 Mingming Sun <mingm.sun@gmail.com>
  233. * archures.c (bfd_mach_mips_loongson_3a): Defined.
  234. * bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
  235. * cpu-mips.c (I_loongson_3a): New add.
  236. (arch_info_struct): Add loongson_3a.
  237. * elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
  238. (mips_set_isa_flags): Add loongson_3a.
  239. (mips_mach_extensions): Add loongson_3a in MIPS64 extensions.
  240. 2010-11-10 Richard Sandiford <richard.sandiford@linaro.org>
  241. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
  242. variables.
  243. 2010-11-10 Nick Clifton <nickc@redhat.com>
  244. * po/ja.po: Updated Japanese translation.
  245. * po/ru.po: Updated Russian translation.
  246. 2010-11-08 Nick Clifton <nickc@redhat.com>
  247. * po/ja.po: Updated Japanese translation.
  248. 2010-11-08 Alan Modra <amodra@gmail.com>
  249. * hash.c (bfd_hash_hash): Extract from..
  250. (bfd_hash_lookup): ..here.
  251. (bfd_hash_rename): New function.
  252. * section.c (bfd_rename_section): New function.
  253. * bfd-in.h (bfd_hash_rename): Declare.
  254. * bfd-in2.h: Regenerate.
  255. * elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
  256. when compressing or decompressing. Don't assert name match.
  257. * elf64-hppa.c (get_reloc_section): Don't assert name match.
  258. * elfxx-ia64.c (get_reloc_section): Likewise.
  259. 2010-11-05 Joseph Myers <joseph@codesourcery.com>
  260. * elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
  261. (elf32_tic6x_merge_attributes): Use
  262. _bfd_elf_merge_unknown_attribute_low and
  263. _bfd_elf_merge_unknown_attribute_list.
  264. (elf_backend_obj_attrs_handle_unknown): Define.
  265. 2010-11-05 Joseph Myers <joseph@codesourcery.com>
  266. * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
  267. _bfd_elf_merge_unknown_attribute_list): Correct test for matching
  268. string attributes.
  269. 2010-11-05 Tristan Gingold <gingold@adacore.com>
  270. * po/bfd.pot: Regenerate
  271. 2010-11-05 Tristan Gingold <gingold@adacore.com>
  272. * configure.in: Bump version to 2.21.51
  273. * configure: Regenerate.
  274. 2010-11-04 Maciej W. Rozycki <macro@codesourcery.com>
  275. PR ld/10144
  276. * elfxx-mips.c (_bfd_mips_elf_check_relocs)
  277. [R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
  278. SEC_DEBUGGING sections.
  279. 2010-11-04 Tristan Gingold <gingold@adacore.com>
  280. * vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
  281. Use bfd_zmalloc instead of bfd_malloc. Fix comment.
  282. 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
  283. * coffcode.h (GNU_LINKONCE_WT): New.
  284. (sec_to_styp_flags): Add handling of new debug
  285. section.
  286. (styp_to_sec_flags): Likewise.
  287. 2010-11-04 Tristan Gingold <gingold@adacore.com>
  288. * makefile.vms (CFLAGS): Make badalias warnings informational.
  289. * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
  290. 2010-11-04 Joseph Myers <joseph@codesourcery.com>
  291. * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
  292. _bfd_elf_merge_unknown_attribute_list): New.
  293. * elf-bfd.h (struct elf_backend_data): Add
  294. obj_attrs_handle_unknown.
  295. (_bfd_elf_merge_unknown_attribute_low,
  296. _bfd_elf_merge_unknown_attribute_list): Declare.
  297. * elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New. Split
  298. out from elf32_arm_merge_eabi_attributes.
  299. (elf32_arm_merge_eabi_attributes): Use
  300. _bfd_elf_merge_unknown_attribute_low and
  301. _bfd_elf_merge_unknown_attribute_list.
  302. (elf_backend_obj_attrs_handle_unknown): Define.
  303. * elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
  304. (elfNN_bed): Update initializer.
  305. 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
  306. * bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
  307. * bfd-in2.h: Regenerated.
  308. 2010-11-02 Joseph Myers <joseph@codesourcery.com>
  309. * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
  310. Tag_ABI_compatibility, treat odd tags as strings and even ones as
  311. integers.
  312. (elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
  313. elf32_tic6x_array_alignment_to_tag): New.
  314. (elf32_tic6x_merge_attributes): Handle more attributes. Set type
  315. for merged attributes.
  316. (elf_backend_obj_attrs_order): Define.
  317. 2010-10-29 Maciej W. Rozycki <macro@codesourcery.com>
  318. * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
  319. 2010-10-29 Pawel Sikora <pluto@pld-linux.org>
  320. PR binutils/12075
  321. * compress.c (bfd_compress_section_contents): Use uLong on
  322. compressed_size.
  323. 2010-10-29 Joseph Myers <joseph@codesourcery.com>
  324. * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
  325. Tag_ABI_compatibility not Tag_compatibility.
  326. (elf32_tic6x_merge_attributes): Update compatibility attribute
  327. name in comment. Return FALSE if merging common attributes fails.
  328. 2010-10-29 Nick Clifton <nickc@redhat.com>
  329. PR bintils/6962
  330. * coffcode.h (handle_COMDAT): Only check the base type when
  331. looking for a section symbol.
  332. 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
  333. Cary Coutant <ccoutant@google.com>
  334. * archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
  335. and BFD_DECOMPRESS.
  336. * bfd.c (BFD_COMPRESS): New.
  337. (BFD_DECOMPRESS): Likewise.
  338. (BFD_FLAGS_SAVED): Likewise.
  339. (bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
  340. * compress.c (bfd_uncompress_section_contents): Removed.
  341. (get_uncompressed_size): New.
  342. (decompress_contents): Likewise.
  343. (bfd_compress_section_contents): Likewise.
  344. (bfd_get_full_section_contents): Likewise.
  345. (bfd_is_section_compressed): Likewise.
  346. (bfd_init_section_decompress_status): Likewise.
  347. (bfd_init_section_compress_status): Likewise.
  348. * dwarf2.c (dwarf_debug_sections): New.
  349. (dwarf_debug_section_enum): Likewise.
  350. (read_section): Remove section_name and compressed_section_name.
  351. Add dwarf_debug_section_enum. Try compressed debug section.
  352. (read_indirect_string): Updated.
  353. (read_abbrevs): Likewise.
  354. (decode_line_info): Likewise.
  355. (read_debug_ranges): Likewise.
  356. (find_line): Updated.
  357. * ecoff.c (bfd_debug_section): Add compress_status and
  358. compressed_size.
  359. * elf.c (_bfd_elf_make_section_from_shdr): Call
  360. bfd_is_section_compressed to check if a DWARF debug section is
  361. compressed. Call bfd_init_section_compress_status or
  362. bfd_init_section_decompress_status if needed.
  363. * elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
  364. with bfd_get_full_section_contents.
  365. * merge.c (_bfd_add_merge_section): Likewise.
  366. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
  367. * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
  368. * elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
  369. BFD_DECOMPRESS.
  370. (TARGET_LITTLE_SYM): Likewise.
  371. * libbfd-in.h (dwarf_debug_section): New.
  372. (dwarf_debug_sections): Likewise.
  373. * libbfd.c (_bfd_generic_get_section_contents): Issue an error
  374. when getting contents on compressed/decompressed section.
  375. * section.c (COMPRESS_SECTION_NONE): New.
  376. (COMPRESS_SECTION_DONE): Likewise.
  377. (DECOMPRESS_SECTION_SIZED): Likewise.
  378. (BFD_FAKE_SECTION): Add compress_status and compressed_size.
  379. (bfd_malloc_and_get_section): Replace bfd_get_section_contents
  380. with bfd_get_full_section_contents.
  381. * bfd-in2.h: Regenerated.
  382. * libbfd.h: Likewise.
  383. 2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
  384. Joseph Myers <joseph@codesourcery.com>
  385. * elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
  386. of DSBT attributes.
  387. 2010-10-25 Daniel Jacobowitz <dan@codesourcery.com>
  388. * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
  389. _bfd_clear_contents. Pass it the input section.
  390. * libbfd-in.h (_bfd_clear_contents): Add input_section argument.
  391. * libbfd.h: Regenerate.
  392. * reloc.c (_bfd_clear_contents): Take input_section argument.
  393. Use non-zero for .debug_ranges.
  394. (bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
  395. call.
  396. * elf32-arm.c (elf32_arm_relocate_section): Use
  397. RELOC_AGAINST_DISCARDED_SECTION.
  398. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  399. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  400. * elf32-arm.c (elf32_arm_relocate_section): Likewise.
  401. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  402. * elf32-bfin.c (bfin_relocate_section): Likewise.
  403. (bfinfdpic_relocate_section): Likewise.
  404. * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
  405. * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
  406. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  407. * elf32-crx.c (elf32_crx_relocate_section): Likewise.
  408. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  409. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  410. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  411. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  412. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  413. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  414. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  415. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  416. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
  417. * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
  418. * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
  419. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  420. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
  421. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  422. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  423. * elf32-mep.c (mep_elf_relocate_section): Likewise.
  424. * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
  425. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  426. * elf32-mt.c (mt_elf_relocate_section): Likewise.
  427. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  428. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  429. * elf32-rx.c (rx_elf_relocate_section): Likewise.
  430. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  431. * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
  432. * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
  433. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  434. * elf32-spu.c (spu_elf_relocate_section): Likewise.
  435. * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
  436. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  437. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  438. * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
  439. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  440. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  441. * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
  442. (elf64_alpha_relocate_section): Likewise.
  443. * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
  444. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  445. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  446. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  447. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  448. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  449. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
  450. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
  451. 2010-10-25 Nathan Sidwell <nathan@codesourcery.com>
  452. * elf32-tic6x.c: Add attribution.
  453. 2010-10-25 Alan Modra <amodra@gmail.com>
  454. * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
  455. var warning at -O3.
  456. 2010-10-25 Alan Modra <amodra@gmail.com>
  457. * opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
  458. * libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
  459. * libbfd.h: Regenerate
  460. * bfd-in2.h: Regenerate.
  461. 2010-10-25 Alan Modra <amodra@gmail.com>
  462. * opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
  463. (bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
  464. (_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
  465. (bfd_create): Doc fix.
  466. * bfd-in2.h: Regenerate.
  467. 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  468. * elfxx-sparc.c (tpoff): Define bed, static_tls_size.
  469. Consider static_tls_alignment.
  470. * elf32-sparc.c (TARGET_BIG_SYM): Redefine to
  471. bfd_elf32_sparc_sol2_vec.
  472. (TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
  473. (elf32_bed): Redefine to elf32_sparc_sol2_bed.
  474. (elf_backend_static_tls_alignment): Redefine to 8.
  475. Include elf32-target.h.
  476. (elf_backend_static_tls_alignment): Undef again for VxWorks.
  477. * elf64-sparc.c (TARGET_BIG_SYM): Redefine to
  478. bfd_elf64_sparc_sol2_vec.
  479. (TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
  480. (ELF_OSABI): Undef.
  481. (elf64_bed): Redefine to elf64_sparc_sol2_bed.
  482. (elf_backend_static_tls_alignment): Redefine to 16.
  483. Include elf64-target.h.
  484. * config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
  485. Set targ_defvec to bfd_elf32_sparc_sol2_vec.
  486. [BFD64] (sparc-*-solaris2*): Set targ_defvec to
  487. bfd_elf32_sparc_sol2_vec.
  488. Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
  489. targ_selvecs.
  490. * configure.in: Handle bfd_elf32_sparc_sol2_vec,
  491. bfd_elf64_sparc_sol2_vec.
  492. * configure: Regenerate.
  493. * targets.c (bfd_elf32_sparc_sol2_vec): Declare.
  494. (bfd_elf64_sparc_sol2_vec): Declare.
  495. (_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
  496. bfd_elf64_sparc_sol2_vec.
  497. 2010-10-21 Joseph Myers <joseph@codesourcery.com>
  498. * elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
  499. attribute renaming.
  500. (elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".
  501. 2010-10-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  502. * elf-bfd.h (struct elf_backend_data): New member
  503. static_tls_alignment.
  504. * elfxx-target.h (elf_backend_static_tls_alignment): Provide
  505. default.
  506. (elfNN_bed): Initialize static_tls_alignment.
  507. * elflink.c (bfd_elf_final_link): Don't round end of TLS section
  508. if static TLS has special alignment requirements.
  509. * elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
  510. Consider static_tls_alignment.
  511. (elf_backend_static_tls_alignment): Redefine for Solaris 2.
  512. Undef again for VxWorks.
  513. * elf64-x86-64.c (elf64_x86_64_tpoff): Define bed,
  514. static_tls_size.
  515. Consider static_tls_alignment.
  516. (elf_backend_static_tls_alignment): Redefine for Solaris 2.
  517. Undef again for Intel L1OM.
  518. 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
  519. Apply LD plugin patch series (part 6/6).
  520. * aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
  521. parameter and pass it when invoking add_archive_element callback.
  522. (aout_link_check_archive_element): Handle substitute bfd if it
  523. was set during add_archive_element callback in the above.
  524. * cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
  525. parameter and pass it when invoking add_archive_element callback.
  526. (coff_link_check_archive_element): Handle substitute bfd if it
  527. was set during add_archive_element callback in the above.
  528. * ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
  529. code factored-out from ecoff_link_check_archive_element.
  530. (reread_ext_syms_and_strs): Clear old symbols and call it.
  531. (ecoff_link_check_archive_element): Use the above. Handle substitute
  532. BFD if one is set by add_archive_element callback.
  533. (ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
  534. * elflink.c (elf_link_add_archive_symbols): Likewise.
  535. * linker.c (generic_link_check_archive_element): Likewise.
  536. * pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
  537. parameter and pass it when invoking add_archive_element callback.
  538. (aout_link_check_archive_element): Handle substitute bfd if it was
  539. set during add_archive_element callback in the above.
  540. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
  541. BFD if one is set by add_archive_element callback.
  542. * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
  543. reference parameter and pass it when invoking add_archive_element
  544. callback.
  545. (xcoff_link_check_ar_symbols): Likewise.
  546. (xcoff_link_check_archive_element): Handle bfd substitution if it was
  547. set by callback in the above.
  548. 2010-10-11 Alan Modra <amodra@gmail.com>
  549. * elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
  550. (elf32_frvfdpic_finish_dynamic_sections): Don't crash on
  551. __ROFIXUP_END__ defined in shared lib.
  552. 2010-10-11 Thomas Schwinge <thomas@codesourcery.com>
  553. * elf32-arm.c (elf32_arm_final_link_relocate)
  554. (elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
  555. 2010-10-11 Dave Korn <dave.korn.cygwin@gmail.com>
  556. * elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
  557. "output_rel_hdr".
  558. 2010-10-09 John Tytgat <john@bass-software.com>
  559. * reloc.c (BFD_RELOC_ARM_HVC): Add.
  560. * libbfd.h: Regenerate.
  561. 2010-10-08 Kai Tietz <kai.tietz@onevision.com>
  562. * pei-x86_64.c (find_next_xdata_or_end): Removed.
  563. (pex64_dump_xdata): Remove arguments stop, onaline,
  564. and pdata. New argument endx. Print term "none"
  565. instead of misleading "CFA".
  566. (sort_xdata_arr): New function.
  567. (pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
  568. instead of searching quadratic.
  569. 2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
  570. Alan Modra <amodra@gmail.com>
  571. Fix build with -DDEBUG=7
  572. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Remove call
  573. to deleted function elf_symbol_flags. Add typecast to avoid warning.
  574. * elf32-rx.c (dump_symbol) : Rename to..
  575. (rx_dump_symbol): ..this to avoid link errors.
  576. * elflink.c (elf_link_input_bfd): Add typecast to avoid warnings.
  577. (bfd_elf_perform_complex_relocation): Likewise.
  578. * elf32-xtensa.c (print_action_list): Likewise.
  579. 2010-10-06 Nathan Sidwell <nathan@codesourcery.com>
  580. * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
  581. elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
  582. ip/r12.
  583. (arm_type_of_stub): Remove superfluous braces.
  584. 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
  585. * elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
  586. (struct bfd_elf_section_data): New members REL and RELA; delete
  587. members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
  588. REL_IDX2, REL_HASHES.
  589. (_bfd_elf_init_reloc_shdr): Adjust declaration.
  590. (_bfd_elf_single_rel_hdr): Declare.
  591. (RELOC_AGAINST_DISCARDED_SECTION): Use it.
  592. * elf.c (bfd_section_from_shdr): Adjusted to match changes in
  593. data structures.
  594. (_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
  595. All callers changed. Allocate memory for the Elf_Internal_Shdr
  596. structure.
  597. (_bfd_elf_single_rel_hdr): New function.
  598. (struct fake_section_arg): New structure.
  599. (elf_fake_section): Expect to see a pointer to it in the third
  600. argument. If doing a relocatable link, allocate both REL and RELA
  601. sections as needed.
  602. (assign_section_numbers): Adjusted to match changes in
  603. data structures.
  604. (_bfd_elf_compute_section_file_positions): Call elf_fake_sections
  605. with a struct fake_section_args argument.
  606. * elfcode.h (elf_write_relocs): Adjusted to match changes in
  607. data structures.
  608. (elf_slurp_reloc_table): Likewise.
  609. * elflink.c (_bfd_elf_link_read_relocs): Likewise.
  610. (_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
  611. RELDATA. Remove argument O. All callers changed. Remove code to
  612. discover the right rel_hdr and count.
  613. (_bfd_elf_link_output_relocs): Adjusted to match changes in
  614. data structures.
  615. (elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
  616. replace with RELDATA. All callers changed.
  617. (elf_link_input_bfd): Correctly generate rel_hash data when both
  618. REL and RELA sections are present.
  619. (elf_reloc_link_order): Adjusted to match changes in
  620. data structures.
  621. (bfd_elf_final_link): Simplify code to count relocs. Free the
  622. hashes array for both REL and RELA.
  623. (get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
  624. * elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
  625. Delete.
  626. * elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
  627. Delete.
  628. (elf32_tic6x_rel_relocation_p): Adjusted to match changes in
  629. data structures.
  630. * elf32-microblaze.c (microblaze_elf_check_relocs): Use
  631. _bfd_elf_single_rel_hdr.
  632. * elf32-ppc.c (ppc_elf_relax_section): Likewise.
  633. * elf32-spu.c (spu_elf_relocate_section): Likewise.
  634. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  635. * elf64-hppa.c (get_reloc_section): Likewise.
  636. * elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
  637. changes in data structures.
  638. (mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
  639. * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
  640. (ppc64_elf_edit_toc): Likewise.
  641. (get_relocs): Adjusted to match changes in data structures.
  642. Allocate an Elf_Internal_Shdr structure if necessary.
  643. (ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
  644. * elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
  645. changes in data structures.
  646. * elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
  647. * elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
  648. (mips_elf_rel_relocation_p): Adjusted to match changes in data
  649. structures.
  650. (_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
  651. than MIPS_RELOC_RELOCA_P.
  652. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
  653. _bfd_elf_single_rel_hdr.
  654. (_bfd_sparc_elf_relocate_section): Likewise.
  655. 2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
  656. * elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
  657. SHN_UNDEF, SHN_ABS, SHN_COMMON.
  658. 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
  659. PR ld/11812
  660. * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
  661. allocate .got.plt section if there are no GOT nor PLT
  662. entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
  663. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
  664. * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
  665. 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  666. * configure: Regenerate.
  667. 2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
  668. * elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
  669. elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
  670. elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
  671. elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
  672. elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
  673. the zero symbol index.
  674. * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
  675. to STN_UNDEF, not SHN_UNDEF.
  676. 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
  677. * elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
  678. (elf_backend_fake_sections): Define.
  679. 2010-09-23 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  680. * bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
  681. 2010-09-23 Alan Modra <amodra@gmail.com>
  682. * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
  683. 2010-09-23 Alan Modra <amodra@gmail.com>
  684. * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
  685. difference between input and output section.
  686. 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
  687. * coffcode.h (sec_to_styp_flags): Adjust debug
  688. sections to be conform to pe-coff specification
  689. and avoid marking them as excluded.
  690. (styp_to_sec_flags): Doing reverse mapping.
  691. * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
  692. setting IAT directory entry.
  693. 2010-09-20 Richard Henderson <rth@redhat.com>
  694. * elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
  695. 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
  696. * elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
  697. (mips_elf_link_hash_newfunc): Initialize it.
  698. (mips_elf_record_global_got_symbol): Add a for_call parameter.
  699. (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
  700. than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
  701. Try to remove .got entries in favour of .got.plt entries on VxWorks.
  702. (_bfd_mips_elf_check_relocs): Do not try to avoid allocating
  703. a global GOT entry for VxWorks calls. Update uses of
  704. mips_elf_record_global_got_symbol.
  705. (allocate_dynrelocs): Set got_only_for_calls to false if the GOT
  706. entry is used for dynamic relocations.
  707. 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
  708. * elfxx-mips.c (mips_got_entry): Adjust commentary.
  709. (mips_elf_create_local_got_entry): If given a symbol, check that it
  710. has been assigned to the local part of the GOT.
  711. (mips_elf_count_got_symbols): Take the bfd_link_info as argument
  712. instead of the master GOT. Put all locally-binding symbols in
  713. the local area.
  714. (mips_elf_make_got_per_bfd): Use global_got_area to decide whether
  715. a symbol lives in the local or global area.
  716. (mips_elf_local_relocation_p): Remove check_forced argument and
  717. retain only the !check_forced behavior.
  718. (mips_elf_calculate_relocation): Adjust call accordingly.
  719. Use global_got_area to decide whether an output relocation
  720. should be local or global. Explicitly decay R_MIPS_GOT_PAGE
  721. into R_MIPS_GOT_DISP where appropriate. Fix selection of
  722. local vs. global semantics for R_MIPS*_26. Remove redundant
  723. reevaluation of what is stored in was_local_p.
  724. (mips_elf_create_dynamic_relocation): Use global_got_area to decide
  725. whether the relocation should be against a global or local symbol.
  726. (mips_elf_lay_out_got): Update the GOT traversal after the above
  727. change to mips_elf_count_got_symbols.
  728. (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
  729. (_bfd_mips_elf_relocate_section): Likewise.
  730. (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
  731. whether the symbol has a global got entry.
  732. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
  733. 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
  734. * elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
  735. to the global GOT on VxWorks.
  736. 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
  737. * elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
  738. exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
  739. about HI/LO relocations in shared objects.
  740. 2010-09-16 Alan Modra <amodra@gmail.com>
  741. * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
  742. sections.
  743. (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
  744. set dynobj.
  745. (spu_elf_finish_dynamic_sections): New function.
  746. (elf_backend_finish_dynamic_sections): Define.
  747. 2010-09-16 Alan Modra <amodra@gmail.com>
  748. * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
  749. * elflink.c (elf_link_input_bfd): Likewise.
  750. 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
  751. * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
  752. (pex64_get_scope_entry): Removed.
  753. (find_next_xdata_or_end): New helper.
  754. (pex64_dump_xdata): Reworked.
  755. (pex64_bfd_print_pdata): Add checking for
  756. valid pdata sorting and values. Reworked
  757. output.
  758. 2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
  759. PR binutils/12004
  760. * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
  761. 2010-09-14 Kai Tietz <kai.tietz@onevision.com>
  762. * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
  763. .rdata, .data, and .text partial matched section names.
  764. * pei-x86_64.c: Likewise.
  765. * peXXigen.c (sort_x64_pdata): New helper.
  766. (_bfd_XXi_final_link_postscript): Do pdata sorting.
  767. 2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
  768. PR ld/11998
  769. * elf.c (assign_file_positions_for_load_sections): Don't warn
  770. zero LMA adjustment.
  771. 2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
  772. * elflink.c (bfd_elf_final_link): Correct calculation of
  773. max_external_reloc_size.
  774. 2010-09-07 Alan Modra <amodra@gmail.com>
  775. Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
  776. * peXXigen.c: Whitespace.
  777. (pe_print_idata): Correct section limit calculations. Tidy array
  778. indexing.
  779. (_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
  780. 2010-09-02 Richard Henderson <rth@redhat.com>
  781. * config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
  782. 2010-09-01 Pedro Alves <pedro@codesourcery.com>
  783. * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
  784. (netbsd_core_file_pid): ... this.
  785. 2010-09-01 Tristan Gingold <gingold@adacore.com>
  786. * coffcode.h (coff_slurp_line_table): Add a cast.
  787. (coff_slurp_reloc_table): Ditto.
  788. 2010-08-30 Gunther Nikl <gnikl@users.sourceforge.net>
  789. * cisco-core.c (cisco_core_file_pid): Define.
  790. 2010-08-30 Alan Modra <amodra@gmail.com>
  791. PR binutils/11953
  792. * elf.c (copy_elf_program_header): Calculate map->header_size
  793. from lowest_section, not first_section. Validate program
  794. header p_paddr against section lma. Find lowest_section in
  795. second loop over headers.
  796. 2010-08-28 Alan Modra <amodra@gmail.com>
  797. * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
  798. common syms local.
  799. (_bfd_elf_symbol_refs_local_p): Expand comment.
  800. (elf_link_output_extsym): Fix style nit.
  801. 2010-08-26 Nathan Sidwell <nathan@codesourcery.com>
  802. * elf32-arm.c (elf32_arm_final_link): Process stub sections
  803. exactly once.
  804. 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
  805. PR ld/11939
  806. * elflink.c (elf_link_add_object_symbols): Don't set
  807. unique_global for non-ELF hash link table.
  808. 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
  809. PR ld/11944
  810. * elf-bfd.h (elf_backend_data): Add target_id.
  811. (bfd_elf_make_generic_object): Renamed to ...
  812. (bfd_elf_make_object): This.
  813. * elf.c (bfd_elf_make_generic_object): Removed.
  814. (bfd_elf_make_object): New.
  815. (bfd_elf_mkcorefile): Really treat it as an object file.
  816. * elf-m10300.c (ELF_TARGET_ID): New.
  817. * elf32-arm.c (ELF_TARGET_ID): Likewise.
  818. * elf32-bfin.c (ELF_TARGET_ID): Likewise.
  819. * elf32-cris.c (ELF_TARGET_ID): Likewise.
  820. * elf32-frv.c (ELF_TARGET_ID): Likewise.
  821. * elf32-i386.c (ELF_TARGET_ID): Likewise.
  822. * elf32-lm32.c (ELF_TARGET_ID): Likewise.
  823. * elf32-m32r.c (ELF_TARGET_ID): Likewise.
  824. * elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
  825. * elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
  826. * elf32-m68k.c (ELF_TARGET_ID): Likewise.
  827. * elf32-microblaze.c (ELF_TARGET_ID): Likewise.
  828. * elf32-ppc.c (ELF_TARGET_ID): Likewise.
  829. * elf32-s390.c (ELF_TARGET_ID): Likewise.
  830. * elf32-sh.c (ELF_TARGET_ID): Likewise.
  831. * elf32-sparc.c (ELF_TARGET_ID): Likewise.
  832. * elf32-spu.c (ELF_TARGET_ID): Likewise.
  833. * elf32-tic6x.c (ELF_TARGET_ID): Likewise.
  834. * elf32-xtensa.c (ELF_TARGET_ID): Likewise.
  835. * elf64-alpha.c (ELF_TARGET_ID): Likewise.
  836. * elf64-hppa.c (ELF_TARGET_ID): Likewise.
  837. * elf64-ppc.c (ELF_TARGET_ID): Likewise.
  838. * elf64-s390.c (ELF_TARGET_ID): Likewise.
  839. * elf64-x86-64.c (ELF_TARGET_ID): Likewise.
  840. * elfxx-ia64.c (ELF_TARGET_ID): Likewise.
  841. * elf32-hppa.c (elf32_hppa_mkobject): Removed.
  842. (bfd_elf32_mkobject): Likewise.
  843. (ELF_TARGET_ID): New.
  844. * elf32-mips.c (ELF_TARGET_ID): New.
  845. (bfd_elf32_mkobject): Removed.
  846. * elf64-mips.c (ELF_TARGET_ID): New.
  847. (bfd_elf64_mkobject): Removed.
  848. * elfn32-mips.c (ELF_TARGET_ID): New.
  849. (bfd_elf32_mkobject): Removed.
  850. * elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
  851. * elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
  852. * elfxx-target.h (bfd_elfNN_mkobject): Default to
  853. bfd_elf_make_object.
  854. (ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
  855. (elfNN_bed): Initialize target_id.
  856. 2010-08-25 Julian Brown <julian@codesourcery.com>
  857. * elf32-arm.c (arm_stub_required_alignment): New.
  858. (arm_build_one_stub): Use above to partition stubs.
  859. (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
  860. arm_stub_a8_veneer_b_cond.
  861. 2010-08-25 Alan Modra <amodra@gmail.com>
  862. * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
  863. * aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
  864. * aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
  865. * coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
  866. * elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
  867. * reloc.c (bfd_default_reloc_type_lookup): Likewise.
  868. * riscix.c (riscix_reloc_type_lookup): Likewise.
  869. 2010-08-25 Alan Modra <amodra@gmail.com>
  870. * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
  871. headers if any loaded section wraps the address space. Simplify
  872. ~(m-1) to -m. Use lma rather than vma when determining whether
  873. note sections are adjacent.
  874. 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
  875. PR ld/11933
  876. * elflink.c (elf_link_add_object_symbols): Don't check relocation
  877. if input ELF object ID doesn't match output.
  878. 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  879. * configure: Regenerate.
  880. 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
  881. * merge.c (sec_merge_emit): Revert the last checkin.
  882. 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
  883. * elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
  884. BFD.
  885. 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
  886. * elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
  887. options unless an m68k hash table has been found.
  888. 2010-08-20 Nick Clifton <nickc@redhat.com>
  889. * merge.c (sec_merge_emit): Do not zero pad sections that do not
  890. have an alignment.
  891. 2010-08-18 Pedro Alves <pedro@codesourcery.com>
  892. PR corefile/8210
  893. * bfd-in2.h: Regenerate.
  894. * corefile.c (bfd_core_file_pid): New.
  895. * targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
  896. (struct bfd_target) <_core_file_pid>: New.
  897. * libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
  898. * libbfd.c (_bfd_nocore_core_file_pid): New.
  899. * elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
  900. Declare.
  901. * elfcode.h (elf_core_file_pid): New define.
  902. * elfcore.h (elf_core_file_pid): New function.
  903. * elf.c (elfcore_make_pid): Rewrite.
  904. (elfcore_grok_prstatus): Only set core_pid if not set yet.
  905. (elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
  906. getting the lwpid from prstat.pr_pid.
  907. * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
  908. elf_tdata's core_lwpid instead of to core_pid.
  909. (elf64_x86_64_grok_psinfo): Extract the main process's PID,
  910. and store it in elf_tdata's core_pid field.
  911. * elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
  912. elf_tdata's core_lwpid instead of to core_pid.
  913. (elf_i386_grok_psinfo): Extract the main process's PID, and
  914. store it in elf_tdata's core_pid field.
  915. * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
  916. to elf_tdata's core_lwpid instead of to core_pid.
  917. * elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
  918. elf_tdata's core_lwpid instead of to core_pid.
  919. * elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
  920. elf_tdata's core_lwpid instead of to core_pid.
  921. * elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
  922. elf_tdata's core_lwpid instead of to core_pid.
  923. * elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
  924. elf_tdata's core_lwpid instead of to core_pid.
  925. * elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
  926. elf_tdata's core_lwpid instead of to core_pid.
  927. * elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
  928. elf_tdata's core_lwpid instead of to core_pid.
  929. * elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
  930. elf_tdata's core_lwpid instead of to core_pid.
  931. * elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
  932. to elf_tdata's core_lwpid instead of to core_pid.
  933. * elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
  934. to elf_tdata's core_lwpid instead of to core_pid.
  935. * elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
  936. elf_tdata's core_lwpid instead of to core_pid.
  937. * elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
  938. elf_tdata's core_lwpid instead of to core_pid.
  939. * elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
  940. elf_tdata's core_lwpid instead of to core_pid.
  941. * elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
  942. elf_tdata's core_lwpid instead of to core_pid.
  943. * elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
  944. elf_tdata's core_lwpid instead of to core_pid.
  945. * elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
  946. elf_tdata's core_lwpid instead of to core_pid.
  947. * plugin.c (bfd_plugin_core_file_pid): New function.
  948. * aout-target.h (MY_core_file_pid): Define.
  949. * aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
  950. * coff-rs6000.c (coff_core_file_pid): New define.
  951. (rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
  952. * coff64-rs6000.c (coff_core_file_pid): New define.
  953. (rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
  954. (xcoff64_core_file_pid): New define.
  955. (aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
  956. * mach-o-target.c (bfd_mach_o_core_file_pid): New define.
  957. * aix386-core.c (aix386_core_file_pid): New define.
  958. * hppabsd-core.c (hppabsd_core_core_file_pid): New define.
  959. * hpux-core.c (hpux_core_core_file_pid): New define.
  960. * irix-core.c (irix_core_core_file_pid): New define.
  961. * lynx-core.c (lynx_core_file_pid): New define.
  962. * osf-core.c (osf_core_core_file_pid): New define.
  963. * ptrace-core.c (ptrace_unix_core_file_pid): New define.
  964. * sco5-core.c (sco5_core_file_pid): New define.
  965. * xcoff-target.h (coff_core_file_pid): New define.
  966. * netbsd-core.c (netbsd_core_core_file_pid): New define.
  967. 2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
  968. PR ld/11913
  969. * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
  970. .got.plt section is discarded.
  971. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
  972. 2010-08-13 Nathan Sidwell <nathan@codesourcery.com>
  973. * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
  974. variant.
  975. 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
  976. PR binutils/11909
  977. * Makefile.am (coff-tic4x.lo): New. Disable -Werror.
  978. (coff-tic54x.lo): Likewise.
  979. * Makefile.in: Regenerated.
  980. 2010-08-12 Todd Veldhuizen <todd.veldhuizen@logicblox.com>
  981. PR ld/11843
  982. * elflink.c (compute_bucket_count): Avoid futile long searches for
  983. the best bucket size.
  984. 2010-08-09 Richard Henderson <rth@redhat.com>
  985. PR ld/11891
  986. * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
  987. to tlshi/lo until pos0 and pos1 are adjacent. Use the destination
  988. register from the tldgd insn.
  989. 2010-08-09 Catherine Moore <clm@codesourcery.com>
  990. * elfxx-mips.c (mips_elf_perform_relocation): Improve
  991. interlinking error message.
  992. 2010-08-06 Alan Modra <amodra@gmail.com>
  993. * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
  994. (ppc64_elf_relocate_section): Nop out high part insn of large toc
  995. code sequence when the high part of offset is zero.
  996. 2010-08-04 Tristan Gingold <gingold@adacore.com>
  997. * vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
  998. (alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
  999. Clear the SEC_RELOC flag.
  1000. 2010-08-04 Tristan Gingold <gingold@adacore.com>
  1001. * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
  1002. sections with relocs.
  1003. (alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
  1004. (alpha_vms_add_fixup_ca): Ditto.
  1005. (alpha_vms_add_fixup_qr): Ditto.
  1006. Add comments.
  1007. 2010-08-04 Tristan Gingold <gingold@adacore.com>
  1008. * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
  1009. CODE sections writable.
  1010. 2010-08-04 Tristan Gingold <gingold@adacore.com>
  1011. * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
  1012. (alpha_vms_add_fixup_lr): ... this for consistency.
  1013. (alpha_vms_add_qw_fixup): Removed.
  1014. Fix some comments.
  1015. (vms_get_symbol_info): Adjust type for unknown sections.
  1016. 2010-08-04 Tristan Gingold <gingold@adacore.com>
  1017. * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
  1018. section for any absolute section. Remove some debugging code.
  1019. 2010-08-03 DJ Delorie <dj@redhat.com>
  1020. * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
  1021. 2010-08-03 Tristan Gingold <gingold@adacore.com>
  1022. * vms-misc.c (vms_convert_to_var): Make it static.
  1023. (_bfd_vms_convert_to_var_unix_filename): Make it public.
  1024. 2010-08-03 Tristan Gingold <gingold@adacore.com>
  1025. * makefile.vms (OBJS): Update list.
  1026. 2010-08-03 Tristan Gingold <gingold@adacore.com>
  1027. * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
  1028. nor SEC_RELOC for empty sections.
  1029. 2010-08-03 Tristan Gingold <gingold@adacore.com>
  1030. * vms-alpha.c (evax_section_flags): Fix flags for absolute
  1031. section. Remove useless parenthesis.
  1032. 2010-08-03 Tristan Gingold <gingold@adacore.com>
  1033. * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
  1034. (vms_lib_bread, vms_lib_bopen): Adjust.
  1035. 2010-08-02 Alan Modra <amodra@gmail.com>
  1036. PR 11866
  1037. * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
  1038. calculate off_adjust rather than first section vma.
  1039. 2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
  1040. * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
  1041. 2010-07-30 Anthony Green <green@moxielogic.com>
  1042. * config.bfd (targ_cpu): Add moxie-*-rtems support.
  1043. 2010-07-29 Alan Modra <amodra@gmail.com>
  1044. * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
  1045. .toc section, even when none are used in relocs.
  1046. 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
  1047. * elfxx-mips.h: Include "elf/mips.h".
  1048. (gprel16_reloc_p): New static inline function.
  1049. * elfxx-mips.c (_bfd_mips_elf_check_relocs)
  1050. [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
  1051. Use got16_reloc_p.
  1052. (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
  1053. gprel16_reloc_p.
  1054. * elf32-mips.c (mips_info_to_howto_rel): Likewise.
  1055. * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
  1056. 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
  1057. * elf64-mips.c (mips_elf64_howto_table_rela)
  1058. [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
  1059. [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
  1060. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
  1061. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
  1062. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
  1063. * elfn32-mips.c (elf_mips_howto_table_rela)
  1064. [R_MIPS_TLS_DTPMOD32]: Likewise.
  1065. [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
  1066. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
  1067. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
  1068. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
  1069. 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
  1070. Ina Pandit <ina.pandit@kpitcummins.com>
  1071. * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
  1072. bfd_mach_v850e2v3.
  1073. * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
  1074. bfd_mach_v850e2v3.
  1075. (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
  1076. BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
  1077. BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
  1078. BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
  1079. BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
  1080. BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
  1081. BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
  1082. BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
  1083. BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
  1084. BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
  1085. BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
  1086. BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
  1087. BFD_RELOC_V850_DATA): New relocations for V850 target.
  1088. * config.bfd: Match all v850 targets.
  1089. * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
  1090. * elf32-v850.c (v850_elf_check_relocs): Check the newly added
  1091. relocations.
  1092. (v850_elf_perform_relocation ): Update the newly added
  1093. relocations.
  1094. (v850_elf_howto_t): Update the specifications of added
  1095. relocations.
  1096. (v850_elf_reloc_map): Update the relocation mappings.
  1097. (v850_elf_final_link_relocate): Maps added relocation into the
  1098. appropriate howto structure.
  1099. (v850_elf_object_p): Add support for V850E2 and V850E2V3.
  1100. (v850_elf_final_write_processing): Likewise.
  1101. (v850_elf_merge_private_bfd_data): Likewise.
  1102. (v850_elf_print_private_bfd_data): Likewise.
  1103. * libbfd.h: Regenerate.
  1104. * bfd-in2.h: Regenerate.
  1105. 2010-07-23 Alan Modra <amodra@gmail.com>
  1106. * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
  1107. Correct format specifier.
  1108. 2010-07-22 Alan Modra <amodra@gmail.com>
  1109. * ecoff.c: Don't include aout/ranlib.h.
  1110. (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
  1111. (_bfd_ecoff_write_armap): Output ar_date and ar_size using
  1112. _bfd_ar_spacepad.
  1113. 2010-07-22 Alan Modra <amodra@gmail.com>
  1114. * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
  1115. relocs.
  1116. 2010-07-20 Alan Modra <amodra@gmail.com>
  1117. * elf.c (assign_file_positions_for_load_sections): Check that
  1118. zero size sections are allocated in segments too.
  1119. (assign_file_positions_for_non_load_sections): Warn if zero
  1120. size alloc sections are found here.
  1121. (copy_elf_program_header): Don't drop zero size sections from
  1122. segment map.
  1123. (copy_private_bfd_data): Check for changes in zero size sections.
  1124. 2010-07-17 Alan Modra <amodra@gmail.com>
  1125. * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
  1126. for sections with overlapping LMAs.
  1127. (assign_file_positions_for_load_sections): Catch overlap for
  1128. sections that wrap around the address space. Replace a
  1129. warning that duplicates ld's --check-sections error with a
  1130. warning that lma has been adjusted for overlapping sections.
  1131. 2010-07-14 Cary Coutant <ccoutant@google.com>
  1132. PR ld/11817
  1133. * dwarf2.c (read_section): Revert patch for compressed debug sections.
  1134. (find_line): Likewise.
  1135. (read_and_uncompress_section): Remove.
  1136. 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
  1137. PR ld/11812
  1138. * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
  1139. allocate .got.plt section if there are no GOT nor PLT
  1140. entries.
  1141. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
  1142. 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
  1143. PR ld/11791
  1144. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
  1145. garbage collection against STT_GNU_IFUNC symbols.
  1146. * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
  1147. elf.plt.offset/elf.got.offset to -1.
  1148. (elf_i386_tls_transition): Skip TLS transition for functions.
  1149. (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
  1150. * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
  1151. elf.plt.offset/elf.got.offset to -1.
  1152. (elf64_x86_64_tls_transition): Skip TLS transition for functions.
  1153. (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
  1154. 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
  1155. * elf32-i386.c (elf_i386_check_relocs): Re-indent.
  1156. (elf_i386_relocate_section): Likewise.
  1157. 2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
  1158. * dwarf2.c (add_line_info): Initialize prev_line.
  1159. 2010-07-06 Alan Modra <amodra@gmail.com>
  1160. * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
  1161. trampolines only for .init and .fini sections.
  1162. 2010-07-05 Alan Modra <amodra@gmail.com>
  1163. * elf32-ppc.c: Formatting.
  1164. (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
  1165. 2010-07-03 Cary Coutant <ccoutant@google.com>
  1166. * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
  1167. * dwarf2.c (read_and_uncompress_section): New function.
  1168. (read_section): Call it.
  1169. (find_line): Likewise.
  1170. 2010-07-01 Alan Modra <amodra@gmail.com>
  1171. * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
  1172. than SYMBOL_REFERENCES_LOCAL.
  1173. (ppc64_elf_relocate_section): Likewise.
  1174. 2010-07-01 Alan Modra <amodra@gmail.com>
  1175. * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
  1176. 2010-06-29 Alan Modra <amodra@gmail.com>
  1177. * cpu-maxq.c: Delete file.
  1178. * coff-maxq.c: Delete file.
  1179. * Makefile.am: Remove references to maxq.
  1180. * archures.c: Likewise.
  1181. * coffcode.h: Likewise.
  1182. * configure.in: Likewise.
  1183. * targets.c: Likewise.
  1184. * config.bfd: Move maxq from obsolete to removed.
  1185. * Makefile.in: Regenerate.
  1186. * bfd-in2.h: Regenerate.
  1187. * configure: Regenerate.
  1188. * libbfd.h: Regenerate.
  1189. * po/SRC-POTFILES.in: Regenerate.
  1190. 2010-06-28 Alan Modra <amodra@gmail.com>
  1191. * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
  1192. to silence gcc warning.
  1193. 2010-06-27 Alan Modra <amodra@gmail.com>
  1194. * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
  1195. (group_sections): Likewise.
  1196. 2010-06-27 Alan Modra <amodra@gmail.com>
  1197. * bout.c (aligncode): Delete set but unused variables.
  1198. * coff-mcore.c (coff_mcore_relocate_section): Likewise.
  1199. * coff-ppc.c (ppc_record_toc_entry): Likewise.
  1200. (coff_ppc_relocate_section): Likewise.
  1201. * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
  1202. * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
  1203. * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
  1204. (mn10300_elf_relax_section): Likewise.
  1205. * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
  1206. (record_vfp11_erratum_veneer): Likewise.
  1207. (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
  1208. (elf32_arm_final_link_relocate): Likewise.
  1209. (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
  1210. * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
  1211. (elf32_avr_relax_section): Likewise.
  1212. (avr_mark_stub_not_to_be_necessary): Likewise.
  1213. * elf32-bfin.c (_bfin_create_got_section): Likewise.
  1214. * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
  1215. (elf32_cr16_relax_delete_bytes): Likewise.
  1216. * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
  1217. * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
  1218. * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
  1219. * elf32-h8300.c (elf32_h8_relax_section): Likewise.
  1220. (elf32_h8_relax_delete_bytes): Likewise.
  1221. * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
  1222. * elf32-i370.c (i370_elf_check_relocs): Likewise.
  1223. (elf_relocate_section): Likewise.
  1224. * elf32-ip2k.c (adjust_all_relocations): Likewise.
  1225. (ip2k_elf_relax_section): Likewise.
  1226. * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
  1227. (lm32_elf_check_relocs): Likewise.
  1228. (lm32_elf_finish_dynamic_sections): Likewise.
  1229. (lm32_elf_finish_dynamic_symbol): Likewise.
  1230. * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
  1231. (m32c_elf_relax_delete_bytes): Likewise.
  1232. * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
  1233. (m32r_elf_finish_dynamic_sections): Likewise.
  1234. (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
  1235. * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
  1236. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
  1237. * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
  1238. * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
  1239. (microblaze_elf_check_relocs): Likewise.
  1240. (microblaze_elf_finish_dynamic_symbol): Likewise.
  1241. * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
  1242. * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
  1243. * elf32-rx.c (rx_elf_relocate_section): Likewise.
  1244. (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
  1245. (elf32_rx_relax_section): Likewise.
  1246. * elf32-score.c (score_elf_got_offset_from_index): Likewise.
  1247. (score_elf_final_link_relocate): Likewise.
  1248. (s3_bfd_score_elf_relocate_section): Likewise.
  1249. * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
  1250. (s7_bfd_score_elf_relocate_section): Likewise.
  1251. * elf32-sh.c (sh_elf_check_relocs): Likewise.
  1252. * elf32-spu.c (spu_elf_relocate_section): Likewise.
  1253. * elf32-v850.c (v850_elf_check_relocs): Likewise.
  1254. (find_remembered_hi16s_reloc): Likewise.
  1255. * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
  1256. (elf_vax_relocate_section): Likewise.
  1257. * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
  1258. * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
  1259. (move_literal): Likewise.
  1260. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
  1261. (elf64_hppa_check_relocs): Likewise.
  1262. (elf64_hppa_finish_dynamic_symbol): Likewise.
  1263. (elf64_hppa_relocate_section): Likewise.
  1264. * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
  1265. * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
  1266. (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
  1267. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
  1268. (elfNN_vms_section_from_shdr): Likewise.
  1269. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
  1270. (_bfd_sparc_elf_relocate_section): Likewise.
  1271. * hp300hpux.c (slurp_symbol_table): Likewise.
  1272. * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
  1273. * mach-o.c (bfd_mach_o_write_thread): Likewise.
  1274. * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
  1275. * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
  1276. * pdp11.c (pdp11_aout_link_input_section): Likewise.
  1277. (aout_link_input_section, aout_link_input_bfd): Likewise.
  1278. * pe-mips.c (mips_swap_reloc_out): Likewise.
  1279. (coff_pe_mips_relocate_section): Likewise.
  1280. * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
  1281. * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
  1282. * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
  1283. * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
  1284. * coffcode.h (coff_compute_section_file_positions): Likewise.
  1285. (coff_slurp_reloc_table): Likewise.
  1286. * cpu-arm.c (arm_check_note): Likewise.
  1287. * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
  1288. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  1289. * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
  1290. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  1291. * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
  1292. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  1293. * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
  1294. * ieee.c (parse_expression): Likewise.
  1295. (ieee_slurp_external_symbols, drop_int): Likewise.
  1296. * peXXigen.c (pe_print_pdata): Likewise.
  1297. * versados.c (process_esd): Likewise.
  1298. 2010-06-25 Tristan Gingold <gingold@adacore.com>
  1299. * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
  1300. its flags. Create an absolute section if needed.
  1301. 2010-06-25 Tristan Gingold <gingold@adacore.com>
  1302. * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
  1303. sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
  1304. dummy psect anymore. Adjust.
  1305. (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
  1306. (_bfd_vms_write_etir): Ditto.
  1307. (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
  1308. section name. Adjust.
  1309. 2010-06-25 Tristan Gingold <gingold@adacore.com>
  1310. * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
  1311. 2010-06-25 Alan Modra <amodra@gmail.com>
  1312. * elf64-ppc.c (toc_skip_enum): Define.
  1313. (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
  1314. Optimize largetoc sequences.
  1315. (adjust_toc_syms): Update for skip array change.
  1316. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
  1317. 2010-06-25 Alan Modra <amodra@gmail.com>
  1318. * elf64-ppc.c (is_static_defined): New function.
  1319. (get_tls_mask, ppc_type_of_stub): Use it here.
  1320. (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
  1321. (ppc64_elf_tls_setup): Typo fix.
  1322. (adjust_toc_syms): Correctly handle symbols defined past the end
  1323. of the toc. Move syms on removed entries to next entry rather
  1324. than to start of toc.
  1325. (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
  1326. edit ppc64 input. Allocate one extra word in skip array.
  1327. Honour info->keep_memory when reading relocs if we can.
  1328. Adjust toc relocs after adjusting symbols.
  1329. 2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
  1330. * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
  1331. when scaning map.
  1332. 2010-06-17 Tristan Gingold <gingold@adacore.com>
  1333. * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
  1334. (BFD64_BACKENDS_CFILES): ... here.
  1335. (BFD32_BACKENDS): Move vms-alpha.lo to ...
  1336. (BFD64_BACKENDS): ... here.
  1337. * Makefile.in: Regenerate.
  1338. 2010-06-15 Joseph Myers <joseph@codesourcery.com>
  1339. * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
  1340. * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
  1341. elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
  1342. elf32_tic6x_merge_private_bfd_data): New.
  1343. (bfd_elf32_bfd_merge_private_bfd_data,
  1344. elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
  1345. elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
  1346. Define.
  1347. * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
  1348. 2010-06-15 Joseph Myers <joseph@codesourcery.com>
  1349. * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
  1350. (struct elf_backend_data): Update comment on obj_attrs_order.
  1351. * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
  1352. _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
  1353. instead of hardcoded 4.
  1354. * elf32-arm.c (elf32_arm_obj_attrs_order): Use
  1355. LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
  1356. instead of hardcoded 4 and 5.
  1357. (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
  1358. instead of hardcoded 4.
  1359. 2010-06-14 Kevin Buettner <kevinb@redhat.com>
  1360. * elf32-h8300.c (elf_symbol_leading_char): Define.
  1361. 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  1362. * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
  1363. 2010-06-11 Tristan Gingold <gingold@adacore.com>
  1364. * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
  1365. sections to 0.
  1366. 2010-06-11 Tristan Gingold <gingold@adacore.com>
  1367. * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
  1368. 2010-06-11 Tristan Gingold <gingold@adacore.com>
  1369. * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
  1370. Adjust cast.
  1371. (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
  1372. * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
  1373. * vms-alpha.c (evax_section_flags): Make it const.
  1374. (vms_secflag_by_name): Remove unused ABFD argument.
  1375. Make SECTION_FLAGS and NAME arguments const. Clarify comment.
  1376. (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
  1377. (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
  1378. (_bfd_vms_write_egsd): Remove useless cast.
  1379. 2010-06-10 Tristan Gingold <gingold@adacore.com>
  1380. * config.bfd: Remove #if/#endif so that som can be compiled on any
  1381. host.
  1382. * targets.c (_bfd_target_vector): Remove #if/#endif so that som
  1383. can be used on any host.
  1384. 2010-06-10 Tristan Gingold <gingold@adacore.com>
  1385. * som.c: Can now be compiled on any host.
  1386. Include bfd headers instead of system one.
  1387. (som_compute_checksum): Parameter is now a pointer to a
  1388. som_external_header structure. Adjust.
  1389. (struct section_to_type): Field section is now const.
  1390. (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
  1391. definition.
  1392. (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
  1393. (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
  1394. (som_swap_clock_in, som_swap_clock_out): New functions.
  1395. (som_swap_header_in, som_swap_header_out): Likewise.
  1396. (som_swap_space_dictionary_in): Likewise.
  1397. (som_swap_space_dictionary_out): Likewise.
  1398. (som_swap_subspace_dictionary_in): Likewise.
  1399. (som_swap_subspace_dictionary_record_out): Likewise.
  1400. (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
  1401. (som_swap_string_auxhdr_out): Likewise.
  1402. (som_swap_compilation_unit_out): Likewise.
  1403. (som_swap_exec_auxhdr_in): Likewise.
  1404. (som_swap_exec_auxhdr_out): Likewise.
  1405. (som_swap_lst_header_in): Likewise.
  1406. (som_object_setup): Adjust parameter type using bfd types.
  1407. (setup_sections): Likewise. Ditto for object file types.
  1408. Use intermediate variables for external representation and use the
  1409. swap functions to convert.
  1410. (som_object_p): Ditto. Remove #ifdef/#endif on always defined
  1411. macros.
  1412. (som_prep_headers): Likewise.
  1413. (som_write_symbol_strings): Likewise.
  1414. (som_begin_writing): Likewise.
  1415. (som_finish_writing): Likewise.
  1416. (som_build_and_write_symbol_table): Likewise.
  1417. (bfd_section_from_som_symbol): Likewise.
  1418. (som_slurp_symbol_table): Likewise.
  1419. (som_bfd_print_private_bfd_data): Likewise.
  1420. (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
  1421. (bfd_som_attach_compilation_unit): Likewise.
  1422. (som_bfd_count_ar_symbols): Likewise.
  1423. (som_bfd_fill_in_ar_symbols): Likewise.
  1424. (som_slurp_armap): Likewise.
  1425. (som_bfd_ar_write_symbol_stuff): Likewise.
  1426. (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
  1427. sprintf to write header fields.
  1428. * som.h: Include bfd headers instead of system one.
  1429. (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
  1430. (struct somdata): Use bfd structures instead of system ones.
  1431. (struct som_section_data_struct): Likewise.
  1432. (struct som_subspace_dictionary_record): Removed (now in
  1433. include/som/internal.h)
  1434. 2010-06-10 Tristan Gingold <gingold@adacore.com>
  1435. * targets.c (bfd_target_list): Remove hp/ux compiler work-around
  1436. as bfd requires an ANSI-C compiler.
  1437. 2010-06-09 Tristan Gingold <gingold@adacore.com>
  1438. * bfdio.c (bfd_bread): Fix the code to prevent reading past the
  1439. end of archive members.
  1440. 2010-06-08 Tristan Gingold <gingold@adacore.com>
  1441. * som.c (som_bfd_free_cached_info): Do not free relocations as
  1442. they were allocated with bfd_zalloc.
  1443. 2010-06-08 Tristan Gingold <gingold@adacore.com>
  1444. * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
  1445. for the first block.
  1446. 2010-06-08 Tristan Gingold <gingold@adacore.com>
  1447. * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
  1448. * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
  1449. * libbfd.h: Regenerate.
  1450. * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
  1451. (bfd_elfNN_mkarchive): Ditto.
  1452. 2010-06-02 Tristan Gingold <gingold@adacore.com>
  1453. * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
  1454. 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  1455. * configure: Regenerate.
  1456. 2010-06-01 Tristan Gingold <gingold@adacore.com>
  1457. * vms-alpha.c (struct vms_private_data_struct): Add
  1458. transfer_address field. Remove unused dst_info field.
  1459. (alpha_vms_write_exec): Use transfer_address.
  1460. (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
  1461. (alpha_vms_bfd_final_link): Set transfer_address.
  1462. 2010-05-31 Tristan Gingold <gingold@adacore.com>
  1463. * vms-lib.c (credat_lo, credat_hi): New fields.
  1464. (vms_read_block): Adjust comments.
  1465. (vms_write_block): New function.
  1466. (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
  1467. hard-coded values with constants. Set credat_lo and credat_hi.
  1468. (_bfd_vms_lib_mkarchive): Add argument kind.
  1469. Set ver, mhd_size and type according to kind.
  1470. (_bfd_vms_lib_alpha_mkarchive): New function.
  1471. (struct lib_index): Renamed from struct vms_index
  1472. (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
  1473. (get_idxlen): Type of idx argument adjusted. Add is_elfidx
  1474. argument and handle it.
  1475. (vms_write_index): Adjust argument idx. Handle elf indexes.
  1476. (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
  1477. (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
  1478. use it. Handle elf indexes. Set credat.
  1479. * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
  1480. (_bfd_vms_lib_alpha_mkarchive): ... this.
  1481. * libbfd.h: Regenerated.
  1482. * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
  1483. 2010-05-28 Sterling Augustine <sterling@tensilica.com>
  1484. * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
  1485. of code to change the bits in the instructions to match the changes
  1486. in the relocations. Declare dest_addr and sym_sec to help.
  1487. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  1488. Workaround GCC PR middle-end/4210.
  1489. * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
  1490. and val[3].
  1491. 2010-05-27 Tristan Gingold <gingold@adacore.com>
  1492. * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
  1493. (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
  1494. (vms_time_to_time_t): Use them instead of local const.
  1495. (vms_time_t_to_vms_time): New function.
  1496. (vms_get_time): Likewise.
  1497. (vms_raw_get_time): Likewise.
  1498. * vms.h (vms_time_t_to_vms_time): New declaration.
  1499. (vms_get_time): Likewise.
  1500. (vms_raw_get_time): Likewise.
  1501. 2010-05-26 Tristan Gingold <gingold@adacore.com>
  1502. * vms-alpha.c: Update comments.
  1503. (alpha_vms_write_exec): Set lnkflags. Write the GST.
  1504. (alpha_vms_link_output_symbol): New function.
  1505. (alpha_vms_bfd_final_link): Generate the VMS symbol table.
  1506. Set dst_section private field.
  1507. (alpha_vms_bfd_final_link): Remove code that set dst_section.
  1508. 2010-05-26 Tristan Gingold <gingold@adacore.com>
  1509. * bfdio.c: Declare and define _bfd_memory_iovec.
  1510. (bfd_bread): Move code for BFD_IN_MEMORY...
  1511. (bfd_bwrite): ... Ditto ...
  1512. (bfd_tell): ... Ditto ...
  1513. (bfd_flush): ... Ditto ...
  1514. (bfd_stat): ... Ditto ...
  1515. (bfd_seek): ... Ditto ...
  1516. (bfd_get_size): ... Ditto ...
  1517. (bfd_mmap): ... Ditto ...
  1518. (memory_bread): ... to these new functions.
  1519. (memory_bwrite): Ditto.
  1520. (memory_btell): Ditto.
  1521. (memory_bseek): Ditto.
  1522. (memory_bflush): Ditto.
  1523. (memory_bstat): Ditto.
  1524. (memory_bmmap): Ditto.
  1525. (memory_bclose): New function.
  1526. * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
  1527. * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
  1528. * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
  1529. (bfd_make_writable): Use _bfd_memory_iovec.
  1530. * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
  1531. * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
  1532. _bfd_memory_iovec.
  1533. (alpha_ecoff_openr_next_archived_file): Use proxy_origin
  1534. instead of origin.
  1535. * libbfd.h: Regenerate.
  1536. 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
  1537. Joseph Myers <joseph@codesourcery.com>
  1538. Andrew Stubbs <ams@codesourcery.com>
  1539. * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
  1540. bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
  1541. * configure.in: Handle FDPIC vectors.
  1542. * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
  1543. * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
  1544. (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
  1545. SYMBOL_REFERENCES_LOCAL for function descriptors.
  1546. (fdpic_object_p): New.
  1547. (sh_reloc_map): Add FDPIC and movi20 relocations.
  1548. (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
  1549. range.
  1550. (struct elf_sh_plt_info): Add got20 and short_plt. Update all
  1551. definitions.
  1552. (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
  1553. (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
  1554. (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
  1555. (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
  1556. (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
  1557. New.
  1558. (get_plt_info): Handle FDPIC.
  1559. (MAX_SHORT_PLT): Define.
  1560. (get_plt_index, get_plt_offset): Handle short_plt.
  1561. (union gotref): New.
  1562. (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
  1563. got_type and adjust all uses. Add GOT_FUNCDESC.
  1564. (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
  1565. local_got_tls_type to local_got_type.
  1566. (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
  1567. users changed.
  1568. (sh_elf_local_funcdesc): Define.
  1569. (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
  1570. and srofixup.
  1571. (sh_elf_link_hash_newfunc): Initialize new fields.
  1572. (sh_elf_link_hash_table_create): Set fdpic_p.
  1573. (sh_elf_omit_section_dynsym): New.
  1574. (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
  1575. and .rofixup.
  1576. (allocate_dynrelocs): Allocate local function descriptors and space
  1577. for R_SH_FUNCDESC-related relocations, and for rofixups.
  1578. Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
  1579. require function descriptors.
  1580. (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
  1581. (sh_elf_modify_program_headers): New.
  1582. (sh_elf_size_dynamic_sections): Allocate function descriptors for
  1583. local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
  1584. Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
  1585. local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
  1586. entry in the .dynamic section.
  1587. (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
  1588. (sh_elf_add_rofixup, sh_elf_osec_to_segment)
  1589. (sh_elf_osec_readonly_p, install_movi20_field): New functions.
  1590. (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
  1591. R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
  1592. and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
  1593. read-only section warnings. Handle undefined weak symbols. Generate
  1594. fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
  1595. relocations and clear EF_SH_PIC. Handle 20-bit relocations.
  1596. Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
  1597. (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
  1598. R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
  1599. Handle 20-bit relocations.
  1600. (sh_elf_copy_indirect_symbol): Copy function descriptor reference
  1601. counts.
  1602. (sh_elf_check_relocs): Handle new relocations. Make symbols
  1603. dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
  1604. symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
  1605. for R_SH_DIR32.
  1606. (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
  1607. (sh_elf_merge_private_data): Copy initial flags. Do not clobber
  1608. non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
  1609. (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
  1610. here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
  1611. FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
  1612. Use install_movi20_field. Rename srel to srelgot. Always generate
  1613. R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
  1614. (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
  1615. Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
  1616. Rename sgot to sgotplt. Assert that the right number of rofixups
  1617. and dynamic relocations were allocated.
  1618. (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
  1619. (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
  1620. (elf_backend_can_make_relative_eh_frame)
  1621. (elf_backend_can_make_lsda_relative_eh_frame)
  1622. (elf_backend_encode_eh_address): Define.
  1623. (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
  1624. (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
  1625. Redefine for FDPIC vector.
  1626. * reloc.c: Add SH FDPIC and movi20 relocations.
  1627. * targets.c (_bfd_target_vector): Add FDPIC vectors.
  1628. * configure, bfd-in2.h, libbfd.h: Regenerated.
  1629. 2010-05-25 Jay Krell <jay.krell@cornell.edu>
  1630. PR ld/11624
  1631. * archive.c (_bfd_calloc_wrapper): New function.
  1632. (_bfd_add_bfd_to_archive_cache): Use it.
  1633. * configure.in: Add alpha*-*-*vms* to list of natives.
  1634. * configure: Regenerate.
  1635. * vms-misc.c: Define globalref if necessary.
  1636. (vms_convert_to_var_unix_filename): Rename to
  1637. _bfd_vms_convert_to_var_unix_filename and export.
  1638. * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
  1639. * vms-alpha.c (vms_close_and_cleanup): Update invocation of
  1640. vms_convert_to_var_unix_filename.
  1641. 2010-05-24 Tristan Gingold <gingold@adacore.com>
  1642. * vms-alpha.c (add_symbol_entry): New function extrated from ...
  1643. (add_symbol): ... adjusted.
  1644. 2010-05-24 Tristan Gingold <gingold@adacore.com>
  1645. * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
  1646. (alpha_vms_write_exec): Add a comment.
  1647. (_bfd_vms_write_egsd): Ditto.
  1648. (alpha_vms_convert_symbol): Remove a blank line.
  1649. 2010-05-21 Tristan Gingold <gingold@adacore.com>
  1650. * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
  1651. for the GST.
  1652. 2010-05-21 Tristan Gingold <gingold@adacore.com>
  1653. * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
  1654. SEC_LOAD if isect has data.
  1655. (vms_get_symbol_info): Refine the condition for 'T' type.
  1656. 2010-05-18 Tristan Gingold <gingold@adacore.com>
  1657. * vms-alpha.c (_bfd_vms_write_emh): New function.
  1658. (_bfd_vms_write_lmn): New function.
  1659. (_bfd_vms_write_eeom): Moved.
  1660. (hash_string): Likewise.
  1661. (_bfd_vms_length_hash_symbol): Likewise.
  1662. (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
  1663. and _bfd_vms_write_lmn, and call these functions.
  1664. 2010-05-18 Tristan Gingold <gingold@adacore.com>
  1665. * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
  1666. Add details in the messages.
  1667. (evax_bfd_print_image): Change message.
  1668. 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
  1669. PR gas/11600
  1670. * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
  1671. (elf_fake_sections): Likewise.
  1672. * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
  1673. SHF_EXCLUDE here.
  1674. * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
  1675. 2010-05-17 Tristan Gingold <gingold@adacore.com>
  1676. * vms-alpha.c: Include esgps.h and eidc.h.
  1677. (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
  1678. (evax_bfd_print_egsd_flags): New function, extracted from ...
  1679. (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
  1680. EGSD__C_SPSC and EGSD__C_IDC.
  1681. 2010-05-14 Tristan Gingold <gingold@adacore.com>
  1682. * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
  1683. (_bfd_vms_get_object_record): Handle align byte only in the
  1684. foreign case.
  1685. 2010-05-14 Tristan Gingold <gingold@adacore.com>
  1686. * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
  1687. * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
  1688. * libbfd.h: Regenerate.
  1689. * configure.in (havevecs): Define HAVE_all_vecs when
  1690. --enable-targets=all is set. Use AC_SUBST on it.
  1691. (tdefaults): Do not add havevecs.
  1692. (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
  1693. * configure: Regenerate.
  1694. * Makefile.am (HAVEVECS): New variable.
  1695. (INCLUDES): Add HAVEVECS.
  1696. * Makefile.in: Regenerate.
  1697. * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
  1698. target is selected. Add #ifdef/#endif around vms specific code.
  1699. (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
  1700. bfd_elfNN_archive_slurp_extended_name_table,
  1701. bfd_elfNN_archive_construct_extended_name_table,
  1702. bfd_elfNN_archive_truncate_arname,
  1703. bfd_elfNN_archive_write_armap,
  1704. bfd_elfNN_archive_read_ar_hdr,
  1705. bfd_elfNN_archive_write_ar_hdr,
  1706. bfd_elfNN_archive_openr_next_archived_file,
  1707. bfd_elfNN_archive_get_elt_at_index,
  1708. bfd_elfNN_archive_generic_stat_arch_elt,
  1709. bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
  1710. 2010-05-11 Jie Zhang <jie@codesourcery.com>
  1711. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
  1712. Tag_ABI_HardFP_use correctly.
  1713. 2010-05-11 Alan Modra <amodra@gmail.com>
  1714. * coffcode.h (coff_write_object_contents): Enclose all occurrences
  1715. of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
  1716. 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
  1717. * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
  1718. sym_name to improve packing.
  1719. (cortex_a8_erratum_scan): Check for PLT entries.
  1720. (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
  1721. 2010-05-07 Tristan Gingold <gingold@adacore.com>
  1722. * Makefile.in: Regenerate with automake 1.11.1.
  1723. * aclocal.m4: Ditto.
  1724. 2010-05-05 Nick Clifton <nickc@redhat.com>
  1725. * po/es.po: Updated Spanish translation.
  1726. 2010-05-03 Tristan Gingold <gingold@adacore.com>
  1727. * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
  1728. selective_search flag.
  1729. Add comments.
  1730. * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
  1731. before output_has_begun is set.
  1732. 2010-05-03 Tristan Gingold <gingold@adacore.com>
  1733. * vms-alpha.c: Add comments.
  1734. (struct vms_private_data_struct): Remove image_autoextend field.
  1735. (dst_check_allocation): Removed.
  1736. (image_write): Remove call to dst_check_allocation.
  1737. (vms_slurp_debug): Do not set image_autoextend. Adjust section
  1738. size.
  1739. (_bfd_vms_slurp_object_records): Remove useless new_type variable.
  1740. (alpha_vms_write_exec): Use dst_section to get the dst section.
  1741. Write the dmt section.
  1742. (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
  1743. (alpha_vms_read_sections_content): Do not set image_autoextend.
  1744. (alpha_vms_bfd_final_link): Generate the dst.
  1745. 2010-05-03 Tristan Gingold <gingold@adacore.com>
  1746. * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
  1747. next array.
  1748. (vms_lib_dcx): Adjust for the above change.
  1749. 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
  1750. PR ld/11542
  1751. * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
  1752. * elf32-i386.c (elf_i386_relocate_section): Use it.
  1753. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1754. 2010-04-30 Tristan Gingold <gingold@adacore.com>
  1755. * vms-lib.c (vms_read_block): New function.
  1756. (vms_traverse_index): Use vms_read_block. Handle long key names.
  1757. 2010-04-30 Tristan Gingold <gingold@adacore.com>
  1758. * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
  1759. and syms removed.
  1760. (struct carsym_mem): New structure.
  1761. (vms_add_index): New function.
  1762. (vms_add_indexes_from_list): New function.
  1763. (vms_traverse_index): Parameter carsym changed to carsym_mem.
  1764. Code adjusted to handle elfidx.
  1765. (vms_lib_read_index): Adjusted for vms_traverse_index changes.
  1766. Parameter NBREL is now a pointer.
  1767. (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
  1768. archives.
  1769. (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
  1770. (_bfd_vms_lib_find_symbol): Ditto.
  1771. (vms_lib_bopen): Fix two typos: return FALSE in case of error,
  1772. check MHD id.
  1773. (_bfd_vms_lib_get_module): New function.
  1774. (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
  1775. function.
  1776. (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
  1777. (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
  1778. (vms_write_index): Adjust for structure renamed.
  1779. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
  1780. changes of _bfd_vms_lib_find_symbol.
  1781. 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
  1782. * config.bfd: Correct accidential reverted patch
  1783. about vax*-*-*vms*.
  1784. 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
  1785. * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
  1786. to USE_MINGW64_LEADING_UNDERSCORES.
  1787. * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
  1788. * config.bfd: Change underscoring default for x64 mingw
  1789. to false.
  1790. * coffcode.h (coff_write_relocs): Add check that dereferenced
  1791. sym_ptr_ptr isn't NULL.
  1792. * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
  1793. * configure: Regenerated.
  1794. * configure.in: Add option '--enable-leading-mingw64-underscores'
  1795. and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
  1796. 2010-04-27 Nick Clifton <nickc@redhat.com>
  1797. PR binutils/11512
  1798. * coffgen.c (coff_find_nearest_line): Incldue the section address
  1799. of function name symbols in address comparisons.
  1800. 2010-04-27 Nick Clifton <nickc@redhat.com>
  1801. * po/fr.po: Updated French translation.
  1802. 2010-04-23 Alan Modra <amodra@gmail.com>
  1803. * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
  1804. ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
  1805. throughout file.
  1806. (assign_file_positions_for_load_sections): Modify section in
  1807. segment warning to ignore overlay vmas.
  1808. * elf32-spu.c (spu_elf_object_p): Replace use of
  1809. ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
  1810. 2010-04-22 Nick Clifton <nickc@redhat.com>
  1811. * po/bfd.pot: Updated by the Translation project.
  1812. * po/vi.po: Updated Vietnamese translation.
  1813. 2010-04-22 Alan Modra <amodra@gmail.com>
  1814. * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
  1815. change. Tidy. Don't error on sections not allocated in segment.
  1816. 2010-04-15 Andrew Haley <aph@redhat.com>
  1817. * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
  1818. merge_exidx_entries.
  1819. * bfd-in2.h: Likewise.
  1820. * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
  1821. control merging of exidx entries.
  1822. 2010-04-20 Joseph Myers <joseph@codesourcery.com>
  1823. * elf32-tic6x.h: New.
  1824. * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
  1825. * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
  1826. elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
  1827. elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
  1828. elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
  1829. bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
  1830. (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
  1831. elf32_tic6x_relocate_section): Handle REL relocations.
  1832. (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
  1833. 2010-04-20 Jakub Jelinek <jakub@redhat.com>
  1834. * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
  1835. DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
  1836. 2010-04-19 Nick Clifton <nickc@redhat.com>
  1837. * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
  1838. arhdrpos variable.
  1839. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
  1840. attribute to warned variable. Remove unused val, type and type2
  1841. variables.
  1842. 2010-04-16 Andreas Schwab <schwab@redhat.com>
  1843. * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
  1844. strict-aliasing rules.
  1845. 2010-04-16 Tristan Gingold <gingold@adacore.com>
  1846. * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
  1847. (_bfd_vms_get_object_record): Always assume there is a pad byte
  1848. for alignment.
  1849. * vms-lib.c: Add a few comments.
  1850. 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  1851. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
  1852. attributes in v2.08 of the ABI.
  1853. 2010-04-15 Alan Modra <amodra@gmail.com>
  1854. * config.bfd (vax*-*-*vms*): Delete.
  1855. 2010-04-14 Tristan Gingold <gingold@adacore.com>
  1856. * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
  1857. vms-tir.lo, vms.lo and add vms-alpha.lo
  1858. (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
  1859. vms-tir.c, vms.c and add vms-alpha.c
  1860. * Makefile.in: Regenerate.
  1861. * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
  1862. Remove vms_vax_vec.
  1863. * configure: Regenerate.
  1864. * targets.c (vms_vax_vec): Remove the declaration.
  1865. (_bfd_target_vector): Remove vms_vax_vec.
  1866. * vms-alpha.c: New file.
  1867. * vms-gsd.c: Removed, rewritten in vms-alpha.c
  1868. * vms-hdr.c: Ditto.
  1869. * vms-tir.c: Ditto.
  1870. * vms.c: Ditto.
  1871. * vms-misc.c: Fix indentation and comments. Replace most of
  1872. #if VMS_DEBUG/vms_debug with vms_debug2.
  1873. (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
  1874. (hash_string): Ditto.
  1875. (_bfd_vms_length_hash_symbol): Ditto.
  1876. (maybe_adjust_record_pointer_for_object): Ditto.
  1877. (_bfd_vms_get_object_record): Ditto.
  1878. (vms_get_remaining_object_record): Ditto.
  1879. (_bfd_vms_push): Ditto.
  1880. (_bfd_vms_pop): Ditto.
  1881. (_bfd_vms_get_header_values): Removed.
  1882. (_bfd_vms_get_first_record): Removed.
  1883. (vms_get_remaining_image_record): Removed.
  1884. (new_symbol): Removed.
  1885. (_bfd_vms_enter_symbol): Removed.
  1886. (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
  1887. (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
  1888. parameter with struct vms_rec_wr.
  1889. (_bfd_vms_output_push): Removed and replaced by ...
  1890. (_bfd_vms_output_begin_subrec): ... new function.
  1891. (_bfd_vms_output_alignment): Replace bfd parameter with
  1892. struct vms_rec_wr, and adjust.
  1893. (_bfd_vms_output_check): Ditto
  1894. (_bfd_vms_output_byte): Ditto.
  1895. (_bfd_vms_output_short): Ditto.
  1896. (_bfd_vms_output_long): Ditto.
  1897. (_bfd_vms_output_quad): Ditto.
  1898. (_bfd_vms_output_counted): Ditto.
  1899. (_bfd_vms_output_dump): Ditto.
  1900. (_bfd_vms_output_fill): Ditto.
  1901. (_bfd_vms_output_pop): Removed and replaced by ...
  1902. (_bfd_vms_output_end_subrec): ... new function.
  1903. (_bfd_vms_output_flush): Removed.
  1904. (_bfd_vms_output_align): New function.
  1905. (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
  1906. parameter.
  1907. (vms_convert_to_var): New function imported from vms.c
  1908. (vms_convert_to_var_1): Ditto.
  1909. (vms_convert_to_var_unix_filename): Ditto.
  1910. (vms_get_module_name): Ditto.
  1911. (get_vms_time_string): Ditto.
  1912. (vms_time_to_time_t): Ditto.
  1913. (vms_rawtime_to_time_t): Ditto.
  1914. * vms.h: All macros for the VMS file format are now in include/vms.
  1915. Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
  1916. have been removed.
  1917. (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
  1918. (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
  1919. (struct funcinfo, struct vms_private_data_struct): Ditto.
  1920. (struct vms_section_data_struct): Ditto.
  1921. (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
  1922. (vms_get_module_name, get_vms_time_string): New declarations.
  1923. (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
  1924. (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
  1925. (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
  1926. (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
  1927. (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
  1928. (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
  1929. (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
  1930. (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
  1931. (_bfd_vms_output_fill): Ditto.
  1932. (bfd_vms_set_section_flags): Ditto.
  1933. 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  1934. * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
  1935. exit due to merging the same weak symbol to test that the symbols are
  1936. actually weak.
  1937. 2010-04-13 Alan Modra <amodra@gmail.com>
  1938. * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
  1939. when optimizing high got_tlsgd/ld insns.
  1940. 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
  1941. * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
  1942. define.
  1943. (HAVE_PRSTATUS32_T): Likewise.
  1944. 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
  1945. PR corefiles/11467
  1946. * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
  1947. for x86_64-*-linux*.
  1948. * config.in: Regenerated.
  1949. * configure: Likewise.
  1950. * elf.c: Include CORE_HEADER if it is defined.
  1951. 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
  1952. Jan Kratochvil <jan.kratochvil@redhat.com>
  1953. * hosts/x86-64linux.h: New.
  1954. 2010-04-09 Nick Clifton <nickc@redhat.com>
  1955. * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
  1956. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
  1957. variables htab and hdr_info and mark info parameter as unused.
  1958. * elf.c (prep_headers): Remove unused variable i_phdrp.
  1959. (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
  1960. * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
  1961. as unused.
  1962. * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
  1963. * verilog.c (verilog_write_section): Remove unused variable
  1964. address.
  1965. 2010-04-07 Alan Modra <amodra@gmail.com>
  1966. * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
  1967. * configure: Regenerate.
  1968. 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
  1969. PR ld/11434
  1970. * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
  1971. 2010-04-06 Tristan Gingold <gingold@adacore.com>
  1972. * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
  1973. 2010-04-05 Jakub Jelinek <jakub@redhat.com>
  1974. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
  1975. provided that it has the expected address size and zero segment
  1976. length.
  1977. * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
  1978. (struct line_info): Add op_index field, change end_sequence type to
  1979. unsigned char.
  1980. (new_line_sorts_after): For the same address compare op_index.
  1981. (add_line_info): Add op_index argument, store it into the structure.
  1982. (decode_line_info): Complain about unknown versions of .debug_line.
  1983. Initialize maximum_ops_per_insn. Add op_index state register and
  1984. track it.
  1985. 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
  1986. * elf32-ppc.c (apuinfo_set): New static var.
  1987. (ppc_elf_begin_write_processing): Set it here, always create an
  1988. APUinfo section if there were any in the inputs.
  1989. (ppc_elf_write_section): Check apuinfo_set.
  1990. (ppc_elf_final_write_processing): Likewise.
  1991. 2010-04-01 Tristan Gingold <gingold@adacore.com>
  1992. * vms.h: Include time.h. Add prototypes for vms_get_module_name,
  1993. vms_time_to_time_t and vms_rawtime_to_time_t.
  1994. * vms.c (vms_alpha_vec): Add archives support.
  1995. * vms-misc.c: Include safe-ctype.h
  1996. (vms_get_module_name): New function.
  1997. (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
  1998. * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
  1999. vms_get_module_name function. Use this function.
  2000. * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
  2001. * libbfd-in.h: Add prototype for _bfd_append_relative_path.
  2002. Add prototypes for vms-lib.c
  2003. * libbfd.h: Regenerate.
  2004. * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
  2005. vms-lib.lo to vms_alpha_vec.
  2006. * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
  2007. * configure: Regenerate.
  2008. * bfd.c: Add selective_search field.
  2009. * bfd-in2.h: Regenerate.
  2010. * archive.c (append_relative_path): Rename to
  2011. _bfd_append_relative_path and make it public.
  2012. (_bfd_get_elt_at_filepos): Adjust for above renaming.
  2013. * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
  2014. (BFD32_BACKENDS_CFILES): Add vms-lib.c
  2015. * Makefile.in: Regenerate.
  2016. 2010-04-01 Jakub Jelinek <jakub@redhat.com>
  2017. * dwarf2.c (read_attribute_value): Handle CU version 4
  2018. for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
  2019. and DW_FORM_flag_present. For unknown form value return NULL.
  2020. (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
  2021. like DW_FORM_block.
  2022. (parse_comp_unit): Allow CU version 4.
  2023. 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
  2024. * elf32-cris.c (cris_elf_relocate_section): Correct first argument
  2025. to _bfd_elf_get_dynamic_reloc_section.
  2026. (elf_cris_discard_excess_dso_dynamics): Ditto.
  2027. 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
  2028. * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
  2029. * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
  2030. 2010-03-31 Alan Modra <amodra@gmail.com>
  2031. * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
  2032. TPREL16_HI and TPREL16_HA insns.
  2033. 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
  2034. PR ld/11458
  2035. * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
  2036. assert of empty pcrel_relocs_copied on the direct symbol. Instead
  2037. of moving the list from the indirect symbol to the direct symbol,
  2038. merge into any existing list.
  2039. (cris_elf_check_relocs): Store the original section in the
  2040. pcrel_relocs_copied list, not the relocation section.
  2041. (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
  2042. the relocation section, for reducing its size. Change the
  2043. BFD_ASSERT into a check for the section being read-only, and only
  2044. emit warnings and TEXTREL marker when there's an entry for a
  2045. read-only section.
  2046. 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
  2047. * elf32-arm.c (using_thumb_only): Handle v6-M.
  2048. 2010-03-26 Alan Modra <amodra@gmail.com>
  2049. * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
  2050. * bfd-in.h (elf_discarded_section): Clarify comment.
  2051. * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
  2052. * bfd-in2.h: Regenerate.
  2053. 2010-03-26 Matt Rice <ratmice@gmail.com>
  2054. * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
  2055. as unique in the armap.
  2056. 2010-03-26 Alan Modra <amodra@gmail.com>
  2057. PR ld/11375
  2058. * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
  2059. possible stub on branches.
  2060. 2010-03-25 Joseph Myers <joseph@codesourcery.com>
  2061. * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
  2062. (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
  2063. (BFD32_BACKENDS): Add elf32-tic6x.lo.
  2064. (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
  2065. * Makefile.in: Regenerate.
  2066. * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
  2067. (bfd_archures_list): Update.
  2068. * config.bfd (tic6x-*-elf): New.
  2069. * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
  2070. New.
  2071. * configure: Regenerate.
  2072. * cpu-tic6x.c, elf32-tic6x.c: New.
  2073. * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
  2074. BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
  2075. BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
  2076. BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
  2077. BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
  2078. BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
  2079. BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
  2080. BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
  2081. BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
  2082. BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
  2083. BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
  2084. BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
  2085. BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
  2086. * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
  2087. (_bfd_target_vector): Update.
  2088. * bfd-in2.h, libbfd.h: Regenerate.
  2089. 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
  2090. * aout-target.h: Update copyright year.
  2091. * aout-tic30.c: Likewise.
  2092. * coff-alpha.c: Likewise.
  2093. * coff-rs6000.c: Likewise.
  2094. * coff64-rs6000.c: Likewise.
  2095. * elf64-mips.c: Likewise.
  2096. * ieee.c: Likewise.
  2097. * libecoff.h: Likewise.
  2098. * mach-o-target.c: Likewise.
  2099. * mach-o.c: Likewise.
  2100. * oasys.c: Likewise.
  2101. * targets.c: Likewise.
  2102. 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
  2103. * libbfd-in.h: Update copyright year.
  2104. 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
  2105. PR ld/11413
  2106. * elflink.c (_bfd_elf_add_default_symbol): Check !executable
  2107. instead of shared.
  2108. 2010-03-19 Jie Zhang <jie@codesourcery.com>
  2109. * elf32-arm.c (struct section_list): Remove.
  2110. (section_list): Remove typedef.
  2111. (record_section_with_arm_elf_section_data): Remove.
  2112. (find_arm_elf_section_entry): Remove.
  2113. (get_arm_elf_section_data): Use is_arm_elf.
  2114. (unrecord_section_with_arm_elf_section_data): Remove.
  2115. (elf32_arm_new_section_hook): Don't call
  2116. record_section_with_arm_elf_section_data.
  2117. (elf32_arm_write_section): Set mapcount to -1 when
  2118. the map has been used. Don't call
  2119. unrecord_section_with_arm_elf_section_data.
  2120. (unrecord_section_via_map_over_sections): Remove.
  2121. (elf32_arm_close_and_cleanup): Remove.
  2122. (elf32_arm_bfd_free_cached_info): Remove.
  2123. (bfd_elf32_close_and_cleanup): Don't define.
  2124. (bfd_elf32_bfd_free_cached_info): Don't define.
  2125. 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
  2126. PR binutils/11396
  2127. * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
  2128. * libcoff.h: Regenerated.
  2129. * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
  2130. if dont_strip_reloc is set.
  2131. (_bfd_XX_bfd_copy_private_bfd_data_common): Set
  2132. dont_strip_reloc on output if there is no .reloc and
  2133. IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
  2134. 2010-03-18 Wei Guozhi <carrot@google.com>
  2135. PR gas/11323
  2136. * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
  2137. R_ARM_GOT_PREL.
  2138. * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
  2139. * bfd-in2.h: Regenerate.
  2140. * libbfd.h: Regenerate.
  2141. 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
  2142. * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
  2143. (BFD_RELOC_SPU_STUB): Likewise.
  2144. 2010-03-17 Jie Zhang <jie@codesourcery.com>
  2145. * elf.c (assign_file_positions_for_load_sections): Avoid
  2146. overflow.
  2147. 2010-03-17 Alan Modra <amodra@gmail.com>
  2148. PR binutils/11382
  2149. * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
  2150. proper type.
  2151. 2010-03-17 Alan Modra <amodra@gmail.com>
  2152. * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
  2153. 2010-03-16 Alan Modra <amodra@gmail.com>
  2154. * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
  2155. (ppc64_elf_edit_toc): Set it here.
  2156. (ha_reloc_match): New function.
  2157. (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
  2158. 2010-03-15 Alan Modra <amodra@gmail.com>
  2159. * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
  2160. * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
  2161. 2010-03-14 Alan Modra <amodra@gmail.com>
  2162. PR ld/11378
  2163. * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
  2164. * elf64-ppc.c (call_check_done): Define.
  2165. (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
  2166. (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
  2167. (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
  2168. (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
  2169. Simplify return logic. Iterate over all .init and .fini fragments
  2170. by recursion. Set makes_toc_func_call here..
  2171. (ppc64_elf_next_input_section): ..rather than here.
  2172. (check_pasted_section, ppc64_elf_check_init_fini): New functions.
  2173. 2010-03-13 Alan Modra <amodra@gmail.com>
  2174. PR ld/11375
  2175. * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
  2176. function descriptor symbol if there is one, not just for plt stubs.
  2177. (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
  2178. 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2179. * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
  2180. version twice.
  2181. Skip it when constructing def.vd_next.
  2182. * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
  2183. bfd_elf32_i386_sol2_vec.
  2184. (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
  2185. (elf32_bed): Redefine to elf32_i386_sol2_bed.
  2186. (elf_backend_want_plt_sym): Redefine to 1.
  2187. * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
  2188. bfd_elf64_x86_64_sol2_vec.
  2189. (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
  2190. (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
  2191. (elf_backend_want_plt_sym): Redefine to 1.
  2192. * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
  2193. bfd_elf32_i386_sol2_vec.
  2194. Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
  2195. targ64_selvecs.
  2196. (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
  2197. Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
  2198. targ_selvecs.
  2199. * configure.in: Handle bfd_elf32_i386_sol2_vec,
  2200. bfd_elf64_x86_64_sol2_vec.
  2201. * configure: Regenerate.
  2202. * targets.c (bfd_elf32_i386_sol2_vec): Declare.
  2203. (bfd_elf64_x86_64_sol2_vec): Declare.
  2204. (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
  2205. bfd_elf64_x86_64_sol2_vec.
  2206. 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
  2207. * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
  2208. sections.
  2209. 2010-03-04 Alan Modra <amodra@gmail.com>
  2210. PR 11302
  2211. * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
  2212. (read_attribute_value, decode_line_info): Likewise.
  2213. (add_line_info, read_rangelist): Return FALSE on alloc failures.
  2214. (arange_add, sort_line_sequences): Likewise.
  2215. (find_abstract_instance_name): Handle failures from called funcs.
  2216. (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
  2217. (find_line): Realloc to a temp, and handle alloc fail.
  2218. 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
  2219. * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
  2220. a mapping symbol to an empty section.
  2221. 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  2222. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
  2223. return value from the call to _bfd_elf_merge_object_attributes.
  2224. 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
  2225. Alan Modra <amodra@gmail.com>
  2226. * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
  2227. destination mode of the a8 stub.
  2228. (elf32_arm_link_hash_table): Add top_id field.
  2229. (elf32_arm_link_hash_table_create): Initialize top_id.
  2230. (arm_type_of_stub): Update prototype, st_type can now be updated
  2231. by this function. Actual destination address in case of PLT is
  2232. computed here, to help factorizing code.
  2233. (elf32_arm_stub_name): Update prototype, use stub_type additional
  2234. parameter to build stub name.
  2235. (elf32_arm_get_stub_entry): Update prototype, use stub_type
  2236. additional parameter to build stub entry.
  2237. (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
  2238. put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
  2239. Call elf32_arm_final_link_relocate to process all in-stub
  2240. relocations.
  2241. (elf32_arm_setup_section_lists): Update top_id.
  2242. (cortex_a8_erratum_scan): Record stub destination mode.
  2243. (elf32_arm_size_stubs): Update call to arm_type_of_stub according
  2244. to new prototype.
  2245. (elf32_arm_final_link_relocate): Enable processing of in-stub
  2246. REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
  2247. needed, enabling code factorization.
  2248. (elf32_arm_final_link): Process stub sections.
  2249. (elf32_arm_output_map_sym): Add entry to code/data map.
  2250. 2010-03-01 David S. Miller <davem@davemloft.net>
  2251. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
  2252. h->def_regular, set h->ref_regular.
  2253. (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
  2254. and dynamic relocations if h->ref_regular.
  2255. * elfxx-sparc.c (struct elf_reloc_map): Delete.
  2256. (sparc_reloc_map): Delete.
  2257. (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
  2258. relocation type in switch statements.
  2259. 2010-02-25 Alan Modra <amodra@gmail.com>
  2260. PR ld/11304
  2261. * elf.c (_bfd_elf_init_private_section_data): Rename need_group
  2262. to final_link and invert. For final link allow some flags to
  2263. differ. Don't specially allow flags to be all zero.
  2264. 2010-02-24 Alan Modra <amodra@gmail.com>
  2265. PR binutils/10858
  2266. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
  2267. SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
  2268. table.
  2269. 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
  2270. PR binutils/11297
  2271. * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
  2272. (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
  2273. 2010-02-22 Alan Modra <amodra@gmail.com>
  2274. * reloc.c (bfd_check_overflow): When forming addrmask, shift
  2275. fieldmask left by rightshift.
  2276. (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
  2277. overflow checks.
  2278. 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
  2279. * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
  2280. STT_GNU_IFUNC on large common symbol.
  2281. 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
  2282. * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
  2283. has_ifunc_symbols if the symbol comes from a shared library.
  2284. * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
  2285. * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
  2286. * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
  2287. * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
  2288. * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
  2289. 2010-02-19 Alan Modra <amodra@gmail.com>
  2290. * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
  2291. (_bfd_elf_copy_private_header_data): ..here.
  2292. * elflink.c (_bfd_elf_size_group_sections): New function.
  2293. (bfd_elf_size_dynamic_sections): Call it.
  2294. * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
  2295. (_bfd_elf_fixup_group_sections): Declare.
  2296. 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  2297. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
  2298. merging Tag_DIV_use, Tag_MPextension_use, and
  2299. Tag_MPextension_use_legacy tags.
  2300. 2010-02-18 Alan Modra <amodra@gmail.com>
  2301. * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
  2302. commit. Don't write zeros for removed group members.
  2303. (_bfd_elf_copy_private_header_data): Adjust size of group section
  2304. when group members are removed by objcopy.
  2305. 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
  2306. PR binutils/11280
  2307. * configure.host (*-*-solaris2.11): Add host define to select
  2308. valid default code page for windres/windmc on solaris.
  2309. 2010-02-15 Nick Clifton <nickc@redhat.com>
  2310. * po/vi.po: Updated Vietnamese translation.
  2311. 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
  2312. * elf32-arm.c (elf32_arm_output_arch_local_syms): add
  2313. missing mapping symbol to data only sections.
  2314. 2010-02-11 David S. Miller <davem@davemloft.net>
  2315. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
  2316. and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
  2317. symbols.
  2318. (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
  2319. these relocs on global symbols.
  2320. (gdopoff): New.
  2321. (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
  2322. local symbol references which are not STT_GNU_IFUNC. Handle
  2323. relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
  2324. and deal with negative vs. non-negative values properly.
  2325. 2010-02-09 Tristan Gingold <gingold@adacore.com>
  2326. * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
  2327. non-external relocation.
  2328. 2010-02-09 Alan Modra <amodra@gmail.com>
  2329. * elf64-ppc.c (merge_got_entries): Move earlier in file.
  2330. (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
  2331. (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
  2332. (ppc64_elf_layout_multitoc): Don't resize if we have already
  2333. merged got entries.
  2334. 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
  2335. * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
  2336. elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
  2337. elfcore_write_s390_prefix): New.
  2338. * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
  2339. elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
  2340. elfcore_write_s390_prefix): New.
  2341. (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
  2342. NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
  2343. (elfcore_write_register_note): Handle .reg-s390-timer,
  2344. .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
  2345. .reg-s390-prefix section.
  2346. 2010-02-09 Alan Modra <amodra@gmail.com>
  2347. * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
  2348. unsigned char. Update variables and code using them throughout file.
  2349. (struct ppc_link_hash_entry): Likewise for tls_mask.
  2350. * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
  2351. * elf64-ppc.c (has_small_toc_reloc): Don't define.
  2352. (makes_toc_func_call, call_check_in_progress): Shuffle flags.
  2353. (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
  2354. code setting the flag.
  2355. (ppc64_elf_next_toc_section): Group big-toc sections in
  2356. 0x80008000 chunks.
  2357. 2010-02-08 David S. Miller <davem@davemloft.net>
  2358. * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
  2359. srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
  2360. * elfxx-sparc.c (create_got_section): Delete.
  2361. (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
  2362. section creator does that work for us. Use ->elf.foo instead of
  2363. ->foo where applicable.
  2364. (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
  2365. where applicable.
  2366. (allocate_dynrelocs): Likewise.
  2367. (_bfd_sparc_elf_size_dynamic_sections): Likewise.
  2368. (_bfd_sparc_elf_relocate_section): Likewise.
  2369. (sparc_vxworks_build_plt_entry): Likewise.
  2370. (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
  2371. (sparc_finish_dyn): Likewise.
  2372. (sparc_vxworks_finish_exec_plt): Likewise.
  2373. (sparc_vxworks_finish_shared_plt): Likewise.
  2374. (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
  2375. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
  2376. macros for visibilty and locality checks.
  2377. (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
  2378. (allocate_dynrelocs): Likewise.
  2379. (_bfd_sparc_elf_relocate_section): Likewise.
  2380. (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
  2381. * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
  2382. but never used local var 'dynobj'.
  2383. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
  2384. nocopyreloc.
  2385. * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
  2386. (BFD_RELOC_SPARC_IRELATIVE): Likewise.
  2387. * bfd-in2.h: Regenerate.
  2388. * libbfd.h: Regenerate.
  2389. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
  2390. and loc_hash_memory.
  2391. (_bfd_sparc_elf_link_hash_table_free): Declare.
  2392. * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
  2393. (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
  2394. bfd_elf32_bfd_link_hash_table_free): Define.
  2395. * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
  2396. has_ifunc_symbols if STT_GNU_IFUNC.
  2397. (bfd_elf64_bfd_link_hash_table_free): Define.
  2398. (elf_backend_post_process_headers): Define always.
  2399. * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
  2400. (sparc_reloc_map): Add entries for new IFUNC relocs.
  2401. (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
  2402. (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
  2403. (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
  2404. elf_sparc_get_local_sym_hash): New.
  2405. (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
  2406. from here...
  2407. (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
  2408. local hash table.
  2409. (_bfd_sparc_elf_link_hash_table_free): New.
  2410. (create_ifunc_sections): New.
  2411. (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
  2412. and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
  2413. cons up a fake local hash table entry for it. Unconditionally add
  2414. a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
  2415. dyn relocs for ifunc.
  2416. (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
  2417. (allocate_dynrelocs): Unconditionally emit a PLT entry when
  2418. STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
  2419. (allocate_local_dynrelocs): New function.
  2420. (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
  2421. table. Emit dynamic relocs to irelplt when not shared. Treat iplt
  2422. like splt.
  2423. (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
  2424. (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
  2425. plt in iplt/irelplt.
  2426. 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
  2427. * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
  2428. max_contents_size, only consider sections whose contents must
  2429. be swapped in.
  2430. 2010-02-09 Alan Modra <amodra@gmail.com>
  2431. * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
  2432. (ppc64_elf_size_dynamic_sections): ..and here..
  2433. (merge_got_entries): ..rather than here.
  2434. 2010-02-09 Alan Modra <amodra@gmail.com>
  2435. * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
  2436. (has_small_toc_reloc): Define.
  2437. (ppc64_elf_check_relocs): Set the above flags.
  2438. (ppc64_elf_edit_opd): Delete obfd param.
  2439. (ppc64_elf_tls_optimize): Likewise.
  2440. (ppc64_elf_edit_toc): Likewise.
  2441. (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
  2442. * elf64-ppc.h: Update prototypes.
  2443. 2010-02-08 Alan Modra <amodra@gmail.com>
  2444. * section.c (struct bfd_section): Delete has_tls_reloc,
  2445. has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
  2446. Add sec_flg0 thru sec_flg5.
  2447. (BFD_FAKE_SECTION): Update for changed flags.
  2448. * ecoff.c (bfd_debug_section): Likewise.
  2449. * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
  2450. * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
  2451. (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
  2452. * elf32-xtensa.c (reloc_done): Define.
  2453. * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
  2454. * bfd-in2.h: Regenerate.
  2455. 2010-02-08 Tristan Gingold <gingold@adacore.com>
  2456. * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
  2457. for non-scattered relocations.
  2458. 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
  2459. * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
  2460. apuinfo sections, only scan input sections once and reuse the
  2461. buffer.
  2462. 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
  2463. * archures.c (bfd_mach_ppc_titan): Define.
  2464. * bfd-in2.h: Regenerate.
  2465. * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
  2466. 2010-02-08 Alan Modra <amodra@gmail.com>
  2467. * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
  2468. 2010-02-05 Sterling Augustine <sterling@tensilica.com>
  2469. * elf.c (assign_file_positions_for_load_sections) Update lma of
  2470. section if necessary. Fixes Bugzilla 11219.
  2471. 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
  2472. * elf32-i386.c: Remove trailing white spaces.
  2473. * elf64-x86-64.c: Likewise.
  2474. 2010-02-03 Nick Clifton <nickc@redhat.com>
  2475. * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
  2476. entries for other architectures.
  2477. (struct elf_link_hash_table): Add hash_table_id field.
  2478. (elf_hash_table_id): New accessor macro.
  2479. * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
  2480. parameter.
  2481. * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
  2482. returning cast pointer.
  2483. (elf32_mn10300_link_hash_table_create): Identify new table as
  2484. containing MN10300 extensions.
  2485. (mn10300_elf_relax_section): Check pointer returned by
  2486. elf32_mn10300_hash_table.
  2487. * elf32-arm.c: Likewise, except using ARM extensions.
  2488. * elf32-avr.c: Likewise, except using AVR extensions.
  2489. * elf32-bfin.c: Likewise, except using BFIN extensions.
  2490. * elf32-cris.c: Likewise, except using CRIS extensions.
  2491. * elf32-frv.c: Likewise, except using FRV extensions.
  2492. * elf32-hppa.c: Likewise, except using HPPA32 extensions.
  2493. * elf32-i386.c: Likewise, except using I386 extensions.
  2494. * elf32-lm32.c: Likewise, except using LM32 extensions.
  2495. * elf32-m32r.c: Likewise, except using M32RM extensions.
  2496. * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
  2497. * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
  2498. * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
  2499. * elf32-m68k.c: Likewise, except using M68K extensions.
  2500. * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
  2501. * elf32-ppc.c: Likewise, except using PPC32 extensions.
  2502. * elf32-s390.c: Likewise, except using S390 extensions.
  2503. * elf32-sh.c: Likewise, except using SH extensions.
  2504. * elf32-spu.c: Likewise, except using SPU extensions.
  2505. * elf32-xtensa.c: Likewise, except using XTENSA extensions.
  2506. * elf64-alpha.c: Likewise, except using ALPHA extensions.
  2507. * elf64-hppa.c: Likewise, except using HPPA64 extensions.
  2508. * elf64-ppc.c: Likewise, except using PPC64 extensions.
  2509. * elf64-s390.c: Likewise, except using S390 extensions.
  2510. * elf64-x86-64.c: Likewise, except using X86_64 extensions.
  2511. * elfxx-ia64.c: Likewise, except using IA64 extensions.
  2512. * elfxx-mips.c: Likewise, except using MIPS extensions.
  2513. * elfxx-sparc.c: Likewise, except using SPARC extensions.
  2514. * elfxx-sparc.h: Likewise, except using SPARC extensions.
  2515. * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
  2516. redundant structure.
  2517. (elf32_cr16_hash_table): Delete unused macro.
  2518. (elf32_cr16_link_hash_traverse): Delete unused macro.
  2519. * elf32-score.c: Likewise.
  2520. * elf32-score7.c: Likewise.
  2521. * elf32-vax.c: Likewise.
  2522. * elf64-sh64.c: Likewise.
  2523. 2010-02-03 Alan Modra <amodra@gmail.com>
  2524. * elf64-ppc.c (struct plt_entry): Move earlier in file.
  2525. (struct got_entry): Likewise. Add is_indirect and got.ent fields.
  2526. (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
  2527. Update all uses.
  2528. (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
  2529. Remove no_multi_toc.
  2530. (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
  2531. when allocating a new struct got_entry.
  2532. (allocate_got): New function, extracted from..
  2533. (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
  2534. (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
  2535. .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
  2536. (ppc64_elf_setup_section_lists): Remove output_bfd param and
  2537. no_multi_toc, add add_stub_section and layout_sections_again. Stash
  2538. new params in htab. Extract some code to..
  2539. (ppc64_elf_start_multitoc_partition): ..here. New function.
  2540. (ppc64_elf_next_toc_section): Check for linker script errors. Handle
  2541. second pass toc scan.
  2542. (merge_got_entries, merge_global_got, reallocate_got): New functions.
  2543. (ppc64_elf_reinit_toc): Rename to..
  2544. (ppc64_elf_finish_multitoc_partition): ..this.
  2545. (ppc64_elf_layout_multitoc): New function.
  2546. (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
  2547. layout_sections_again params.
  2548. (ppc64_elf_relocate_section): Handle indirect got entries.
  2549. * elf64-ppc.h: Update prototypes. Declare new functions.
  2550. 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
  2551. * elf-bfd.h (elfcore_write_xstatereg): New.
  2552. * elf.c (elfcore_grok_xstatereg): New.
  2553. (elfcore_write_xstatereg): Likewise.
  2554. (elfcore_grok_note): Handle NT_X86_XSTATE.
  2555. (elfcore_write_register_note): Handle .reg-xstate section.
  2556. 2010-02-01 Tristan Gingold <gingold@adacore.com>
  2557. * som.c (som_write_ar_hdr): Define this macro.
  2558. 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2559. * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
  2560. R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
  2561. linkage table pointer to use the global table pointer if not doing
  2562. a shared link.
  2563. 2010-01-29 Joel Brobecker <brobecker@adacore.com>
  2564. * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
  2565. if it has already been set.
  2566. 2010-01-27 Tristan Gingold <gingold@adacore.com>
  2567. * vms.h: Remove trailing spaces.
  2568. (struct hdr_struct): Remove unused hdr_c_cpr field.
  2569. (enum file_format_enum): Add comments.
  2570. * vms.c (vms_bfd_print_private_bfd_data): New function that
  2571. replaces the macro.
  2572. Remove trailing spaces.
  2573. * vms-misc.c: Improve comments.
  2574. (_bfd_vms_get_object_record): Also handle files without pads.
  2575. * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
  2576. * vms-gsd.c (struct flagdescstruct): Make name field const.
  2577. (gsyflagdesc): Fix typo.
  2578. 2010-01-27 Alan Modra <amodra@gmail.com>
  2579. PR ld/11217
  2580. * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
  2581. (ppc64_elf_setup_section_lists): Init them.
  2582. (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
  2583. and .toc on the same input file.
  2584. (ppc64_elf_relocate_section): Correct GOT entry offset.
  2585. 2010-01-26 Tristan Gingold <gingold@adacore.com>
  2586. * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
  2587. (bfd_target): Add _bfd_write_ar_hdr_fn field.
  2588. * archive.c (is_bsd44_extended_name): New macro.
  2589. (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
  2590. (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
  2591. name.
  2592. (_bfd_archive_bsd44_construct_extended_name_table): New function.
  2593. (_bfd_generic_write_ar_hdr): Ditto.
  2594. (_bfd_bsd44_write_ar_hdr): Ditto.
  2595. (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
  2596. (bsd_write_armap): Adjust firstreal computation.
  2597. * libbfd-in.h (struct areltdata): Add extra_size field.
  2598. (_bfd_generic_write_ar_hdr): Add prototype.
  2599. (_bfd_bsd44_write_ar_hdr): Ditto.
  2600. (_bfd_write_ar_hdr): Define.
  2601. (_bfd_noarchive_write_ar_hdr): Ditto.
  2602. (_bfd_archive_bsd_write_ar_hdr): Ditto.
  2603. (_bfd_archive_coff_write_ar_hdr): Ditto.
  2604. (_bfd_archive_bsd44_slurp_armap): Ditto.
  2605. (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
  2606. (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
  2607. (_bfd_archive_bsd44_truncate_arname): Ditto.
  2608. (_bfd_archive_bsd44_write_armap): Ditto.
  2609. (_bfd_archive_bsd44_read_ar_hdr): Ditto.
  2610. (_bfd_archive_bsd44_write_ar_hdr): Ditto.
  2611. (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
  2612. (_bfd_archive_bsd44_get_elt_at_index): Ditto.
  2613. (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
  2614. (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
  2615. * libbfd.h: Regenerate.
  2616. * oasys.c (oasys_write_ar_hdr): Define.
  2617. * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
  2618. * ieee.c (ieee_write_ar_hdr): Define.
  2619. * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
  2620. * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
  2621. (bfd_pmac_xcoff_backend_data): Ditto.
  2622. * coff64-rs6000.c (rs6000coff64_vec): Ditto.
  2623. (bfd_xcoff_aix5_backend_data): Ditto.
  2624. * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
  2625. * aout-target.h (MY_write_ar_hdr): Define it if not defined.
  2626. * aout-tic30.c (MY_write_ar_hdr): Ditto.
  2627. * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
  2628. (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
  2629. (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
  2630. (bfd_mach_o_construct_extended_name_table)
  2631. (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
  2632. (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
  2633. (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
  2634. * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
  2635. (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
  2636. (bfd_mach_o_construct_extended_name_table)
  2637. (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
  2638. (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
  2639. (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
  2640. * bfd-in2.h: Regenerate.
  2641. 2010-01-26 Alan Modra <amodra@gmail.com>
  2642. H.J. Lu <hongjiu.lu@intel.com>
  2643. PR ld/11218
  2644. * elflink.c (elf_link_output_extsym): Do not ignore undefined
  2645. symbols with ref_regular set when gc_sections is active.
  2646. 2010-01-25 Alan Modra <amodra@gmail.com>
  2647. PR ld/11217
  2648. * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
  2649. with relocations against undefined weak symbols.
  2650. (ppc64_elf_relocate_section): Don't optimize calls to undefined
  2651. weak functions if the symbol is dynamic.
  2652. (ppc64_elf_relocate_section): Edit tprel tls sequences.
  2653. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  2654. (_bfd_elf_ppc_at_tprel_transform): New function.
  2655. * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
  2656. * bfd-in2.h: Regenerate.
  2657. 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
  2658. * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
  2659. (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
  2660. * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
  2661. bitsize to 1.
  2662. (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
  2663. 2010-01-21 Nick Clifton <nickc@redhat.com>
  2664. * elflink.c (elf_link_add_object_symbols): Look up name of
  2665. undefined symbol both before and after versioning has been
  2666. applied. Do not bother with symbols that are weakly undefined.
  2667. 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  2668. * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
  2669. (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
  2670. 2010-01-19 Cary Coutant <ccoutant@google.com>
  2671. * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
  2672. 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
  2673. Alan Modra <amodra@gmail.com>
  2674. * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
  2675. (elf_object_p): Read e_phnum extension.
  2676. (elf_write_shdrs_and_ehdr): Write e_phnum extension.
  2677. * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
  2678. that we can read last program header.
  2679. 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  2680. * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
  2681. R_ARM_THM_CALL entry.
  2682. (elf32_arm_final_link_relocate): Correct calculation of
  2683. reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
  2684. or R_ARM_THM_JUMP24 relocation.
  2685. 2010-01-18 Alan Modra <amodra@gmail.com>
  2686. PR 11168
  2687. * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
  2688. block past vars in COFF_IMAGE_WITH_PE block. Report error on more
  2689. than 32k sections.
  2690. 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  2691. Fix compilation warning on gcc-3.4.
  2692. * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
  2693. parameter index to sec_index according to the function definition.
  2694. 2010-01-13 Chao-ying Fu <fu@mips.com>
  2695. * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
  2696. It is true for all CPUs.
  2697. (jal_reloc_p): New function.
  2698. (mips_elf_calculate_relocation): Rename require_jalxp to
  2699. cross_mode_jump_p.
  2700. Update comment for CROSS_MODE_JUMP_P.
  2701. Set up cross_mode_jump_p based on the mode change.
  2702. (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
  2703. Update comment for CROSS_MODE_JUMP_P.
  2704. Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
  2705. Use !cross_mode_jump_p to guard conversion.
  2706. Convert "jr t9" to "b", if possible.
  2707. (_bfd_mips_elf_relocate_section): Rename require_jalx to
  2708. cross_mode_jump_p.
  2709. Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
  2710. Pass cross_mode_jump_p to call mips_elf_perform_relocation.
  2711. 2010-01-13 Nick Clifton <nickc@redhat.com>
  2712. * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
  2713. "m32c" returns the m32c arch_info_struct and not the m16c
  2714. arch_info_struct.
  2715. (arch_info_struct): Use the new scan function.
  2716. (bfd_m32c_arch): Likewise.
  2717. 2010-01-13 Tristan Gingold <gingold@adacore.com>
  2718. * config.bfd: Remove duplicated target vector for i386-*-darwin.
  2719. Appends new arch instead of overriding.
  2720. Use mach_o_x86_64_vec for x86_64-*-darwin.
  2721. * configure.in: Add mach_o_x86_64_vec.
  2722. * configure: Regenerate.
  2723. * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
  2724. * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
  2725. (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
  2726. * Makefile.in: Regenerate.
  2727. * mach-o-x86-64.c: New file.
  2728. 2010-01-13 Tristan Gingold <gingold@adacore.com>
  2729. * reloc.c: Add MACH_O_X86_64 relocations.
  2730. * bfd-in2.h: Regenerate.
  2731. * libbfd.h: Regenerate.
  2732. 2010-01-13 Tristan Gingold <gingold@adacore.com>
  2733. * archive.c (normalize): Use lbasename.
  2734. (bfd_bsd_truncate_arname): Ditto.
  2735. (bfd_gnu_truncate_arname): Ditto.
  2736. 2010-01-12 Tristan Gingold <gingold@adacore.com>
  2737. * makefile.vms (CFLAGS): Turns warnings into informational messages.
  2738. 2010-01-11 Tristan Gingold <gingold@adacore.com>
  2739. * mach-o.h: Add x86-64 relocation types.
  2740. 2010-01-11 Tristan Gingold <gingold@adacore.com>
  2741. * mach-o.h (bfd_mach_o_backend_data): Add arch field.
  2742. (bfd_mach_o_set_arch_mach): New prototype.
  2743. * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
  2744. (bfd_mach_o_set_arch_mach): New function.
  2745. (bfd_mach_o_gen_mkobject): New function.
  2746. Set TARGET_ARCHITECTURE for the generic back-ends.
  2747. * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
  2748. Check that TARGET_ARCHITECTURE is defined.
  2749. Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
  2750. * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
  2751. 2010-01-11 Tristan Gingold <gingold@adacore.com>
  2752. * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
  2753. 2010-01-11 Nick Clifton <nickc@redhat.com>
  2754. * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
  2755. handling of R_V850_HI16_S relocation.
  2756. 2010-01-11 Alan Modra <amodra@gmail.com>
  2757. PR 11103
  2758. * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
  2759. 2010-01-11 Alan Modra <amodra@gmail.com>
  2760. PR 6832
  2761. * dwarf2.c (struct comp_unit): Add sec_info_ptr.
  2762. (find_abstract_instance_name): Use it.
  2763. (parse_comp_unit): Set it.
  2764. 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  2765. * Makefile.in: Regenerate.
  2766. * configure: Regenerate.
  2767. 2010-01-08 Tristan Gingold <gingold@adacore.com>
  2768. * archive.c: Remove bfd_special_undocumented_glue.
  2769. 2010-01-08 Alan Modra <amodra@gmail.com>
  2770. PR ld/11133
  2771. * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
  2772. * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
  2773. * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
  2774. 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
  2775. PR ld/11138
  2776. * elflink.c (elf_link_check_versioned_symbol): Don't abort if
  2777. a symbol referenced by DSO is is defined in a non-shared object
  2778. and forced local.
  2779. 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
  2780. PR ld/11133
  2781. * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
  2782. undefined __start_XXX/__stop_XXX in all input files and set
  2783. SEC_KEEP.
  2784. 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
  2785. PR ld/11143
  2786. * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
  2787. 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
  2788. * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
  2789. before including procfs.h.
  2790. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
  2791. * configure.in: Added autoconf probe for the pr_fpreg member.
  2792. * configure: Regenerated.
  2793. * config.in: Regenerated.
  2794. * elf.c: Define _STRUCTURE_PROC before including procfs.h.
  2795. 2010-01-04 Joel Brobecker <brobecker@adacore.com>
  2796. Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
  2797. * dwarf2.c (concat_filename): Rename dirname with dir_name
  2798. to void shadowing the dirname function.
  2799. Rename subdirname with subdir_name to stay consistent with
  2800. the new dir_name variable name.
  2801. 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
  2802. * archures.c: Add bfd_mach_ppc_e500mc64.
  2803. * bfd-in2.h: Regenerate.
  2804. * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
  2805. bfd_mach_ppc_e500mc64.
  2806. 2010-01-01 Joel Brobecker <brobecker@adacore.com>
  2807. Fix -Wshadow warnings (seen on ppc-aix)
  2808. * xcofflink.c: Replace finfo by flinfo throughout.
  2809. For older changes see ChangeLog-2009
  2810. Copyright (C) 2010 Free Software Foundation, Inc.
  2811. Copying and distribution of this file, with or without modification,
  2812. are permitted in any medium without royalty provided the copyright
  2813. notice and this notice are preserved.
  2814. Local Variables:
  2815. mode: change-log
  2816. left-margin: 8
  2817. fill-column: 74
  2818. version-control: never
  2819. End: