ChangeLog-2011 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389
  1. 2011-12-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2. * elf32-rl78.c (rl78_elf_relocate_section, rl78_dump_symtab)
  3. (rl78_elf_relax_section): Remove debug prints.
  4. 2011-12-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  5. * elf32-rl78.c (rl78_elf_relocate_section, rl78_elf_relax_section): Use
  6. BFD_VMA_FMT.
  7. 2011-12-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  8. * elf32-rl78.c (prev_alignment, sec_start): Remove unused variables.
  9. 2011-12-23 Tristan Gingold <gingold@adacore.com>
  10. * vms-lib.c (vms_traverse_index): Move pointer update code.
  11. 2011-12-22 DJ Delorie <dj@redhat.com>
  12. * elf32-rl78.c (rl78_elf_howto_table): Add R_RL78_RH_RELAX.
  13. (rl78_reloc_map): Add BFD_RELOC_RL78_RELAX.
  14. (rl78_elf_relocate_section): Add R_RL78_RH_RELAX, R_RL78_RH_SFR,
  15. and R_RL78_RH_SADDR.
  16. (rl78_elf_finish_dynamic_sections): Only validate PLT section if
  17. we didn't relax anything, as relaxing might remove a PLT reference
  18. after we've set up the table.
  19. (elf32_rl78_relax_delete_bytes): New.
  20. (reloc_bubblesort): New.
  21. (rl78_offset_for_reloc): New.
  22. (relax_addr16): New.
  23. (rl78_elf_relax_section): Add support for relaxing long
  24. instructions into short ones.
  25. 2011-12-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
  26. * elf32-s390.c (elf_s390_relocate_section): Add check for debugging
  27. section in LD to LE linker relaxation for R_390_TLS_LDO32.
  28. * elf64-s390.c (elf_s390_relocate_section): Likewise for
  29. R_390_TLS_LDO64.
  30. 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
  31. * elf32-arm.c (elf32_arm_nabi_grok_psinfo): Fill in core_pid.
  32. 2011-12-19 Iain Sandoe <idsandoe@googlemail.com>
  33. * mach-o-i386.c (bfd_mach_o_section_type_valid_for_tgt): Define NULL.
  34. * mach-o-target.c (bfd_mach_o_backend_data): Initialize
  35. bfd_mach_o_section_type_valid_for_tgt
  36. * mach-o-x86-64.c (bfd_mach_o_section_type_valid_for_x86_64): New.
  37. (bfd_mach_o_section_type_valid_for_tgt): Set to
  38. bfd_mach_o_section_type_valid_for_x86_64.
  39. * mach-o.c (bfd_mach_o_section_type_name): Reorder and eliminate dup.
  40. (bfd_mach_o_section_attribute_name): Reorder.
  41. (bfd_mach_o_get_section_type_from_name): If the target has defined a
  42. validator for section types, then use it.
  43. * mach-o.h (bfd_mach_o_get_section_type_from_name): Alter declaration
  44. to include the bfd.
  45. 2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
  46. * reloc.c (BFD_RELOC_MIPS16_TLS_GD,BFD_RELOC_MIPS16_TLS_LDM,
  47. BFD_RELOC_MIPS16_TLS_DTPREL_HI16,BFD_RELOC_MIPS16_TLS_DTPREL_LO16,
  48. BFD_RELOC_MIPS16_TLS_GOTTPREL,BFD_RELOC_MIPS16_TLS_TPREL_HI16,
  49. BFD_RELOC_MIPS16_TLS_TPREL_LO16): New relocations for MIPS16 TLS.
  50. * bfd-in2.h (bfd_reloc_code_real): Regenerate.
  51. * libbfd.h (bfd_reloc_code_real_names): Regenerate.
  52. * elf32-mips.c (elf_mips16_howto_table_rel): Add R_MIPS16_TLS_*
  53. entries.
  54. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
  55. mappings.
  56. * elfn32-mips.c (elf_mips16_howto_table_rel,
  57. elf_mips16_howto_table_rela): Add R_MIPS16_TLS_* entries.
  58. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
  59. mappings.
  60. * elf64-mips.c (mips16_elf64_howto_table_rel,
  61. mips16_elf64_howto_table_rela): Add R_MIPS16_TLS_* entries.
  62. (mips16_reloc_map): Add BFD_RELOC_MIPS16_TLS_* to R_MIPS16_TLS_*
  63. mappings.
  64. * elfxx-mips.c (TLS_RELOC_P,mips16_reloc_p,
  65. _bfd_mips_elf_check_relocs): Add cases for R_MIPS16_TLS_* relocations.
  66. (tls_gd_reloc_p): Add R_MIPS16_TLS_GD case.
  67. (tls_ldm_reloc_p): Add R_MIPS16_TLS_LDM case.
  68. (tls_gottprel_reloc_p): Add R_MIPS16_TLS_GOTTPREL case.
  69. (mips_elf_calculate_relocation): Add cases for R_MIPS16_TLS_*,
  70. R_MIPS_TLS_DTPREL32/64, and R_MIPS_TLS_TPREL32/64 relocations.
  71. 2011-12-19 Chung-Lin Tang <cltang@codesourcery.com>
  72. Catherine Moore <clm@codesourcery.com>
  73. Sandra Loosemore <sandra@codesourcery.com>
  74. Richard Sandiford <rdsandiford@googlemail.com>
  75. * elfxx-mips.c (mips_elf_local_pic_function_p): Return true when
  76. H is a MIPS16 function with a kept 32-bit stub. Update comments.
  77. (mips_elf_get_la25_target): New function.
  78. (mips_elf_add_la25_intro): Change to use mips_elf_get_la25_target().
  79. (mips_elf_add_la25_stub): Move compute of use_trampoline_p down,
  80. change to use mips_elf_get_la25_target().
  81. (mips_elf_relocation_needs_la25_stub): Add target_is_16_bit_code_p
  82. parameter, add switch case for R_MIPS16_26.
  83. (mips_elf_calculate_relocation): Redirect relocation to point to the
  84. LA25 stub if it exists, instead of the MIPS16 stub. Update arguments
  85. of call to mips_elf_relocation_needs_la25_stub(), don't use la25 stub
  86. for mips16->mips16 calls.
  87. (_bfd_mips_elf_check_relocs): Update arguments of call to
  88. mips_elf_relocation_needs_la25_stub().
  89. (mips_elf_create_la25_stub): Change to use mips_elf_get_la25_target().
  90. 2011-12-16 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
  91. * mach-o-i386.c (TARGET_PRIORITY): Define as 0 (top priority)
  92. * mach-o-target.c (TARGET_NAME): Use TARGET_PRIORITY
  93. * mach-o-x86-64.c (TARGET_PRIORITY): Define as 0 (top priority)
  94. * mach-o.c (bfd_mach_o_header_p): Remove special handling for
  95. mach-o-i386.
  96. (TARGET_PRIORITY) Set 1 for mach-o-be and mach-o-le, and set 0 for
  97. mach-o-fat.
  98. 2011-12-15 Kevin Buettner <kevinb@redhat.com>
  99. * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
  100. to correspond to a smaller ELF_NGREG defined by the kernel.
  101. 2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
  102. * elf64-x86-64.c (ELF32_DYNAMIC_INTERPRETER): Set to
  103. "/lib/ldx32.so.1".
  104. 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
  105. * mach-o.c (bfd_mach_o_mkobject_init): Initialize dyn_reloc_cache.
  106. (bfd_mach_o_close_and_cleanup): Only cleanup Mach-O private data
  107. for object files.
  108. 2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
  109. * mach-o.c (bfd_mach_o_canonicalize_reloc): Update relocation
  110. table only when there isn't the cahce.
  111. (bfd_mach_o_get_dynamic_reloc_upper_bound): Need one more space
  112. for a pointer for the watchdog.
  113. (bfd_mach_o_canonicalize_dynamic_reloc): Utilize cache like
  114. bfd_mach_o_canonicalize_reloc.
  115. (bfd_mach_o_close_and_cleanup): Call bfd_mach_o_free_cached_info.
  116. (bfd_mach_o_free_cached_info): Free up cache data.
  117. * mach-o.h (reloc_cache): A place to store cache of dynamic relocs.
  118. (bfd_mach_o_free_cached_info): Add declaration.
  119. 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
  120. * mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use
  121. bfd_mach_o_bfd_set_private_flags.
  122. * mach-o.c (bfd_mach_o_bfd_set_private_flags): New.
  123. * mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.
  124. 2011-12-14 Nick Clifton <nickc@redhat.com>
  125. PR ld/12451
  126. * elfcode.h (elf_checksum_contents): Read in the section's
  127. contents if they are not already available, and the section
  128. actually has some contents.
  129. * compress.c (bfd_get_full_section_contents): Use zmalloc to
  130. allocate the buffers so that excess bytes are guaranteed to be
  131. zero.
  132. 2011-12-14 Iain Sandoe <iains@gcc.gnu.org>
  133. * mach-o-i386.c (text_section_names_xlat): New table.
  134. (data_section_names_xlat): Likewise.
  135. (import_section_names_xlat): Likewise.
  136. (mach_o_i386_segsec_names_xlat): Likewise.
  137. (bfd_mach_o_tgt_seg_table): Use new tables.
  138. * mach-o-x86-64.c (bfd_mach_o_tgt_seg_table): Set NULL.
  139. * mach-o.c (mach_o_section_name_xlat, mach_o_segment_name_xlat):
  140. Move to mach-o.h as typedefs.
  141. (text_section_names_xlat): Update for current GCC usage.
  142. (data_section_names_xlat): Likewise.
  143. (dwarf_section_names_xlat): Likewise.
  144. (objc_section_names_xlat): New table.
  145. (segsec_names_xlat): Add objc table.
  146. (bfd_mach_o_normalize_section_name): Replace with...
  147. (bfd_mach_o_section_data_for_mach_sect): New.
  148. (bfd_mach_o_section_data_for_bfd_name): New.
  149. (bfd_mach_o_section_data_for_bfd_name): Update to use additional data.
  150. (bfd_mach_o_convert_section_name_to_mach_o): Likewise.
  151. (bfd_mach_o_bfd_copy_private_section_data): Implement.
  152. (bfd_mach_o_write_symtab): Write a zero-length string as the first entry
  153. for compatibility with system tools.
  154. (bfd_mach_o_build_commands): Update section alignment info.
  155. (bfd_mach_o_new_section_hook): Use translation table data to define
  156. default section flags, type, attributes and alignment, when available.
  157. (bfd_mach_o_init_section_from_mach_o): Add TODO comment.
  158. (bfd_mach_o_section_type_name): Add 'symbol_stubs'.
  159. (bfd_mach_o_section_attribute_name): Add 'self_modifying_code'.
  160. (bfd_mach_o_get_section_type_from_name): Change "not-found" return
  161. value.
  162. (bfd_mach_o_tgt_seg_table): Set default NULL.
  163. * mach-o.h (bfd_mach_o_segment_command): Use define for name length.
  164. (bfd_mach_o_backend_data): Move until after contents are defined.
  165. (bfd_mach_o_normalize_section_name): Remove.
  166. (bfd_mach_o_convert_section_name_to_bfd): Declare.
  167. (mach_o_section_name_xlat): Declare.
  168. (mach_o_segment_name_xlat): Declare.
  169. (bfd_mach_o_section_data_for_mach_sect): Declare.
  170. (bfd_mach_o_section_data_for_bfd_name): Declare.
  171. 2011-12-13 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
  172. * dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an
  173. argument like other functions to support formats other than ELF.
  174. * elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h.
  175. * elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info
  176. in tdata as a parameter.
  177. * libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from
  178. elf-bfd.h.
  179. * libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate.
  180. * mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the
  181. fallback macro.
  182. (bfd_mach_o_find_nearest_line): Likewise.
  183. * mach-o.c (bfd_mach_o_find_nearest_line): Add the definition
  184. which calls _bfd_dwarf2_find_nearest_line.
  185. (bfd_mach_o_close_and_cleanup): Likewise.
  186. * mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info.
  187. (bfd_mach_o_find_nearest_line): Add declaration.
  188. (bfd_mach_o_close_and_cleanup): Add declaration.
  189. 2011-12-13 Tristan Gingold <gingold@adacore.com>
  190. * mach-o.c (bfd_mach_o_read_symtab_symbols): Make global. Remove
  191. prototype.
  192. (bfd_mach_o_section_get_entry_size): Make global.
  193. (bfd_mach_o_section_get_nbr_indirect): Likewise.
  194. (bfd_mach_o_read_symtab_strtab): Likewise.
  195. (struct bfd_mach_o_xlat_name): Move to mach-o.h
  196. (bfd_mach_o_print_flags): Move to binutils/od-macho.c
  197. (bfd_mach_o_get_name_of_null, bfd_mach_o_get_name): Likewise.
  198. (bfd_mach_o_cpu_name, bfd_mach_o_filetype_name): Likewise.
  199. (bfd_mach_o_header_flags_name): Likewise.
  200. (bfd_mach_o_load_command_name): Likewise.
  201. (bfd_mach_o_print_private_header): Likewise.
  202. (bfd_mach_o_print_section_map, bfd_mach_o_print_section): Likwise.
  203. (bfd_mach_o_print_segment, bfd_mach_o_print_dysymtab): Likewise.
  204. (bfd_mach_o_print_dyld_info): Likewise.
  205. (bfd_mach_o_print_private_bfd_data): Remove.
  206. (bfd_mach_o_type_name): Make global.
  207. (bfd_mach_o_section_attribute_name): Likewise.
  208. * mach-o.h (bfd_mach_o_xlat_name): Added.
  209. (bfd_mach_o_section_get_nbr_indirect)
  210. (bfd_mach_o_section_get_entry_size)
  211. (bfd_mach_o_read_symtab_symbols)
  212. (bfd_mach_o_read_symtab_strtab)
  213. (bfd_mach_o_section_attribute_name)
  214. (bfd_mach_o_section_type_name): Likewise.
  215. * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): Define.
  216. 2011-12-13 Chung-Lin Tang <cltang@codesourcery.com>
  217. * elfxx-mips.c (mips_elf_calculate_relocation): Correct
  218. R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits,
  219. update comments.
  220. 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
  221. * mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname.
  222. (bfd_mach_o_read_section_64): Likewise.
  223. 2011-12-11 John Davis Anglin <dave.anglin@nrc-cnrc.gc.ca>
  224. PR binutils/13476
  225. * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
  226. R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to
  227. R_PARISC_DPREL21L when not doing a shared link. Likewise convert
  228. R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to
  229. R_PARISC_DPREL14R. Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L
  230. and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.
  231. 2011-12-10 David Daney <david.daney@cavium.com>
  232. * elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove.
  233. (mips_elf_link_hash_table.rld_symbol): New field;
  234. (MIPS_ELF_RLD_MAP_SIZE): New macro.
  235. (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol
  236. in rld_symbol.
  237. (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol
  238. in rld_symbol.
  239. (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map.
  240. (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling.
  241. (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to
  242. calculate DT_MIPS_RLD_MAP value.
  243. (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol,
  244. quit initializing rld_value.
  245. 2011-12-08 Andrew Pinski <apinski@cavium.com>
  246. Adam Nemet <anemet@caviumnetworks.com>
  247. * archures.c (bfd_mach_mips_octeon2): New macro
  248. * bfd-in2.h: Regenerate.
  249. * cpu-mips.c (I_mipsocteon2): New enum value.
  250. (arch_info_struct): Add bfd_mach_mips_octeon2.
  251. * elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2.
  252. (mips_set_isa_flags): Add bfd_mach_mips_octeon2.
  253. (mips_mach_extensions): Add bfd_mach_mips_octeon2.
  254. 2011-12-07 Alan Modra <amodra@gmail.com>
  255. PR ld/12772
  256. * elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols
  257. defined in shared libraries.
  258. 2011-12-07 Tristan Gingold <gingold@adacore.com>
  259. * mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
  260. Adjust the condition.
  261. (bfd_mach_o_read_symtab_symbol): Now returns a bfd_boolean.
  262. Adjust return statements.
  263. (bfd_mach_o_read_symtab_strtab): Likewise.
  264. (bfd_mach_o_read_symtab_symbols): Likewise.
  265. (bfd_mach_o_scan_start_address): Likewise. Make it static.
  266. (bfd_mach_o_scan): Likewise.
  267. (bfd_mach_o_read_dysymtab_symbol): Remove unused function.
  268. (bfd_mach_o_header_p): Adjust call.
  269. (bfd_mach_o_cpu_name): Make it const.
  270. (bfd_mach_o_filetype_name): Likewise.
  271. (bfd_mach_o_header_flags_name): Likewise.
  272. (bfd_mach_o_section_type_name): Likewise.
  273. (bfd_mach_o_section_attribute_name): Likewise.
  274. (bfd_mach_o_load_command_name): Likewise.
  275. (bfd_mach_o_get_section_type_from_name): Add a const qualifier
  276. after above change.
  277. (bfd_mach_o_get_section_attribute_from_name): Likewise.
  278. * mach-o.h (bfd_mach_o_read_dysymtab_symbol)
  279. (bfd_mach_o_scan_start_address, bfd_mach_o_scan): Remove.
  280. 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
  281. * elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
  282. (elfcore_write_s390_system_call): Likewise.
  283. * elf.c (elfcore_write_s390_last_break): New function.
  284. (elfcore_write_s390_system_call): Likewise.
  285. (elfcore_write_register_note): Call them.
  286. (elfcore_grok_s390_last_break): New function.
  287. (elfcore_grok_s390_system_call): Likewise.
  288. (elfcore_grok_note): Call them.
  289. 2011-12-05 Tristan Gingold <gingold@adacore.com>
  290. * mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.
  291. 2011-12-05 Tristan Gingold <gingold@adacore.com>
  292. * mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
  293. (bfd_mach_o_read_dylib): Likewise.
  294. (bfd_mach_o_read_command): Likewise.
  295. (bfd_mach_o_bfd_print_private_bfd_data): Likewise.
  296. 2011-12-05 Tristan Gingold <gingold@adacore.com>
  297. * mach-o.c (bfd_mach_o_read_command): Add the bfd in the error
  298. message.
  299. (bfd_mach_o_openr_next_archived_file): Use arch name as member name.
  300. (bfd_mach_o_fat_extract): Ditto.
  301. 2011-12-03 Alan Modra <amodra@gmail.com>
  302. PR ld/13468
  303. * elflink.c (bfd_elf_final_link): Don't segfault when checking
  304. for DT_TEXTREL and .dynamic does not exist.
  305. 2011-12-03 Alan Modra <amodra@gmail.com>
  306. PR ld/13470
  307. * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
  308. change in 2011-07-01 commit. Comment.
  309. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  310. 2011-12-01 Mikael Pettersson <mikpe@it.uu.se>
  311. * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
  312. non-SEC_ALLOC sections break before GOT and PLT accounting.
  313. 2011-12-01 Hans-Peter Nilsson <hp@axis.com>
  314. * elf32-cris.c (cris_elf_check_relocs) <plt accounting for
  315. R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
  316. non-SEC_ALLOC sections before GOT and PLT accounting.
  317. 2011-11-29 Andrew Pinski <apinski@cavium.com>
  318. * archures.c (bfd_mach_mips_octeonp): New macro.
  319. * bfd-in2.h: Regenerate.
  320. * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
  321. (arch_info_struct): Add bfd_mach_mips_octeonp.
  322. * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
  323. (mips_mach_extensions): Add bfd_mach_mips_octeonp.
  324. 2011-11-23 Tristan Gingold <gingold@adacore.com>
  325. * vms-lib.c (get_idxlen): Add comments. Fix type in sizeof.
  326. (vms_write_index): Add comments.
  327. 2011-11-22 DJ Delorie <dj@redhat.com>
  328. * elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
  329. avoid using the special non-swapping target when not explicitly
  330. requested.
  331. 2011-11-22 Daniel Calcoen <Daniel.Calcoen@cern.ch>
  332. * elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
  333. 2011-11-22 Tristan Gingold <gingold@adacore.com>
  334. * mach-o.c (bfd_mach_o_print_symbol): Display COM for common
  335. symbols. Print section name in brackets.
  336. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  337. * config.bfd: Add vectors for powerpc and powerpc64-freebsd.
  338. * configure.in (TDEFINES): Add rules for powerpc*-freebsd.
  339. * configure: Regenerate.
  340. * elf32-ppc.c: Add powerpc-freebsd definitions.
  341. * elf64-ppc.c: Add powerpc64-freebsd definitions.
  342. * targets.c: Add bits for powerpc and powerpc64-freebsd.
  343. 2011-11-17 Philipp Thomas <philipp@thogro.org>
  344. * elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
  345. needs to be translated only once.
  346. 2011-11-16 Maciej W. Rozycki <macro@codesourcery.com>
  347. * elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
  348. zero throughout.
  349. (mips16_elf64_howto_table_rela): Likewise.
  350. (micromips_elf64_howto_table_rela): Likewise.
  351. * elfn32-mips.c (elf_mips_howto_table_rela): Likewise.
  352. (elf_mips16_howto_table_rela): Likewise.
  353. (elf_micromips_howto_table_rela): Likewise.
  354. 2011-11-15 Alan Modra <amodra@gmail.com>
  355. Andreas Tobler <andreast@fgznet.ch>
  356. * elflink.c (_bfd_elf_create_got_section): Replace
  357. bfd_make_section_with_flags with bfd_make_section_anyway_with_flags.
  358. (_bfd_elf_link_create_dynamic_sections): Likewise.
  359. * elf32-ppc.c (ppc_elf_create_glink): Likewise.
  360. (ppc_elf_create_dynamic_sections): Likewise.
  361. 2011-11-14 Maxim Kuvyrkov <maxim@codesourcery.com>
  362. * elfxx-mips.c (mips_n64_exec_plt0_entry): Use 64-bit move.
  363. 2011-11-08 Nick Clifton <nickc@redhat.com>
  364. * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
  365. immediate move into an address register.
  366. 2011-11-09 Alan Modra <amodra@gmail.com>
  367. * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
  368. executables when export_dynamic.
  369. 2011-11-08 Alan Modra <amodra@gmail.com>
  370. * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
  371. ha_relocs_not_using_r2 to unexpected_toc_insn.
  372. (ok_lo_toc_insn): New function.
  373. (ppc64_elf_edit_toc): Check insn on lo toc reloc. Emit warning.
  374. (ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
  375. Handle addic on lo toc reloc.
  376. 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  377. PR ld/13387
  378. * elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
  379. go through PLT. Reset plt field with init_plt_offset.
  380. (elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
  381. allocated for symbols referenced by a plabel.
  382. 2011-11-02 DJ Delorie <dj@redhat.com>
  383. * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused
  384. variable.
  385. 2011-11-02 Jan Beulich <jbeulich@suse.com>
  386. * coffgen.c (coff_write_alien_symbol): Make public. Add 'struct
  387. internal_syment *' parameter. Extend 'dummy' to an array with two
  388. elements. Set n_numaux early. Handle BSF_FILE.
  389. (coff_write_symbols): Pass NULL as new third argument to
  390. coff_write_alien_symbol().
  391. * cofflink.c (_bfd_coff_final_link): Don't use COFF-specific
  392. obj_raw_syment_count() on non-COFF input BFD. Insert local symbols
  393. from non-COFF input BFDs.
  394. * libcoff-in.h (coff_write_alien_symbol): Declare.
  395. * libcoff.h (coff_write_alien_symbol): Re-generate.
  396. 2011-11-01 DJ Delorie <dj@redhat.com>
  397. * Makefile.am (ALL_MACHINES): Add cpu-rl78.lo.
  398. (ALL_MACHINES_CFILES): Add cpu-rl78.c.
  399. (BFD32_BACKENDS): Add elf32-rl78.lo.
  400. (BFD32_BACKENDS_CFILES): Add elf32-rl78.c.
  401. (Makefile.in): Regenerate.
  402. * archures.c (bfd_architecture): Define bfd_arch_rl78.
  403. (bfd_archures_list): Add bfd_rl78_arch.
  404. * config.bfd: Add rl78-*-elf.
  405. * configure.in: Add bfd_elf32_rl78_vec.
  406. * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_RL78_* relocations.
  407. * targets.c (bfd_target_vector): Add bfd_elf32_rl78_vec.
  408. * Makefile.in: Regenerate.
  409. * bfd-in2.h: Regenerate.
  410. * configure: Regenerate.
  411. * libbfd.h: Regenerate.
  412. * cpu-rl78.c: New file.
  413. * elf32-rl78.c: New file.
  414. 2011-10-26 Nick Clifton <nickc@redhat.com>
  415. PR ld/13049
  416. * elf64-ppc.c (STUB_SUFFIX): Revert previous delta.
  417. * elf32-hppa.c (STUB_SUFFIX): Likewise.
  418. 2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
  419. * Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo.
  420. (ALL_MACHINES_CFILES): Add cpu-epiphany.c.
  421. (BFD32_BACKENDS): Add elf32-epiphany.lo.
  422. (BFD32_BACKENDS_CFILES): Add elf32-epiphany.c.
  423. * archures.c (bfd_arch_epiphany): Add.
  424. (bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
  425. (bfd_epiphany_arch): Declare.
  426. (bfd_archures_list): Add &bfd_epiphany_arch.
  427. * config.bfd (epiphany-*-elf): New target case.
  428. * configure.in (bfd_elf32_epiphany_vec): New target vector case.
  429. * reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
  430. (BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
  431. (BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
  432. (BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
  433. * targets.c (bfd_elf32_epiphany_vec): Declare.
  434. (_bfd_target_vector): Add bfd_elf32_epiphany_vec.
  435. * Makefile.in: Regenerate.
  436. * bfd-in2.h: Regenerate.
  437. * configure: Regenerate.
  438. * libbfd.h: Regenerate.
  439. * po/SRC-POTFILES.in: Regenerate.
  440. * po/bfd.pot: Regenerate.
  441. * cpu-epiphany.c: New file.
  442. * elf32-epiphany.c: New file.
  443. 2011-10-24 Maciej W. Rozycki <macro@codesourcery.com>
  444. * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
  445. assertions.
  446. 2011-10-24 Eugeniy Meshcheryakov <eugen@debian.org>
  447. PR ld/13273
  448. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
  449. identical TAG_PCS_config attributes.
  450. 2011-10-24 Nick Clifton <nickc@redhat.com>
  451. * po/ja.po: Updated Japanese translation.
  452. 2011-10-24 Pau Garcia i Quiles <pgquiles@elpauer.org>
  453. PR binutils/13292
  454. * bfd-in.h: Include <sys/stat.h> rather than forward defining
  455. struct stat.
  456. * bfd-in2.h: Regenerate.
  457. 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
  458. PR ld/13302
  459. * elf32-i386.c (elf_i386_relocate_section): Replace
  460. R_386_IRELATIVE with R_386_RELATIVE.
  461. * elf64-x86-64.c (elf_x86_64_relocate_section): Replace
  462. R_X86_64_IRELATIVE with R_X86_64_RELATIVE.
  463. 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>.
  464. * elf32-i386.c (elf_i386_relocate_section): Fix a typo in
  465. comments.
  466. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
  467. 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
  468. PR ld/13302
  469. * elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
  470. and next_irelative_index.
  471. (elf_i386_link_hash_table_create): Initialize next_jump_slot_index
  472. and next_irelative_index.
  473. (elf_i386_allocate_dynrelocs): Increment reloc_count instead of
  474. next_tls_desc_index.
  475. (elf_i386_size_dynamic_sections): Set next_tls_desc_index and
  476. next_irelative_index from reloc_count.
  477. (elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
  478. R_386_JUMP_SLOT.
  479. * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
  480. next_jump_slot_index and next_irelative_index.
  481. (elf_x86_64_link_hash_table_create): Initialize
  482. next_jump_slot_index and next_irelative_index.
  483. (elf_x86_64_size_dynamic_sections): Set next_irelative_index
  484. from reloc_count.
  485. (elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
  486. R_X86_64_JUMP_SLOT.
  487. 2011-10-20 Nick Clifton <nickc@redhat.com>
  488. PR ld/13049
  489. * elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace
  490. symbol names.
  491. * elf64-ppc.c (STUB_SUFFIX): Likewise.
  492. * elf32-hppa.c (STUB_SUFFIX): Likewise.
  493. 2011-10-20 Alan Modra <amodra@gmail.com>
  494. * elf32-i386.c (i386_opcode16): Delete.
  495. (elf_i386_check_tls_transition): Use memcmp to compare contents.
  496. * elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete.
  497. (elf_x86_64_check_tls_transition): Use memcmp to compare contents.
  498. 2011-10-19 Alan Modra <amodra@gmail.com>
  499. PR ld/13177
  500. * elflink.c (_bfd_elf_gc_mark_rsec): Set symbol "mark".
  501. (elf_gc_sweep_symbol): Don't test plt/got refcounts, instead test
  502. "mark". Hide undefweak too. Clear def_regular and ref_regular.
  503. * elf-m10300.c (mn10300_elf_relocate_section): Ignore unresolved
  504. reloc errors from garbage-collected code.
  505. * elf32-arm.c (elf32_arm_relocate_section): Likewise.
  506. * elf32-bfin.c (bfin_relocate_section): Likewise.
  507. (bfinfdpic_relocate_section): Likewise.
  508. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  509. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  510. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  511. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  512. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  513. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  514. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  515. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  516. * elf32-spu.c (spu_elf_relocate_section): Likewise.
  517. * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
  518. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  519. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  520. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  521. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  522. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  523. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
  524. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
  525. * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
  526. 2011-10-19 Alan Modra <amodra@gmail.com>
  527. PR ld/13311
  528. * elflink.c (elf_link_output_extsym): Correct test for warning when
  529. forced local executable syms are referenced from shared libraries.
  530. 2011-10-19 Alan Modra <amodra@gmail.com>
  531. PR ld/13254
  532. * elflink.c (bfd_elf_final_link): Emit error_textrel error.
  533. 2011-10-18 David S. Miller <davem@davemloft.net>
  534. PR binutils/13301
  535. * elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function.
  536. (_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr
  537. call delay slot instruction forward 4 bytes when performing
  538. relaxation.
  539. 2011-10-17 Alan Modra <amodra@gmail.com>
  540. PR ld/12975
  541. PR ld/13195
  542. * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Apply 2011-09-15
  543. and 2011-09-29 bfd_elf_gc_mark_dynamic_ref_symbol changes here too.
  544. 2011-10-14 Hans-Peter Nilsson <hp@axis.com>
  545. * elf32-cris.c (cris_elf_gc_sweep_hook) <R_CRIS_16_GOTPLT>
  546. <R_CRIS_32_GOTPLT>: Fix missing update of gotplt refcount for
  547. global symbols.
  548. <R_CRIS_8, R_CRIS_16, R_CRIS_32>: New cases for similar missing
  549. updates of the plt refcount.
  550. (elf_cris_adjust_gotplt_to_got): Assert integrity of the gotplt
  551. refcount in relation to the plt refcount.
  552. 2011-10-13 Richard Sandiford <richard.sandiford@linaro.org>
  553. * elf32-arm.c (elf32_arm_final_link_relocate): Mark PLT calls via
  554. stubs as resolved.
  555. 2011-10-11 Alan Modra <amodra@gmail.com>
  556. PR binutils/13278
  557. * archive.c (bfd_generic_archive_p): Only check first element
  558. when target_defaulted.
  559. (_bfd_construct_extended_name_table): Use ar_maxnamelen.
  560. (_bfd_archive_bsd44_construct_extended_name_table): Likewise.
  561. 2011-10-11 Alan Modra <amodra@gmail.com>
  562. PR binutils/13257
  563. * archive.c (_bfd_find_nested_archive, _bfd_get_elt_at_filepos): Open
  564. thin archive element using container target if not defaulted.
  565. 2011-10-10 Nick Clifton <nickc@redhat.com>
  566. * po/es.po: Updated Spanish translation.
  567. * po/fi.po: Updated Finnish translation.
  568. * po/fr.po: Updated French translation.
  569. * po/ru.po: Updated Russian translation.
  570. 2011-10-10 Alan Modra <amodra@gmail.com>
  571. * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry.
  572. (struct ppc_link_hash_table): Add tocsave_htab.
  573. (struct tocsave_entry): New.
  574. (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions.
  575. (ppc64_elf_link_hash_table_create): Create tocsave_htab..
  576. (ppc64_elf_link_hash_table_free): ..and delete it.
  577. (build_plt_stub): Always put STD_R2_40R1 first.
  578. (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc
  579. on plt call. If present add prologue nop location to tocsave_htab.
  580. (ppc64_elf_relocate_section): Convert prologue nop to std. Skip
  581. first insn of plt call stub when R_PPC64_TOCSAVE present.
  582. 2011-10-08 H.J. Lu <hongjiu.lu@intel.com>
  583. PR ld/13250
  584. * elflink.c (elf_link_add_object_symbols): Preserve the maximum
  585. alignment and size for common symbols.
  586. 2011-10-08 Alan Modra <amodra@gmail.com>
  587. PR ld/13229
  588. PR ld/13244
  589. * elflink.c (elf_link_add_object_symbols): Don't make IR symbols
  590. dynamic.
  591. 2011-10-08 Alan Modra <amodra@gmail.com>
  592. PR ld/13229
  593. * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
  594. even when strip_discarded is false.
  595. 2011-10-05 Kai Tietz <ktietz@redhat.com>
  596. * coffgen.c (coff_write_alien_symbol): Don't write
  597. symbol for discarded sections, if strip_discarded isn't
  598. explicit set to false.
  599. (coff_write_native_symbol): Likewise.
  600. 2011-10-05 DJ Delorie <dj@redhat.com>
  601. Nick Clifton <nickc@redhat.com>
  602. * elf32-rx.c: Add support for PID mode.
  603. (rx_elf_relocate_section): Add checks for unsafe PID relocations.
  604. Include addend in R_RX_SYM relocations.
  605. 2011-09-30 Tristan Gingold <gingold@adacore.com>
  606. * dwarf2.c (struct dwarf2_debug): Add field debug_sections.
  607. (read_section): Add sec argument. Adjust the code to get section
  608. names from it.
  609. (read_indirect_string): Adjust call to read_section.
  610. (read_abbrevs): Ditto.
  611. (decode_line_info): Ditto.
  612. (read_debug_ranges): Ditto.
  613. (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove.
  614. (find_debug_info): Add debug_sections parameter. Use it instead
  615. the above macros.
  616. (place_sections): Get section names from stash.
  617. (find_line): Add debug_sections argument. Initialize
  618. debug_sections field of stash from it.
  619. Adjust calls to find_debug_info.
  620. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
  621. Adjust call to find_line.
  622. (_bfd_dwarf2_find_line): Adjust call to find_line.
  623. * libcoff-in.h (struct dwarf_debug_section): New declaration.
  624. (coff_find_nearest_line_with_names): Likewise.
  625. * libcoff.h: Regenerate.
  626. * libbfd-in.h (struct dwarf_debug_section): Move declaration.
  627. (dwarf_debug_sections): Likewise.
  628. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument.
  629. * libbfd.h: Regenerate.
  630. * elf.c (_bfd_elf_find_nearest_line): Adjust call to
  631. _bfd_dwarf2_find_nearest_line.
  632. * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto.
  633. * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto.
  634. * elf32-arm.c (elf32_arm_find_nearest_line): Ditto.
  635. * coffgen.c (coff_find_nearest_line_with_names): New function.
  636. (coff_find_nearest_line): Calls coff_find_nearest_line_with_names.
  637. * coff-rs6000.c (xcoff_debug_sections): New constant.
  638. (xcoff_find_nearest_line): New function.
  639. (rs6000coff_vec): Use xcoff_find_nearest_line.
  640. (pmac_xcoff_vec): Ditto.
  641. 2011-09-30 Alan Modra <amodra@gmail.com>
  642. PR ld/13235
  643. * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2.
  644. (ppc64_elf_edit_toc): Check HA relocs.
  645. (ha_reloc_match): Delete function.
  646. (ppc64_elf_relocate_section): Remove delayed HA nop optimization.
  647. Instead do it and low part optimization based on
  648. ha_relocs_not_using_r2.
  649. 2011-09-29 Alan Modra <amodra@gmail.com>
  650. PR ld/13233
  651. * elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member
  652. debug and special section groups.
  653. 2011-09-29 H.J. Lu <hongjiu.lu@intel.com>
  654. PR ld/13195
  655. * elflink.c (_bfd_elf_merge_symbol): Don't set dynamic_def when
  656. clearing def_dynamic.
  657. (elf_link_add_object_symbols): Likewise. Set dynamic_def when
  658. setting def_dynamic.
  659. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is
  660. versioned.
  661. 2011-09-27 Kai Tietz <ktietz@redhat.com>
  662. * coffcode.h (sec_to_styp_flags): Handle
  663. SEC_LINK_DUPLICATES_SAME_CONTENTS, and
  664. SEC_LINK_DUPLICATES_SAME_SIZE.
  665. 2011-09-22 Tristan Gingold <gingold@adacore.com>
  666. * configure.in: Bump version to 2.22.51
  667. * configure: Regenerate.
  668. 2011-09-21 David S. Miller <davem@davemloft.net>
  669. * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New.
  670. * elfxx-sparc.h: Declare it.
  671. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it.
  672. * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.
  673. 2011-09-21 Tristan Gingold <gingold@adacore.com>
  674. * mach-o.c (bfd_mach_o_convert_section_name_to_bfd): Add comment.
  675. Deals with size limited strings.
  676. (bfd_mach_o_build_commands): Initialize more fields.
  677. 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
  678. PR ld/13177
  679. * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT
  680. nor GOT references.
  681. 2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
  682. PR ld/12975
  683. * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer
  684. to struct bfd_elf_version_tree.
  685. * elflink.c (elf_info_failed): Remove verdefs.
  686. (_bfd_elf_export_symbol): Updated.
  687. _bfd_elf_link_assign_sym_version): Likewise.
  688. (bfd_elf_size_dynamic_sections): Remove pointer to struct
  689. bfd_elf_version_tree. Updated.
  690. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden
  691. by linker script.
  692. * linker.c (bfd_hide_sym_by_version): New.
  693. * bfd-in2.h: Regenerated.
  694. 2011-09-12 H.J. Lu <hongjiu.lu@intel.com>
  695. PR ld/13178
  696. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt
  697. if there are no GOT relocations.
  698. 2011-09-09 Kai Tietz <ktietz@redhat.com>
  699. * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore
  700. for targets without symbol_leading_char.
  701. 2011-09-08 Bernd Jendrissek <bernd.jendrissek@gmail.com>
  702. * bfdwin.c (bfd_get_file_window): Fix memory leak.
  703. 2011-09-07 Alan Modra <amodra@gmail.com>
  704. PR ld/13131
  705. * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
  706. is initialized.
  707. 2011-09-06 Alan Modra <amodra@gmail.com>
  708. PR ld/13131
  709. * elf64-ppc.c (adjust_toc_syms): Delete redundant code.
  710. (ppc64_elf_edit_toc): Fix style nit. Report some details
  711. on linker failure due to reference in debug or non-alloc
  712. sections to optimized away toc entry, and don't abort.
  713. 2011-09-01 Christophe Lyon <christophe.lyon@st.com>
  714. * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded
  715. sections.
  716. 2011-08-26 Nick Clifton <nickc@redhat.com>
  717. * po/es.po: Updated Spanish translation.
  718. 2011-08-19 Alan Modra <amodra@gmail.com>
  719. * elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
  720. we haven't seen expected -mcmodel=medium/large code relocs.
  721. 2011-08-18 Tristan Gingold <gingold@adacore.com>
  722. * mach-o.c (bfd_mach_o_read_segment): Initialize list.
  723. 2011-08-17 Tristan Gingold <gingold@adacore.com>
  724. * mach-o.c (bfd_mach_o_write_section_32): Fix typo.
  725. 2011-08-17 Alan Modra <amodra@gmail.com>
  726. PR ld/12762
  727. * bfd-in.h (struct bfd_section_already_linked): Forward declare.
  728. (_bfd_handle_already_linked): Declare.
  729. * coff-alpha.c (_bfd_ecoff_section_already_linked): Define as
  730. _bfd_coff_section_already_linked.
  731. * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
  732. * coffcode.h (coff_section_already_linked): Likewise.
  733. * cofflink.c (coff_link_add_symbols): Revert 2011-07-09 changes.
  734. * elf-bfd.h: Likewise.
  735. * libbfd-in.h: Likewise.
  736. * targets.c: Likewise.
  737. * linker.c (bfd_section_already_linked): Likewise.
  738. (bfd_section_already_linked_table_lookup): Likewise.
  739. (bfd_section_already_linked_table_insert): Likewise.
  740. (_bfd_generic_section_already_linked): Likewise. Call
  741. _bfd_handle_already_linked.
  742. (_bfd_handle_already_linked): New function, split out from..
  743. * elflink.c (_bfd_elf_section_already_linked): ..here. Revert
  744. 2011-07-09 changes. Avoid unnecessary strcmp when matching
  745. already_linked_list entries. Match plugin linkonce section.
  746. (section_signature): Delete.
  747. * coffgen.c (_bfd_coff_section_already_linked): New function.
  748. * libcoff-in.h (_bfd_coff_section_already_linked): Declare.
  749. * libbfd.h: Regenerate.
  750. * libcoff.h: Regenerate.
  751. * bfd-in2.h: Regenerate.
  752. 2011-08-14 Alan Modra <amodra@gmail.com>
  753. * elf32-ppc.c (ppc_elf_select_plt_layout): Force bss-plt when
  754. shared and call to _mcount will go via plt.
  755. 2011-08-14 Alan Modra <amodra@gmail.com>
  756. * elf64-ppc.c: Prefix all einfo error strings with "%P: ".
  757. * elf32-ppc.c: Likewise.
  758. (ppc_elf_select_plt_layout): Use einfo rather than info to report
  759. forced bss-plt.
  760. 2011-08-12 H.J. Lu <hongjiu.lu@intel.com>
  761. PR ld/13082
  762. * elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64.
  763. (elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32
  764. and zero-extend it to 64bit if addend is zero for x32. Generate
  765. R_X86_64_RELATIVE64 for x32.
  766. 2011-08-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  767. * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
  768. * bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
  769. * elf32-arm.c (elf32_arm_link_hash_table): New field.
  770. (elf232_arm_link_hash_table_create): Initialise new field.
  771. (check_use_blx): Change test depending on fix_arm1176.
  772. (bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
  773. command line options.
  774. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  775. * mach-o.c (struct mach_o_segment_name_xlat): Add comments.
  776. (segsec_names_xlat): Reorder elements.
  777. (bfd_mach_o_read_section_32): Fix typo.
  778. (bfd_mach_o_read_section_64): Fix typo.
  779. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  780. * mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
  781. (BFD_MACH_O_SECTNAME_SIZE): Ditto.
  782. (bfd_mach_o_section): Use them. Add next field.
  783. (bfd_mach_o_segment_command): Replace sections array by
  784. sect_head and sect_tail.
  785. (bfd_mach_o_get_mach_o_section): New macro.
  786. (bfd_mach_o_lookup_section): Remove.
  787. (bfd_mach_o_new_section_hook): New function.
  788. * mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
  789. instead of strcmp.
  790. (bfd_mach_o_convert_section_name_to_bfd): Replaces section
  791. parameter with segname and sectname parameters. Adjust.
  792. (bfd_mach_o_append_section_to_segment): New function. Use a
  793. linked list for Mach-O sections.
  794. (bfd_mach_o_write_segment_32): Adjust.
  795. (bfd_mach_o_write_segment_64): Ditto.
  796. (bfd_mach_o_build_commands): Fix comment. Adjust.
  797. (bfd_mach_o_flatten_sections): Adjust.
  798. (bfd_mach_o_print_section_map): Adjust.
  799. (bfd_mach_o_set_section_flags_from_bfd): Ditto.
  800. (bfd_mach_o_new_section_hook): New function.
  801. (bfd_mach_o_init_section_from_mach_o): Ditto.
  802. (bfd_mach_o_read_section_32): Remove section parameter.
  803. Return a section instead.
  804. (bfd_mach_o_read_section_64): Ditto.
  805. (bfd_mach_o_read_section): Ditto.
  806. (bfd_mach_o_make_bfd_section): Adjust.
  807. (bfd_mach_o_read_segment): Adjust for new profile of
  808. bfd_mach_o_read_section.
  809. (bfd_mach_o_lookup_section): Remove.
  810. * mach-o-target.c (bfd_mach_o_new_section_hook): Remove.
  811. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  812. * mach-o.h (bfd_mach_o_version_min_command): New structure.
  813. (bfd_mach_o_load_command): Add version_min.
  814. (mach_o_data_struct): Fix comment.
  815. * mach-o.c (bfd_mach_o_read_version_min): New function.
  816. (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
  817. BFD_MACH_O_LC_VERSION_MIN_MACOSX and
  818. BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
  819. (bfd_mach_o_get_name_or_null): New function.
  820. (bfd_mach_o_get_name): Use the above new one.
  821. (bfd_mach_o_load_command_name): Add the above new commands.
  822. (bfd_mach_o_bfd_print_private_bfd_data): Display numerically
  823. unknown commands. Handle BFD_MACH_O_LC_FUNCTION_STARTS,
  824. BFD_MACH_O_LC_VERSION_MIN_MACOSX and
  825. BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
  826. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  827. * mach-o.h: Move size macros to external.h
  828. Move reloc macros to reloc.h and x86-64.h.
  829. * mach-o-i386.c: Includes mach-o/reloc.h
  830. * mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
  831. * mach-o.c: Add includes.
  832. (bfd_mach_o_write_header): Use structure from external.h to convert.
  833. (bfd_mach_o_write_thread): Ditto.
  834. (bfd_mach_o_write_relocs): Ditto.
  835. (bfd_mach_o_write_section_32): Ditto.
  836. (bfd_mach_o_write_section_64): Ditto.
  837. (bfd_mach_o_write_segment_32): Ditto.
  838. (bfd_mach_o_write_segment_64): Ditto.
  839. (bfd_mach_o_write_symtab): Ditto.
  840. (bfd_mach_o_write_contents): Ditto.
  841. (bfd_mach_o_read_header): Ditto.
  842. (bfd_mach_o_read_section_32): Ditto.
  843. (bfd_mach_o_read_section_64): Ditto.
  844. (bfd_mach_o_read_symtab_symbol): Ditto.
  845. (bfd_mach_o_read_dylinker): Ditto.
  846. (bfd_mach_o_read_dylib): Ditto.
  847. (bfd_mach_o_read_dysymtab): Ditto.
  848. (bfd_mach_o_read_symtab): Ditto.
  849. (bfd_mach_o_read_linkedit): Ditto.
  850. (bfd_mach_o_read_str): Ditto.
  851. (bfd_mach_o_read_dyld_info): Ditto.
  852. (bfd_mach_o_read_segment): Ditto.
  853. (bfd_mach_o_read_command): Ditto.
  854. (bfd_mach_o_archive_p): Ditto.
  855. (bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
  856. (bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
  857. (bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
  858. (bfd_mach_o_read_uuid): Remove useless cast. Use a macro instead
  859. of an hard-coded value.
  860. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  861. * mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
  862. (bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
  863. BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
  864. BFD_RELOC_MACH_O_X86_64_GOT_LOAD. Share common code.
  865. 2011-08-08 Tristan Gingold <gingold@adacore.com>
  866. * mach-o.c (bfd_mach_o_normalize_section_name): New function.
  867. (bfd_mach_o_convert_section_name_to_bfd): Use it.
  868. (bfd_mach_o_get_section_type_from_name): New function.
  869. (bfd_mach_o_get_section_attribute_from_name): Ditto.
  870. * mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
  871. Add comments. Add prototypes for the above new functions.
  872. 2011-08-05 Mark Kettenis <kettenis@gnu.org>
  873. * netbsd-core.c (netbsd_core_vec): Init match_priority field.
  874. 2011-08-05 Alan Modra <amodra@gmail.com>
  875. * elf64-ppc.c (maybe_strip_output): New function.
  876. (ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame.
  877. 2011-08-05 Alan Modra <amodra@gmail.com>
  878. PR ld/12762
  879. * elflink.c (_bfd_elf_section_already_linked): Return matched
  880. status. Remove COFF comdat section handling.
  881. * linker.c (_bfd_generic_section_already_linked): Return matched
  882. status. Don't set SEC_GROUP in l_flags for plugin entries.
  883. (bfd_section_already_linked): Update prototype.
  884. * targets.c (_section_already_linked): Likewise.
  885. * elf-bfd.h (_bfd_elf_section_already_linked): Likewise.
  886. * libbfd-in.h (_bfd_generic_section_already_linked): Likewise.
  887. (_bfd_nolink_section_already_linked): Update.
  888. * libbfd.h: Regenerate.
  889. * bfd-in2.h: Regenerate.
  890. 2011-08-05 Alan Modra <amodra@gmail.com>
  891. * elf32-ppc.c: Include dwarf2.h.
  892. (struct ppc_elf_link_hash_table): Add glink_eh_frame.
  893. (ppc_elf_create_glink): Create .eh_frame section.
  894. (glink_eh_frame_cie): New array.
  895. (ppc_elf_size_dynamic_sections): Size glink_eh_frame.
  896. (ppc_elf_finish_dynamic_sections): Write glink_eh_frame.
  897. 2011-08-04 Tristan Gingold <gingold@adacore.com>
  898. * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index.
  899. (_bfd_vms_write_etir): Initialize vms_linkage_index to 0.
  900. 2011-08-03 Tristan Gingold <gingold@adacore.com>
  901. * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case.
  902. (bfd_mach_o_read_symtab_symbols): Return if no symbols.
  903. 2011-08-02 Maciej W. Rozycki <macro@codesourcery.com>
  904. * elfxx-mips.c (check_4byte_branch): Remove function.
  905. (check_relocated_bzc): New function.
  906. (_bfd_mips_elf_relax_section): Permit the relaxation of LUI
  907. instructions that immediately follow a compact branch
  908. instruction.
  909. 2011-08-02 Alan Modra <amodra@gmail.com>
  910. * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
  911. plt_static_chain.
  912. (ppc_build_one_stub): Adjust get_relocs call to suit..
  913. (ppc_size_one_stub): ..and reloc sizing. Correct plt size corner case.
  914. 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
  915. PR ld/13048
  916. * archures.c (bfd_mach_i386_intel_syntax): New.
  917. (bfd_mach_i386_i8086): Updated.
  918. (bfd_mach_i386_i386): Likewise.
  919. (bfd_mach_x86_64): Likewise.
  920. (bfd_mach_x64_32): Likewise.
  921. (bfd_mach_i386_i386_intel_syntax): Likewise.
  922. (bfd_mach_x86_64_intel_syntax): Likewise.
  923. (bfd_mach_x64_32_intel_syntax): Likewise.
  924. (bfd_mach_l1om): Likewise.
  925. (bfd_mach_l1om_intel_syntax): Likewise.
  926. (bfd_mach_k1om): Likewise.
  927. (bfd_mach_k1om_intel_syntax): Likewise.
  928. * bfd-in2.h: Regenerated.
  929. * cpu-i386.c (bfd_i386_compatible): Check mach instead of
  930. bits_per_address.
  931. (bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64.
  932. (bfd_x64_32_arch): Likewise.
  933. * elf64-x86-64.c: Include "libiberty.h".
  934. (x86_64_elf_howto_table): Append x32 R_X86_64_32.
  935. (elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32.
  936. (elf_x86_64_reloc_type_lookup): Likewise.
  937. (elf_x86_64_reloc_name_lookup): Likewise.
  938. (elf_x86_64_relocate_section): Likewise.
  939. (elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32.
  940. 2011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
  941. * elfxx-mips.c (check_br32): Fix return type.
  942. 2011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
  943. * elfxx-mips.c (bz_insn_16): Correct opcode mask.
  944. 2011-07-29 Maciej W. Rozycki <macro@codesourcery.com>
  945. * elfxx-mips.c: Adjust comments throughout.
  946. (mips_elf_relax_delete_bytes): Reshape code.
  947. (_bfd_mips_elf_relax_section): Remove check for
  948. R_MICROMIPS_GPREL16 relocations. Reshape code.
  949. 2011-07-28 Roland McGrath <mcgrathr@google.com>
  950. * elf32-i386.c (NACL_PLT_ENTRY_SIZE, NACLMASK): New macros.
  951. (elf_i386_nacl_plt0_entry): New variable.
  952. (elf_i386_plt_entry): New variable.
  953. (elf_i386_nacl_pic_plt0_entry): New variable.
  954. (elf_i386_nacl_pic_plt_entry): New variable.
  955. (elf_i386_nacl_plt, elf_i386_nacl_arch_bed): New variables.
  956. (elf_backend_arch_data): New macro setting for elf_i386_nacl_vec stanza.
  957. (elf_backend_plt_alignment): Likewise.
  958. * config.bfd: Handle i[3-7]86-*-nacl*.
  959. * elf32-i386.c (bfd_elf32_i386_nacl_vec): New backend vector stanza.
  960. * targets.c: Support bfd_elf32_i386_nacl_vec.
  961. * configure.in: Likewise.
  962. * configure: Regenerated.
  963. * elf32-i386.c (struct elf_i386_plt_layout): New type.
  964. (GET_PLT_ENTRY_SIZE): New macro.
  965. (elf_i386_plt): New variable.
  966. (struct elf_i386_backend_data): New member `plt'.
  967. (elf_i386_arch_bed): Add initializer for it.
  968. (elf_i386_vxworks_arch_bed): Likewise.
  969. (elf_i386_allocate_dynrelocs): Use GET_PLT_ENTRY_SIZE.
  970. (elf_i386_plt_sym_val): Likewise.
  971. (elf_i386_relocate_section): Likewise.
  972. (elf_i386_finish_dynamic_symbol): Likewise.
  973. Also use other elf_i386_plt_layout members for PLT details.
  974. (elf_i386_finish_dynamic_sections): Likewise.
  975. * elf32-i386.c (struct elf_i386_backend_data): New type.
  976. (get_elf_i386_backend_data): New macro.
  977. (elf_i386_arch_bed): New variable.
  978. (elf_backend_arch_data): New macro.
  979. (struct elf_i386_link_hash_table): Remove plt0_pad_byte and is_vxworks.
  980. (elf_i386_link_hash_table_create): Don't initialize them.
  981. (elf_i386_create_dynamic_sections): Find is_vxworks flags in
  982. elf_i386_backend_data, not elf_i386_link_hash_table.
  983. (elf_i386_adjust_dynamic_symbol): Likewise.
  984. (elf_i386_allocate_dynrelocs): Likewise.
  985. (elf_i386_readonly_dynrelocs): Likewise.
  986. (elf_i386_size_dynamic_sections): Likewise.
  987. (elf_i386_relocate_section): Likewise.
  988. (elf_i386_finish_dynamic_symbol): Likewise.
  989. (elf_i386_finish_dynamic_sections): Likewise. Same for plt0_pad_byte.
  990. (elf_i386_vxworks_link_hash_table_create): Function removed.
  991. (elf_i386_vxworks_arch_bed): New variable.
  992. (elf_backend_arch_data): New macro in elf32-i386-vxworks stanza.
  993. * elf-bfd.h (elf_backend_data): New member arch_backend_data.
  994. * elfxx-target.h (elf_backend_arch_data): New macro.
  995. (elfNN_bed): Use it as initializer for the new member.
  996. 2011-07-28 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
  997. * elf64-hppa.c (elf_hppa_final_link_relocate): Fix handling of out
  998. of range branches.
  999. 2011-07-26 Jakub Jelinek <jakub@redhat.com>
  1000. * dwarf2.c (dwarf_debug_sections): Add .debug_macro
  1001. and .zdebug_macro entry.
  1002. (dwarf_debug_section_enum): Add debug_macro.
  1003. 2011-07-26 Alan Modra <amodra@gmail.com>
  1004. * elf64-ppc.c: Include dwarf2.h.
  1005. (struct ppc_link_hash_table): Add glink_eh_frame.
  1006. (create_linkage_sections): Create .eh_frame section.
  1007. (ppc64_elf_size_dynamic_sections): Arrange to drop unneeded
  1008. glink_eh_frame.
  1009. (glink_eh_frame_cie): New array.
  1010. (ppc64_elf_size_stubs): Size glink_eh_frame.
  1011. (ppc64_elf_build_stubs): Init glink_eh_frame contents.
  1012. (ppc64_elf_finish_dynamic_sections): Write glink_eh_frame.
  1013. 2011-07-25 Hans-Peter Nilsson <hp@bitrange.com>
  1014. PR ld/12815
  1015. * elf64-mmix.c (struct _mmix_elf_section_data): New members
  1016. has_warned_bpo and has_warned_pushj.
  1017. (mmix_final_link_relocate): Remove PARAMS and PTR macros,
  1018. converting to ISO C. Add new parameter error_message. All
  1019. callers changed.
  1020. (mmix_elf_perform_relocation): Ditto.
  1021. <case R_MMIX_PUSHJ_STUBBABLE, case R_MMIX_BASE_PLUS_OFFSET>:
  1022. Handle the case where mmix_elf_check_common_relocs has not been
  1023. called, missing preparations for relocs of the respective type.
  1024. 2011-07-24 Chao-ying Fu <fu@mips.com>
  1025. Ilie Garbacea <ilie@mips.com>
  1026. Maciej W. Rozycki <macro@codesourcery.com>
  1027. Joseph Myers <joseph@codesourcery.com>
  1028. Catherine Moore <clm@codesourcery.com>
  1029. Richard Sandiford <rdsandiford@googlemail.com>
  1030. * archures.c (bfd_mach_mips_micromips): New macro.
  1031. * cpu-mips.c (I_micromips): New enum value.
  1032. (arch_info_struct): Add bfd_mach_mips_micromips.
  1033. * elfxx-mips.h (_bfd_mips_elf_is_target_special_symbol): New
  1034. prototype.
  1035. (_bfd_mips_elf_relax_section): Likewise.
  1036. (_bfd_mips16_elf_reloc_unshuffle): Rename to...
  1037. (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
  1038. ASE.
  1039. (_bfd_mips16_elf_reloc_shuffle): Rename to...
  1040. (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
  1041. (gprel16_reloc_p): Handle microMIPS ASE.
  1042. (literal_reloc_p): New function.
  1043. * elf32-mips.c (elf_micromips_howto_table_rel): New variable.
  1044. (_bfd_mips_elf32_gprel16_reloc): Handle microMIPS ASE.
  1045. (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
  1046. and _bfd_mips_elf_reloc_shuffle changes.
  1047. (mips_elf_gprel32_reloc): Update comment.
  1048. (micromips_reloc_map): New variable.
  1049. (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
  1050. (mips_elf32_rtype_to_howto): Likewise.
  1051. (mips_info_to_howto_rel): Likewise.
  1052. (bfd_elf32_bfd_is_target_special_symbol): Define.
  1053. (bfd_elf32_bfd_relax_section): Likewise.
  1054. * elf64-mips.c (micromips_elf64_howto_table_rel): New variable.
  1055. (micromips_elf64_howto_table_rela): Likewise.
  1056. (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
  1057. and _bfd_mips_elf_reloc_shuffle changes.
  1058. (micromips_reloc_map): Likewise.
  1059. (bfd_elf64_bfd_reloc_type_lookup): Handle microMIPS ASE.
  1060. (bfd_elf64_bfd_reloc_name_lookup): Likewise.
  1061. (mips_elf64_rtype_to_howto): Likewise.
  1062. (bfd_elf64_bfd_is_target_special_symbol): Define.
  1063. * elfn32-mips.c (elf_micromips_howto_table_rel): New variable.
  1064. (elf_micromips_howto_table_rela): Likewise.
  1065. (mips16_gprel_reloc): Update for _bfd_mips_elf_reloc_unshuffle
  1066. and _bfd_mips_elf_reloc_shuffle changes.
  1067. (micromips_reloc_map): Likewise.
  1068. (bfd_elf32_bfd_reloc_type_lookup): Handle microMIPS ASE.
  1069. (bfd_elf32_bfd_reloc_name_lookup): Likewise.
  1070. (mips_elf_n32_rtype_to_howto): Likewise.
  1071. (bfd_elf32_bfd_is_target_special_symbol): Define.
  1072. * elfxx-mips.c (LA25_LUI_MICROMIPS_1): New macro.
  1073. (LA25_LUI_MICROMIPS_2): Likewise.
  1074. (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise.
  1075. (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise.
  1076. (TLS_RELOC_P): Handle microMIPS ASE.
  1077. (mips_elf_create_stub_symbol): Adjust value of stub symbol if
  1078. target is a microMIPS function.
  1079. (micromips_reloc_p): New function.
  1080. (micromips_reloc_shuffle_p): Likewise.
  1081. (got16_reloc_p, call16_reloc_p): Handle microMIPS ASE.
  1082. (got_disp_reloc_p, got_page_reloc_p): New functions.
  1083. (got_ofst_reloc_p): Likewise.
  1084. (got_hi16_reloc_p, got_lo16_reloc_p): Likewise.
  1085. (call_hi16_reloc_p, call_lo16_reloc_p): Likewise.
  1086. (hi16_reloc_p, lo16_reloc_p, jal_reloc_p): Handle microMIPS ASE.
  1087. (micromips_branch_reloc_p): New function.
  1088. (tls_gd_reloc_p, tls_ldm_reloc_p): Likewise.
  1089. (tls_gottprel_reloc_p): Likewise.
  1090. (_bfd_mips16_elf_reloc_unshuffle): Rename to...
  1091. (_bfd_mips_elf_reloc_unshuffle): ... this. Handle microMIPS
  1092. ASE.
  1093. (_bfd_mips16_elf_reloc_shuffle): Rename to...
  1094. (_bfd_mips_elf_reloc_shuffle): ... this. Handle microMIPS ASE.
  1095. (_bfd_mips_elf_lo16_reloc): Handle microMIPS ASE.
  1096. (mips_tls_got_index, mips_elf_got_page): Likewise.
  1097. (mips_elf_create_local_got_entry): Likewise.
  1098. (mips_elf_relocation_needs_la25_stub): Likewise.
  1099. (mips_elf_calculate_relocation): Likewise.
  1100. (mips_elf_perform_relocation): Likewise.
  1101. (_bfd_mips_elf_symbol_processing): Likewise.
  1102. (_bfd_mips_elf_add_symbol_hook): Likewise.
  1103. (_bfd_mips_elf_link_output_symbol_hook): Likewise.
  1104. (mips_elf_add_lo16_rel_addend): Likewise.
  1105. (_bfd_mips_elf_check_relocs): Likewise.
  1106. (mips_elf_adjust_addend): Likewise.
  1107. (_bfd_mips_elf_relocate_section): Likewise.
  1108. (mips_elf_create_la25_stub): Likewise.
  1109. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
  1110. (_bfd_mips_elf_gc_sweep_hook): Likewise.
  1111. (_bfd_mips_elf_is_target_special_symbol): New function.
  1112. (mips_elf_relax_delete_bytes): Likewise.
  1113. (opcode_descriptor): New structure.
  1114. (RA): New macro.
  1115. (OP32_SREG, OP32_TREG, OP16_VALID_REG): Likewise.
  1116. (b_insns_32, bc_insn_32, bz_insn_32, bzal_insn_32): New variables.
  1117. (beq_insn_32): Likewise.
  1118. (b_insn_16, bz_insn_16): New variables.
  1119. (BZC32_REG_FIELD): New macro.
  1120. (bz_rs_insns_32, bz_rt_insns_32): New variables.
  1121. (bzc_insns_32, bz_insns_16):Likewise.
  1122. (BZ16_REG, BZ16_REG_FIELD): New macros.
  1123. (jal_insn_32_bd16, jal_insn_32_bd32): New variables.
  1124. (jal_x_insn_32_bd32): Likewise.
  1125. (j_insn_32, jalr_insn_32): Likewise.
  1126. (ds_insns_32_bd16, ds_insns_32_bd32): Likewise.
  1127. (jalr_insn_16_bd16, jalr_insn_16_bd32, jr_insn_16): Likewise.
  1128. (JR16_REG): New macro.
  1129. (ds_insns_16_bd16): New variable.
  1130. (lui_insn): Likewise.
  1131. (addiu_insn, addiupc_insn): Likewise.
  1132. (ADDIUPC_REG_FIELD): New macro.
  1133. (MOVE32_RD, MOVE32_RS): Likewise.
  1134. (MOVE16_RD_FIELD, MOVE16_RS_FIELD): Likewise.
  1135. (move_insns_32, move_insns_16): New variables.
  1136. (nop_insn_32, nop_insn_16): Likewise.
  1137. (MATCH): New macro.
  1138. (find_match): New function.
  1139. (check_br16_dslot, check_br32_dslot): Likewise.
  1140. (check_br16, check_br32): Likewise.
  1141. (IS_BITSIZE): New macro.
  1142. (check_4byte_branch): New function.
  1143. (_bfd_mips_elf_relax_section): Likewise.
  1144. (_bfd_mips_elf_merge_private_bfd_data): Disallow linking MIPS16
  1145. and microMIPS modules together.
  1146. (_bfd_mips_elf_print_private_bfd_data): Handle microMIPS ASE.
  1147. * reloc.c (BFD_RELOC_MICROMIPS_7_PCREL_S1): New relocation.
  1148. (BFD_RELOC_MICROMIPS_10_PCREL_S1): Likewise.
  1149. (BFD_RELOC_MICROMIPS_16_PCREL_S1): Likewise.
  1150. (BFD_RELOC_MICROMIPS_GPREL16): Likewise.
  1151. (BFD_RELOC_MICROMIPS_JMP, BFD_RELOC_MICROMIPS_HI16): Likewise.
  1152. (BFD_RELOC_MICROMIPS_HI16_S): Likewise.
  1153. (BFD_RELOC_MICROMIPS_LO16): Likewise.
  1154. (BFD_RELOC_MICROMIPS_LITERAL): Likewise.
  1155. (BFD_RELOC_MICROMIPS_GOT16): Likewise.
  1156. (BFD_RELOC_MICROMIPS_CALL16): Likewise.
  1157. (BFD_RELOC_MICROMIPS_GOT_HI16): Likewise.
  1158. (BFD_RELOC_MICROMIPS_GOT_LO16): Likewise.
  1159. (BFD_RELOC_MICROMIPS_CALL_HI16): Likewise.
  1160. (BFD_RELOC_MICROMIPS_CALL_LO16): Likewise.
  1161. (BFD_RELOC_MICROMIPS_SUB): Likewise.
  1162. (BFD_RELOC_MICROMIPS_GOT_PAGE): Likewise.
  1163. (BFD_RELOC_MICROMIPS_GOT_OFST): Likewise.
  1164. (BFD_RELOC_MICROMIPS_GOT_DISP): Likewise.
  1165. (BFD_RELOC_MICROMIPS_HIGHEST): Likewise.
  1166. (BFD_RELOC_MICROMIPS_HIGHER): Likewise.
  1167. (BFD_RELOC_MICROMIPS_SCN_DISP): Likewise.
  1168. (BFD_RELOC_MICROMIPS_JALR): Likewise.
  1169. (BFD_RELOC_MICROMIPS_TLS_GD): Likewise.
  1170. (BFD_RELOC_MICROMIPS_TLS_LDM): Likewise.
  1171. (BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16): Likewise.
  1172. (BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16): Likewise.
  1173. (BFD_RELOC_MICROMIPS_TLS_GOTTPREL): Likewise.
  1174. (BFD_RELOC_MICROMIPS_TLS_TPREL_HI16): Likewise.
  1175. (BFD_RELOC_MICROMIPS_TLS_TPREL_LO16): Likewise.
  1176. * bfd-in2.h: Regenerate.
  1177. * libbfd.h: Regenerate.
  1178. 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1179. * Makefile.am (ALL_MACHINES): Add cpu-k1om.lo.
  1180. (ALL_MACHINES_CFILES): Add cpu-k1om.c.
  1181. * Makefile.in: Regenerated.
  1182. * archures.c (bfd_architecture): Add bfd_arch_k1om.
  1183. (bfd_k1om_arch): New.
  1184. (bfd_archures_list): Add &bfd_k1om_arch.
  1185. * bfd-in2.h: Regenerated.
  1186. * config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if
  1187. bfd_elf64_x86_64_vec is supported. Add bfd_elf64_k1om_freebsd_vec
  1188. if bfd_elf64_x86_64_freebsd_vec is supported.
  1189. (targ_selvecs): Likewise.
  1190. * configure.in: Support bfd_elf64_k1om_vec and
  1191. bfd_elf64_k1om_freebsd_vec.
  1192. * configure: Regenerated.
  1193. * cpu-k1om.c: New.
  1194. * elf64-x86-64.c (elf64_k1om_elf_object_p): New.
  1195. (bfd_elf64_k1om_vec): Likewise.
  1196. (bfd_elf64_k1om_freebsd_vec): Likewise.
  1197. * targets.c (bfd_elf64_k1om_vec): New.
  1198. (bfd_elf64_k1om_freebsd_vec): Likewise.
  1199. (_bfd_target_vector): Add bfd_elf64_k1om_vec and
  1200. bfd_elf64_k1om_freebsd_vec.
  1201. 2011-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  1202. Fix false coff-go32-exe matches.
  1203. * coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use
  1204. COFF_CHECK_FORMAT.
  1205. * coff-stgo32.c (go32_check_format): New forward declaration.
  1206. (COFF_CHECK_FORMAT): New defintion.
  1207. (go32_check_format): New function.
  1208. 2011-07-15 Alan Modra <amodra@gmail.com>
  1209. * configure.in: Bump version.
  1210. * configure: Regenerate.
  1211. 2011-07-14 Alan Modra <amodra@gmail.com>
  1212. * linker.c (_bfd_generic_section_already_linked): Set l_flags.
  1213. * elf-bfd.h (struct already_linked): Forward declare.
  1214. 2011-07-14 Alan Modra <amodra@gmail.com>
  1215. * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
  1216. (_bfd_elf_adjust_dynamic_symbol): Remove FIXME.
  1217. 2011-07-14 Alan Modra <amodra@gmail.com>
  1218. * elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain.
  1219. (build_plt_stub): Add plt_static_chain param, don't load r11 if false.
  1220. (build_tls_get_addr_stub): Likewise.
  1221. (ppc_build_one_stub): Update calls to above.
  1222. (ppc_size_one_stub): Adjust stub size.
  1223. (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab.
  1224. * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
  1225. 2011-07-12 Nick Clifton <nickc@redhat.com>
  1226. * elf32-arm.c (elf32_arm_section_flags): Delete.
  1227. (elf_backend_section_flags): Remove.
  1228. 2011-07-11 H.J. Lu <hongjiu.lu@intel.com>
  1229. PR ld/12982
  1230. * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
  1231. when setting stack_flags.
  1232. 2011-07-11 Catherine Moore <clm@codesourcery.com>
  1233. * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
  1234. * aout-target.h (MY_bfd_lookup_section_flags): New definition.
  1235. * aout-tic30.c (MY_bfd_lookup_section_flags): New definition.
  1236. * bfd-in2.h: Regenerated.
  1237. * bfd.c (bfd_lookup_section_flags): New definition.
  1238. * binary.c (binary_bfd_lookup_section_flags): New definition.
  1239. * bout.c (b_out_bfd_lookup_section_flags): New definition.
  1240. * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
  1241. * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
  1242. * coff-rs6000.c (rs6000coff_vec): Include
  1243. bfd_generic_lookup_section_flags.
  1244. (pmac_xcoff_vec): Likewise.
  1245. * coffcode.h (coff_bfd_lookup_section_flags): New definition.
  1246. * coff64-rs6000.c (rs6000coff64_vec): Include
  1247. bfd_generic_lookup_section_flags.
  1248. (aix5coff64_vec): Likewise.
  1249. * ecoff.c (bfd_debug_section): Initialize flag_info field.
  1250. * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare.
  1251. (bfd_elf_lookup_section_flags): Declare.
  1252. * elflink.c (bfd_elf_lookup_section_flags): New function.
  1253. * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define.
  1254. (elf_backend_lookup_section_flags_hook): Define.
  1255. (elf_backend_data): Add elf_backend_lookup_section_flags_hook.
  1256. * i386msdos.c (msdos_bfd_lookup_section_flags): New define.
  1257. * i386os9k.c (os9k_bfd_lookup_section_flags): New define.
  1258. * ieee.c (ieee_bfd_lookup_section_flags): New define.
  1259. * ihex.c (ihex_bfd_lookup_section_flags): New define.
  1260. * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare.
  1261. (bfd_generic_lookup_section_flags): Declare.
  1262. * libbfd.h: Regenerated.
  1263. * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New.
  1264. * mmo.c (mmo_bfd_lookup_section_flags): New definition.
  1265. * nlm-target.h (nlm_bfd_lookup_section_flags): New definition.
  1266. * oasys.c (oasys_bfd_lookup_section_flags): New definition.
  1267. * pef.c (bfd_pef_bfd_lookup_section_flags): New definition.
  1268. * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition.
  1269. * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition.
  1270. * reloc.c (bfd_generic_lookup_section_flags): New function.
  1271. * som.c (som_bfd_lookup_section_flags): New definition.
  1272. * srec.c (srec_bfd_lookup_section_flags): New definition.
  1273. * targets.c (flag_info): Declare.
  1274. (NAME##_bfd_lookup_section_flags): Add to LINK jump table.
  1275. (_bfd_lookup_section_flags): New.
  1276. * tekhex.c (tekhex_bfd_lookup_section_flags): New definition.
  1277. * versados.c (versados_bfd_lookup_section_flags): New definition.
  1278. * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition.
  1279. * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition.
  1280. 2011-07-11 H.J. Lu <hongjiu.lu@intel.com>
  1281. PR ld/12978
  1282. * elfnn-ia64.c (count_dyn_reloc): Fix a typo.
  1283. 2011-07-09 Alan Modra <amodra@gmail.com>
  1284. PR ld/12942
  1285. * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
  1286. rather than kept_section to determine whether a symbol is from
  1287. a discarded section.
  1288. * cofflink.c (coff_link_add_symbols): Make symbols from discarded
  1289. sections appear undefined.
  1290. 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
  1291. PR ld/12942
  1292. * elf-bfd.h (_bfd_elf_section_already_linked): Replace
  1293. "asection *" with "struct already_linked *".
  1294. * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
  1295. (_bfd_generic_section_already_linked): Likewise.
  1296. (bfd_section_already_linked_table_insert): Likewise.
  1297. (struct already_linked): New.
  1298. (struct bfd_section_already_linked): Use it.
  1299. * elflink.c (_bfd_elf_section_already_linked): Replace.
  1300. "asection *" with "struct already_linked *". Replace the plugin
  1301. dummy with the LTO output.
  1302. * linker.c (_bfd_generic_section_already_linked): Likewise.
  1303. * targets.c (struct already_linked): Add forward declaration.
  1304. (bfd_target): Replace "struct bfd_section *" with
  1305. "struct already_linked *" in _section_already_linked.
  1306. * bfd-in2.h: Regenerate.
  1307. * libbfd.h: Regenerate.
  1308. 2011-07-06 Tristan Gingold <gingold@adacore.com>
  1309. * mach-o.h: Move loader related definitions to
  1310. include/mach-o/loader.h. Include it.
  1311. 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
  1312. * elf64-x86-64.c (elf_backend_post_process_headers): Always
  1313. define to _bfd_elf_set_osabi.
  1314. 2011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
  1315. Thomas Schwinge <thomas@schwinge.name>
  1316. PR binutils/12913
  1317. * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
  1318. ELFOSABI_LINUX alias.
  1319. * elf32-hppa.c: Likewise.
  1320. * elf32-i370.c: Likewise.
  1321. * elf64-hppa.c: Likewise.
  1322. 2011-07-01 Ian Lance Taylor <iant@google.com>
  1323. * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change
  1324. DW_OP_lit3 to DW_OP_lit2.
  1325. 2011-07-01 Alan Modra <amodra@gmail.com>
  1326. * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look at
  1327. dyn relocs when called to copy flags for a weak sym.
  1328. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  1329. (ppc64_elf_merge_private_bfd_data): Delete.
  1330. (bfd_elf64_bfd_merge_private_bfd_data): Define as
  1331. _bfd_generic_verify_endian_match.
  1332. 2011-06-30 Bernd Schmidt <bernds@codesourcery.com>
  1333. * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
  1334. link_info is NULL.
  1335. 2011-06-28 Tristan Gingold <gingold@adacore.com>
  1336. * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index
  1337. unsigned int.
  1338. (_bfd_vms_write_etir): Write linkage index from reloc.
  1339. 2011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>
  1340. * mach-o.c (bfd_mach_o_read_command): Also ignore
  1341. BFD_MACH_O_LC_ROUTINES_64.
  1342. 2011-06-27 Tristan Gingold <gingold@adacore.com>
  1343. * vms-alpha.c (_bfd_vms_write_etir): Use 'section' to get current
  1344. section target index.
  1345. 2011-06-27 Nick Clifton <nickc@redhat.com>
  1346. * cisco-core.c (cisco_core_little_vec): Add initialization of
  1347. match_priority field.
  1348. 2011-06-27 Tristan Gingold <gingold@adacore.com>
  1349. * cache.c: Include bfd_stdint.h.
  1350. (cache_bmmap): Change profile. Return region start and size.
  1351. * bfdio.c (struct bfd_iovec): Change bmmap profile.
  1352. (bfd_mmap): Change profile and adjust. Update comment.
  1353. (memory_bmmap): Change profile.
  1354. * opncls.c (opncls_bmmap): Change profile.
  1355. * vms-lib.c (vms_lib_bmmap): Likewise.
  1356. * libbfd.h: Regenerate.
  1357. * bfd-in2.h: Regenerate.
  1358. 2011-06-27 Tristan Gingold <gingold@adacore.com>
  1359. * vms-misc.c (vms_time_to_time_t): Adjust overflow detection.
  1360. Add comment.
  1361. 2011-06-25 H.J. Lu <hongjiu.lu@intel.com>
  1362. * elf64-x86-64.c (elf_backend_post_process_headers): Don't
  1363. define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.
  1364. 2011-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  1365. * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
  1366. PLT_EH_FRAME.
  1367. * elf32-i386.c (elf_i386_link_hash_table): Likewise.
  1368. 2011-06-24 Richard Henderson <rth@redhat.com>
  1369. PR ld/12928
  1370. * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Recover the
  1371. tlsgd insn before swapping adjacent insns.
  1372. 2011-06-24 Tristan Gingold <gingold@adacore.com>
  1373. * vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the
  1374. absolute section.
  1375. 2011-06-24 Alan Modra <amodra@gmail.com>
  1376. PR ld/12921
  1377. * elf.c (assign_file_positions_for_load_sections): Don't align
  1378. sh_offset for all SHT_NOBITS sections here, just .tbss sections
  1379. that don't get a PT_LOAD.
  1380. 2011-06-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1381. * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
  1382. (sh_elf_check_relocs): Likewise.
  1383. 2011-06-22 Richard Henderson <rth@redhat.com>
  1384. * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
  1385. TPREL in a PIE image.
  1386. (alpha_dynamic_entries_for_reloc): Likewise.
  1387. (elf64_alpha_relocate_section): Allow TPREL in PIE images.
  1388. (elf64_alpha_relax_got_load): Likewise.
  1389. 2011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
  1390. * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
  1391. for PIE.
  1392. 2011-06-22 Alan Modra <amodra@gmail.com>
  1393. * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
  1394. plugin symbols. Fix segfault on linker scrip defined syms.
  1395. 2011-06-20 Jakub Jelinek <jakub@redhat.com>
  1396. PR ld/12570
  1397. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
  1398. at all for linker created .eh_frame sections.
  1399. (_bfd_elf_discard_section_eh_frame): Handle linker created
  1400. .eh_frame sections with no relocations.
  1401. * elf64-x86-64.c: Include dwarf2.h.
  1402. (elf_x86_64_eh_frame_plt): New variable.
  1403. (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
  1404. PLT_FDE_LEN_OFFSET): Define.
  1405. (struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
  1406. (elf_x86_64_create_dynamic_sections): Create and fill in
  1407. .eh_frame section for .plt section.
  1408. (elf_x86_64_size_dynamic_sections): Write .plt section size
  1409. into .eh_frame FDE covering .plt section.
  1410. (elf_x86_64_finish_dynamic_sections): Write .plt section
  1411. start into .eh_frame FDE covering .plt section. Call
  1412. _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
  1413. (elf_backend_plt_alignment): Define to 4.
  1414. * elf32-i386.c: Include dwarf2.h.
  1415. (elf_i386_eh_frame_plt): New variable.
  1416. (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
  1417. PLT_FDE_LEN_OFFSET): Define.
  1418. (struct elf_i386_link_hash_table): Add plt_eh_frame field.
  1419. (elf_i386_create_dynamic_sections): Create and fill in
  1420. .eh_frame section for .plt section.
  1421. (elf_i386_size_dynamic_sections): Write .plt section size
  1422. into .eh_frame FDE covering .plt section.
  1423. (elf_i386_finish_dynamic_sections): Write .plt section
  1424. start into .eh_frame FDE covering .plt section. Call
  1425. _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
  1426. (elf_backend_plt_alignment): Define to 4.
  1427. 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1428. * elf64-x86-64.c (elf_backend_post_process_headers): Defined
  1429. for x32.
  1430. 2011-06-16 H.J. Lu <hongjiu.lu@intel.com>
  1431. * elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if
  1432. CORE_HEADER is defined.
  1433. (elf_x86_64_write_core_note): New.
  1434. (elf_backend_write_core_note): Likewise.
  1435. * hosts/x86-64linux.h (uint64_t): New.
  1436. (user_regsx32_struct): Likewise.
  1437. (elf_gregx32_t): Likewise.
  1438. (ELF_NGREGX32): Likewise.
  1439. (elf_gregsetx32_t): Likewise.
  1440. (elf_prstatusx32): Likewise.
  1441. (prstatusx32_t): Likewise.
  1442. (user_fpregs32_struct): Removed.
  1443. (user_fpxregs32_struct): Likewise.
  1444. (user32): Likewise.
  1445. (elf_fpregset32_t): Likewise.
  1446. (elf_fpxregset32_t): Likewise.
  1447. (prgregset32_t): Likewise.
  1448. (prfpregset32_t): Likewise.
  1449. 2011-06-16 H.J. Lu <hongjiu.lu@intel.com>
  1450. * elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32.
  1451. (elf_x86_64_grok_psinfo): Likewise.
  1452. 2011-06-16 Nick Clifton <nickc@redhat.com>
  1453. * elf.c (elf_find_function): Fail if not provided with a symbol
  1454. table.
  1455. 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
  1456. * elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
  1457. * elf.c (elfcore_grok_arm_vfp): New function.
  1458. (elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
  1459. (elfcore_write_arm_vfp): New function.
  1460. (elfcore_write_register_note): Call it to handle .reg-arm-vfp.
  1461. 2011-06-14 Richard Henderson <rth@redhat.com>
  1462. * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
  1463. elf64_alpha_merge_ind_symbols; adjust for the generic interface.
  1464. (elf64_alpha_always_size_sections): Don't call
  1465. elf64_alpha_merge_ind_symbols.
  1466. (elf_backend_copy_indirect_symbol): New.
  1467. 2011-06-14 Alan Modra <amodra@gmail.com>
  1468. PR ld/12887
  1469. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
  1470. before doing anything.
  1471. (_bfd_elf_discard_section_eh_frame): Likewise.
  1472. 2011-06-14 Alan Modra <amodra@gmail.com>
  1473. * Makefile.am: Formatting.
  1474. * Makefile.in: Regenerate.
  1475. * configure.in (bfd_elf64_tilegx_vec): Add elfxx-tilegx.lo.
  1476. * po/SRC-POTFILES.in: Regnerate.
  1477. 2011-06-14 Alan Modra <amodra@gmail.com>
  1478. * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Don't use PTR.
  1479. (allocate_dynrelocs, readonly_dynrelocs): Replace PTR with void *.
  1480. Don't handle warning symbols here.
  1481. * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): As above.
  1482. (allocate_dynrelocs, readonly_dynrelocs): As above.
  1483. 2011-06-14 Alan Modra <amodra@gmail.com>
  1484. PR ld/12851
  1485. * elflink.c (_bfd_elf_gc_mark_extra_sections): New function.
  1486. (elf_gc_sweep): Don't treat debug and sections like .comment
  1487. specially here.
  1488. (bfd_elf_gc_sections): Treat note sections as gc roots only when
  1489. not part of a group. Always call gc_mark_extra_sections.
  1490. * elf-bfd.h (_bfd_elf_gc_mark_extra_sections): Declare.
  1491. * elfxx-target.h (elf_backend_gc_mark_extra_sections): Default to
  1492. _bfd_elf_gc_mark_extra_sections.
  1493. * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Call
  1494. _bfd_elf_gc_mark_extra_sections.
  1495. * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): Likewise.
  1496. 2011-06-13 Nick Clifton <nickc@redhat.com>
  1497. * elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
  1498. variable 'local_got_offsets'.
  1499. * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
  1500. (tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.
  1501. 2011-06-13 Walter Lee <walt@tilera.com>
  1502. * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
  1503. (ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
  1504. (BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
  1505. and elfxx-tilegx.lo.
  1506. (BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
  1507. elfxx-tilegx.c.
  1508. (BFD64_BACKENDS): Add elf64-tilegx.lo.
  1509. (BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
  1510. * Makefile.in: Regenerate.
  1511. * arctures.c (bfd_architecture): Define bfd_arch_tilepro,
  1512. bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
  1513. (bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
  1514. (bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
  1515. bfd-in2.h: Regenerate.
  1516. * config.bfd: Handle tilegx-*-* and tilepro-*-*.
  1517. * configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
  1518. and bfd_elf64_tilegx_vec.
  1519. * configure: Regenerate.
  1520. * elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
  1521. TILEPRO_ELF_DATA.
  1522. * libbfd.h: Regenerate.
  1523. * reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
  1524. RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
  1525. IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
  1526. IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
  1527. IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
  1528. IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
  1529. IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
  1530. IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
  1531. IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
  1532. IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
  1533. MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
  1534. IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
  1535. IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
  1536. IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
  1537. IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
  1538. IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
  1539. IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
  1540. Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
  1541. HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
  1542. JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
  1543. DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
  1544. SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
  1545. IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
  1546. IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
  1547. IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
  1548. IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
  1549. IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
  1550. IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
  1551. IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
  1552. IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
  1553. IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
  1554. IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
  1555. IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
  1556. IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
  1557. IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
  1558. IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
  1559. IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
  1560. IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
  1561. IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
  1562. IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
  1563. IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
  1564. IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
  1565. IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
  1566. IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
  1567. IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
  1568. IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
  1569. IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
  1570. IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
  1571. IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
  1572. TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
  1573. * targets.c (bfd_elf32_tilegx_vec): Declare.
  1574. (bfd_elf32_tilepro_vec): Declare.
  1575. (bfd_elf64_tilegx_vec): Declare.
  1576. (bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
  1577. and bfd_elf64_tilegx_vec.
  1578. * cpu-tilegx.c: New file.
  1579. * cpu-tilepro.c: New file.
  1580. * elf32-tilepro.h: New file.
  1581. * elf32-tilepro.c: New file.
  1582. * elf32-tilegx.c: New file.
  1583. * elf32-tilegx.h: New file.
  1584. * elf64-tilegx.c: New file.
  1585. * elf64-tilegx.h: New file.
  1586. * elfxx-tilegx.c: New file.
  1587. * elfxx-tilegx.h: New file.
  1588. 2011-06-13 Alan Modra <amodra@gmail.com>
  1589. * linker.c (bfd_link_hash_traverse): Follow warning symbol link.
  1590. (_bfd_generic_link_write_global_symbol, fix_syms): Don't handle
  1591. warning symbols here.
  1592. * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
  1593. * elf32-arm.c (allocate_dynrelocs_for_symbol,
  1594. elf32_arm_readonly_dynrelocs): Likewise.
  1595. * elf32-bfin.c (bfin_discard_copies): Likewise.
  1596. * elf32-cris.c (elf_cris_adjust_gotplt_to_got,
  1597. elf_cris_discard_excess_dso_dynamics,
  1598. elf_cris_discard_excess_program_dynamics): Likewise.
  1599. * elf32-hppa.c (allocate_plt_static, allocate_dynrelocs,
  1600. clobber_millicode_symbols, readonly_dynrelocs): Likewise.
  1601. * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
  1602. * elf32-i386.c (elf_i386_allocate_dynrelocs,
  1603. elf_i386_readonly_dynrelocs): Likewise.
  1604. * elf32-lm32.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1605. * elf32-m32c.c (m32c_relax_plt_check, m32c_relax_plt_realloc): Likewise.
  1606. * elf32-m32r.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1607. * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
  1608. * elf32-microblaze.c (allocate_dynrelocs): Likewise.
  1609. * elf32-ppc.c (allocate_dynrelocs, maybe_set_textrel): Likewise.
  1610. * elf32-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1611. * elf32-score.c (score_elf_sort_hash_table_f): Likewise.
  1612. * elf32-score7.c (score_elf_sort_hash_table_f): Likewise.
  1613. * elf32-sh.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1614. * elf32-tic6x.c (elf32_tic6x_allocate_dynrelocs,
  1615. elf32_tic6x_readonly_dynrelocs): Likewise.
  1616. * elf32-vax.c (elf_vax_discard_copies): Likewise.
  1617. * elf32-xstormy16.c (xstormy16_relax_plt_check,
  1618. xstormy16_relax_plt_realloc): Likewise.
  1619. * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Likewise.
  1620. * elf64-alpha.c (elf64_alpha_output_extsym,
  1621. elf64_alpha_calc_got_offsets_for_symbol,
  1622. elf64_alpha_calc_dynrel_sizes, elf64_alpha_size_rela_got_1): Likewise.
  1623. * elf64-hppa.c (elf64_hppa_mark_exported_functions,
  1624. allocate_global_data_opd, elf64_hppa_mark_milli_and_exported_functions,
  1625. elf_hppa_unmark_useless_dynamic_symbols,
  1626. elf_hppa_remark_useless_dynamic_symbols): Likewise.
  1627. * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref, func_desc_adjust,
  1628. adjust_opd_syms, adjust_toc_syms, allocate_dynrelocs,
  1629. readonly_dynrelocs, merge_global_got, reallocate_got,
  1630. undo_symbol_twiddle): Likewise.
  1631. * elf64-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1632. * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
  1633. * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs,
  1634. elf_x86_64_readonly_dynrelocs): Likewise.
  1635. * elflink.c (elf_link_renumber_hash_table_dynsyms,
  1636. elf_link_renumber_local_hash_table_dynsyms, _bfd_elf_export_symbol,
  1637. _bfd_elf_link_find_version_dependencies,
  1638. _bfd_elf_link_assign_sym_version, _bfd_elf_adjust_dynamic_symbol,
  1639. _bfd_elf_link_sec_merge_syms, elf_adjust_dynstr_offsets,
  1640. elf_collect_hash_codes, elf_collect_gnu_hash_codes,
  1641. elf_renumber_gnu_hash_syms, elf_gc_sweep_symbol,
  1642. elf_gc_propagate_vtable_entries_used,
  1643. elf_gc_smash_unused_vtentry_relocs, bfd_elf_gc_mark_dynamic_ref_symbol,
  1644. elf_gc_allocate_got_offsets): Likewise.
  1645. * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free,
  1646. elfNN_ia64_global_dyn_sym_thunk): Likewise.
  1647. * elfxx-mips.c (mips_elf_check_symbols, mips_elf_output_extsym,
  1648. mips_elf_sort_hash_table_f, allocate_dynrelocs): Likewise.
  1649. * elfxx-sparc.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
  1650. * i386linux.c (linux_tally_symbols): Likewise.
  1651. * m68klinux.c (linux_tally_symbols): Likewise.
  1652. * sparclinux.c (linux_tally_symbols): Likewise.
  1653. * sunos.c (sunos_scan_dynamic_symbol): Likewise.
  1654. * xcofflink.c (xcoff_post_gc_symbol): Likewise.
  1655. * elflink.c (elf_link_output_extsym): Make it a bfd_hash_traverse
  1656. function. Update all callers.
  1657. * aoutx.h (aout_link_write_other_symbol): Likewise.
  1658. * pdp11.c (aout_link_write_other_symbol): Likewise.
  1659. * cofflink.c (_bfd_coff_write_global_sym): Likewise.
  1660. * ecoff.c (ecoff_link_write_external): Likewise.
  1661. * xcofflink.c (xcoff_write_global_symbol): Likewise.
  1662. * vms-alpha.c (alpha_vms_link_output_symbol): Likewise. Handle
  1663. warning symbols.
  1664. * ecoff.c (ecoff_link_hash_traverse): Delete.
  1665. * coff-ppc.c (ppc_bfd_coff_final_link): Use bfd_hash_traverse for
  1666. _bfd_coff_write_global_sym.
  1667. * libcoff-in.h (_bfd_coff_write_global_sym): Update prototype.
  1668. * libcoff.h: Regenerate.
  1669. 2011-06-10 Nick Clifton <nickc@redhat.com>
  1670. * elflink.c (_bfd_elf_link_create_dynamic_sections): If the
  1671. backend does not provide a function for creating dynamic sections
  1672. then fail.
  1673. (bfd_elf_final_link): Issue a warning message if a dynamic section
  1674. has the SHT_NOTE type.
  1675. (bfd_elf_final_link): Do not look for dynamic strings in a section
  1676. that does not have the SHT_STRTAB type or the name .dynstr.
  1677. * elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
  1678. section is not in the output binary.
  1679. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.
  1680. 2011-06-09 Tristan Gingold <gingold@adacore.com>
  1681. * elfnn-ia64.c (elfNN_ia64_relax_section, elfNN_ia64_choose_gp)
  1682. (elfNN_ia64_relocate_section, elfNN_vms_object_p): Remove trailing
  1683. spaces.
  1684. 2011-06-09 Tristan Gingold <gingold@adacore.com>
  1685. * bfd.c (bfd_get_sign_extend_vma): Handle aixcoff.
  1686. 2011-06-09 Nick Clifton <nickc@redhat.com>
  1687. PR ld/12845
  1688. * elf.c (_bfd_elf_init_private_section_data): Add an assertion
  1689. that the output section has an allocated bfd_elf_section_data
  1690. structure.
  1691. * elfxx-mips.c (mips_elf_check_symbols): Do not create a stub for
  1692. symbols in sections that have been removed by garbage collection.
  1693. 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
  1694. * elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
  1695. relocations in SEC_DEBUGGING sections when building shared
  1696. libraries.
  1697. 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
  1698. PR ld/12851
  1699. * elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
  1700. (bfd_elf_gc_sections): Also check SHT_NOTE sections.
  1701. 2011-06-08 Tristan Gingold <gingold@adacore.com>
  1702. * makefile.vms (OBJS): Add elfxx-ia64.obj
  1703. Remove vax case.
  1704. 2011-06-08 Alan Modra <amodra@gmail.com>
  1705. * aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,
  1706. * sco5-core.c: Init match_priority field.
  1707. 2011-06-08 Alan Modra <amodra@gmail.com>
  1708. * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and
  1709. indirect links here.
  1710. 2011-06-07 Joel Brobecker <brobecker@adacore.com>
  1711. * irix-core.c (irix_core_vec): Add match_priority field.
  1712. 2011-06-06 Alan Modra <amodra@gmail.com>
  1713. * targets.c (bfd_target): Make ar_max_namelen an unsigned char.
  1714. Add match_priority.
  1715. * configure.in: Bump bfd version.
  1716. * elfcode.h (elf_object_p): Delete hacks preventing match of
  1717. EM_NONE and ELFOSABI_NONE targets when a better match exists.
  1718. * elfxx-target.h (elf_match_priority): Define and use.
  1719. * format.c (bfd_check_format_matches): Use target match_priority
  1720. to choose best of multiple matching targets. In cases with multiple
  1721. matches rerun _bfd_check_format if we don't choose the last match.
  1722. * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c,
  1723. * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c,
  1724. * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c,
  1725. * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c,
  1726. * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h,
  1727. * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c,
  1728. * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c,
  1729. * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c,
  1730. * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c,
  1731. * vms-lib.c, * xsym.c: Init match_priority field.
  1732. * configure: Regenerate.
  1733. * bfd-in2.h: Regenerate.
  1734. 2011-06-04 H.J. Lu <hongjiu.lu@intel.com>
  1735. PR ld/12842
  1736. * elfcode.h (elf_object_p): Revert the last change.
  1737. 2011-06-04 Alan Modra <amodra@gmail.com>
  1738. * archures.c (bfd_arch_get_compatible): If one arch is unknown,
  1739. return the other arch.
  1740. * elfcode.h (elf_object_p): Allow explicit match to generic ELF
  1741. target.
  1742. 2011-06-03 Bertram Felgenhauer <bertram.felgenhauer@gmail.com>
  1743. PR ld/12682
  1744. * hash.c (higher_primer_number): Add more, small, prime numbers.
  1745. (bfd_hash_set_default_size): Likewise.
  1746. 2011-06-02 Nick Clifton <nickc@redhat.com>
  1747. * coff-mcore.c: Fix spelling typo.
  1748. * coff-stgo32.c: Likewise.
  1749. * elf32-arm.c: Likewise.
  1750. * elf32-avr.c: Likewise.
  1751. * elf-m68hc1x.c: Likewise.
  1752. * elf32-mcore.c: Likewise.
  1753. * elf32-mep.c: Likewise.
  1754. * elf32-mt.c: Likewise.
  1755. * elf32-ppc.c: Likewise.
  1756. * elf32-xtensa.c: Likewise.
  1757. * elf64-ppc.c: Likewise.
  1758. * elfxx-mips.c: Likewise.
  1759. * netbsd.h: Likewise.
  1760. * nlmcode.h: Likewise.
  1761. * vms-alpha.c: Likewise.
  1762. * po/bfd.pot: Regenerate.
  1763. * po/SRC-POTFILES.in: Regenerate.
  1764. 2011-06-01 DJ Delorie <dj@redhat.com>
  1765. * config.bfd: Add bfd_elf32_rx_be_ns_vec.
  1766. * target.c: Likewise.
  1767. * configure.in: Likewise.
  1768. * configure.in: Regenerate.
  1769. * elf32-rx.c: Add elf32-rx-be-ns target.
  1770. (rx_elf_object_p): Never allow the be-ns target by default,
  1771. only allow it if the user requests it.
  1772. 2011-06-01 H.J. Lu <hongjiu.lu@intel.com>
  1773. * elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
  1774. relocation in readonly section in a shared object.
  1775. * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
  1776. 2011-05-31 Nick Clifton <nickc@redhat.com>
  1777. * archive.c (adjust_relative_path): Fix comment to prevent it
  1778. corrupting the auto-generated bfd.h.
  1779. 2011-05-31 Paul Brook <paul@codesourcery.com>
  1780. * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
  1781. for known functions.
  1782. (elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
  1783. symbols.
  1784. 2011-05-31 Paul Brook <paul@codesourcery.com>
  1785. * elf32-arm.c (arm_stub_is_thumb): Add
  1786. arm_stub_long_branch_v4t_thumb_tls_pic.
  1787. (elf32_arm_final_link_relocate): TLS stubs are always ARM.
  1788. Handle Thumb stubs.
  1789. 2011-05-27 Nick Clifton <nickc@redhat.com>
  1790. PR binutils/12710
  1791. * archive.c (_bfd_get_elt_at_filepos): Set correct error value if
  1792. unable to read a file pointed to by an entry in a thin archive.
  1793. (adjust_relative_path): Use lrealpath to canonicalize paths.
  1794. Handle the case where the reference path is above the current
  1795. path in the directory tree.
  1796. 2011-05-26 H.J. Lu <hongjiu.lu@intel.com>
  1797. PR ld/12809
  1798. * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
  1799. R_X86_64_TPOFF64 in executable.
  1800. 2011-05-26 Alan Modra <amodra@gmail.com>
  1801. * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
  1802. * elflink.c (_bfd_elf_symbol_refs_local_p): Expand
  1803. local_protected comment.
  1804. 2011-05-25 Tristan Gingold <gingold@adacore.com>
  1805. * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
  1806. (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
  1807. (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
  1808. * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
  1809. (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
  1810. (elf32-ia64.c): Created from elfnn-ia64.c
  1811. (elf64-ia64.c): Likewise.
  1812. * elfxx-ia64.h: New file.
  1813. * elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following
  1814. functions.Includes elfxx-ia64.h.
  1815. (elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message.
  1816. (IA64_HOWTO): Adjust.
  1817. (lookup_howto): Renames to ia64_elf_lookup_howto. Make it public.
  1818. (elfNN_ia64_reloc_type_lookup): Renames to
  1819. ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
  1820. (elfNN_ia64_reloc_name_lookup): Renames to
  1821. ia64_elf_reloc_name_lookup. Make it public.
  1822. (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public.
  1823. (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
  1824. public.
  1825. (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
  1826. Move it and make it public. Move prototype to elfxx-ia64.h
  1827. (elfNN_ia64_install_value): Renames to ia64_elf_install_value.
  1828. Move prototype to elfxx-ia64.h
  1829. * elfnn-ia64.c: New file, split from elfxx-ia64.c.
  1830. (elfNN_ia64_info_to_howto): Adjust calls.
  1831. (elfNN_ia64_relax_section): Adjust calls.
  1832. (count_dyn_reloc): Fix typo.
  1833. (elfNN_ia64_relocate_section): Adjust calls.
  1834. (elfNN_ia64_finish_dynamic_symbol): Likewise.
  1835. (bfd_elfNN_bfd_reloc_type_lookup)
  1836. (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
  1837. * configure: Regenerate.
  1838. * Makefile.in: Regenerate.
  1839. 2011-05-23 DJ Delorie <dj@redhat.com>
  1840. * elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo
  1841. the vma/lma swapping done in elf32_rx_modify_program_headers.
  1842. 2011-05-23 Nick Clifton <nickc@redhat.com>
  1843. * elf-m10300.c (mn10300_elf_mkobject): New function.
  1844. (bfd_elf32_mkobject): Define.
  1845. 2011-05-23 Alan Modra <amodra@gmail.com>
  1846. * elf-bfd.h: Comment typo fix.
  1847. * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
  1848. struct elf_dyn_relocs throughout.
  1849. * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
  1850. 2011-05-23 Alan Modra <amodra@gmail.com>
  1851. * elf32-frv.c: Use info->callbacks->einfo throughout file in linker
  1852. functions rather than warning callback or _bfd_error_handler.
  1853. * elf32-ppc.c: Likewise.
  1854. * elf64-ppc.c: Likewise.
  1855. * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
  1856. arg error.
  1857. * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
  1858. 2011-05-23 Alan Modra <amodra@gmail.com>
  1859. PR 12763
  1860. * elf.c (assign_file_positions_for_load_sections): Set sh_offset for
  1861. .tbss, and page align same for all SHT_NOBITS sections.
  1862. 2011-05-21 Alan Modra <amodra@gmail.com>
  1863. PR 12763
  1864. * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
  1865. from PT_TLS header.
  1866. (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
  1867. segment if just for .tbss.
  1868. (assign_file_positions_for_load_sections): Don't report "can't
  1869. allocate in segment" errors for .tbss.
  1870. (assign_file_positions_for_non_load_sections): Don't set p_filesz
  1871. from SHT_NOBITS section filepos.
  1872. 2011-05-20 Bernd Schmidt <bernds@codesourcery.com>
  1873. * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
  1874. R_C6000_PCR_H16 and R_C6000_PCR_L16.
  1875. (elf32_tic6x_relocate_section): Handle them.
  1876. 2011-05-18 Nick Clifton <nickc@redhat.com>
  1877. PR ld/12761
  1878. * elflink.c (elf_link_add_object_symbols): Process .gnu.warning
  1879. sections when building shared libraries.
  1880. 2011-05-18 Rafał Krypa <r.krypa@samsung.com>
  1881. PR ld/12778
  1882. * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
  1883. reloc pointer.
  1884. 2011-05-18 Tristan Gingold <gingold@adacore.com>
  1885. * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
  1886. (xcoff_sweep): Always keep dwarf sections.
  1887. (xcoff_link_input_bfd): Handle dwarf symbols and sections.
  1888. 2011-05-18 Tristan Gingold <gingold@adacore.com>
  1889. * libxcoff.h (struct xcoff_dwsect_name): New type.
  1890. (XCOFF_DWSECT_NBR_NAMES): New macro.
  1891. (xcoff_dwsect_names): Declare.
  1892. * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
  1893. (styp_to_sec_flags): Ditto.
  1894. (coff_new_section_hook): Ditto.
  1895. (coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
  1896. * coff-rs6000.c (xcoff_dwsect_name): New variable.
  1897. 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
  1898. PR ld/12759
  1899. * elf32-rx.c (ignore_lma): New variable.
  1900. (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
  1901. (rx_modify_program_headers): Only copy the LMA into the VMA if
  1902. ignore_lma is true.
  1903. 2011-05-17 Alan Modra <amodra@gmail.com>
  1904. PR ld/12760
  1905. * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
  1906. * elflink.c (elf_link_add_object_symbols): Likewise.
  1907. * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
  1908. 2011-05-16 Alan Modra <amodra@gmail.com>
  1909. * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
  1910. 2011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
  1911. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
  1912. global GOT entries for GOT_PAGE relocations against global symbols.
  1913. 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
  1914. * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
  1915. (tic6x-*-*): Replaced by these.
  1916. * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
  1917. (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
  1918. (elf_backend_relocs_compatible, elf_backend_post_process_headers):
  1919. Define.
  1920. (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
  1921. TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
  1922. "elf32-target.h" two more times.
  1923. * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
  1924. bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
  1925. bfd_elf32_tic6x_elf_le_vec.
  1926. * configure: Regenerate.
  1927. 2011-05-13 Jan Beulich <jbeulich@novell.com>
  1928. * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
  1929. 2011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  1930. * config.in: Regenerated.
  1931. * configure: Regenerated.
  1932. * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
  1933. HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
  1934. HAVE_PSINFO32_T_PR_PID.
  1935. * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
  1936. HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
  1937. and HAVE_PSINFO32_T_PR_PID.
  1938. * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
  1939. 2011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  1940. * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
  1941. 32bit psinfo.
  1942. * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
  1943. * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
  1944. 2011-05-09 Paul Brook <paul@codesourcery.com>
  1945. * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
  1946. * bfd-in2.h: Regenerate.
  1947. * elf32-tic6x.c: Include limits.h.
  1948. (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
  1949. _tic6x_elf_section_data): New.
  1950. (elf32_tic6x_section_data): Define.
  1951. (elf32_tic6x_new_section_hook): Allocate target specific data.
  1952. (elf32_tic6x_add_unwind_table_edit): New function.
  1953. (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
  1954. elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
  1955. elf32_tic6x_copy_exidx_entry): New functions.
  1956. (elf_backend_write_section): Define.
  1957. 2011-05-09 Paul Brook <paul@codesourcery.com>
  1958. * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
  1959. elf32_tic6x_fake_sections): New functions.
  1960. (elf_backend_fake_sections): Define.
  1961. 2011-05-09 Paul Brook <paul@codesourcery.com>
  1962. * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
  1963. (elf_backend_gc_mark_extra_sections): Define.
  1964. 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
  1965. PR ld/12365
  1966. * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
  1967. references to symbols defined in discarded sections.
  1968. 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
  1969. PR ld/12365
  1970. * coffgen.c (coff_write_symbol): Assume input section is its own
  1971. output section if output_section member not set.
  1972. (coff_write_alien_symbol): Likewise.
  1973. 2011-05-07 H.J. Lu <hongjiu.lu@intel.com>
  1974. PR ld/12730
  1975. * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
  1976. * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
  1977. sections if needed.
  1978. * section.c (SEC_ELF_REVERSE_COPY): New.
  1979. * bfd-in2.h: Regenerated.
  1980. 2011-05-07 Anders Kaseorg <andersk@ksplice.com>
  1981. PR 12739
  1982. * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
  1983. * bfd-in2.h: Regenerate.
  1984. 2011-05-06 Tristan Gingold <gingold@adacore.com>
  1985. * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
  1986. (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
  1987. any code section. Add comments.
  1988. (alpha_vms_object_p): Use void * instead of PTR.
  1989. (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
  1990. (build_module_list): Guard against no DST section. Add comments.
  1991. (alpha_vms_link_output_symbol): Discard undefined symbols.
  1992. (alpha_vms_get_section_contents): Simply memcpy if the section was
  1993. already loaded. Fix typo.
  1994. (vms_new_section_hook): Use void * instead of PTR.
  1995. (vms_alpha_vec): Ditto.
  1996. 2011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
  1997. * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
  1998. branch to a PLT entry, redirect it to the PLT's Thumb entry point.
  1999. 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
  2000. * elf32-tic6x.c (elf32_tic6x_final_link): New function.
  2001. (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
  2002. mismatch. Choose the lower of the two values.
  2003. (bfd_elf32_bfd_final_link): New macro.
  2004. 2011-04-28 Tristan Gingold <gingold@adacore.com>
  2005. * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
  2006. (bfd_xcoff_swap_aux_out): Ditto.
  2007. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
  2008. (bfd_xcoff64_swap_aux_out): Ditto.
  2009. 2011-05-04 Alan Modra <amodra@gmail.com>
  2010. PR ld/12727
  2011. * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
  2012. was_undefined on dot-symbols.
  2013. 2011-05-03 Paul Brook <paul@codesourcery.com>
  2014. * elf32-tic6x.c (elf32_tic6x_howto_table,
  2015. elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
  2016. elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
  2017. Add R_C6000_EHTYPE.
  2018. 2011-05-01 Alan Modra <amodra@gmail.com>
  2019. PR ld/12718
  2020. * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
  2021. creating ifunc sections.
  2022. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
  2023. 2011-04-30 H.J. Lu <hongjiu.lu@intel.com>
  2024. * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
  2025. names.
  2026. 2011-04-28 Tom Tromey <tromey@redhat.com>
  2027. * bfdio.c (memory_bstat): Pass correct size to memset.
  2028. 2011-04-28 Mike Frysinger <vapier@gentoo.org>
  2029. * dwarf2.c (dwarf_debug_sections): Mark const.
  2030. * elf.c (special_sections): Likewise.
  2031. * libbfd-in.h (dwarf_debug_sections): Likewise.
  2032. * libbfd.h: Regenerate.
  2033. 2011-04-26 Kai Tietz <ktietz@redhat.com>
  2034. * coffcode.h (sec_to_styp_flags): Allow linkonce for
  2035. debugging sections.
  2036. 2011-04-26 Tristan Gingold <gingold@adacore.com>
  2037. * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
  2038. 2011-04-24 Alan Modra <amodra@gmail.com>
  2039. PR ld/12365
  2040. PR ld/12696
  2041. * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
  2042. * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
  2043. (_bfd_generic_link_add_one_symbol): Update "notice" call.
  2044. * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
  2045. it is a redef of an IR symbol in a real BFD.
  2046. 2011-04-22 H.J. Lu <hongjiu.lu@intel.com>
  2047. * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
  2048. in readonly section in a shared object.
  2049. (elf_i386_size_dynamic_sections): Likewise.
  2050. * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
  2051. (elf_x86_64_size_dynamic_sections): Likewise.
  2052. 2011-04-21 H.J. Lu <hongjiu.lu@intel.com>
  2053. PR ld/12694
  2054. * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
  2055. symbols.
  2056. * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
  2057. 2011-04-21 H.J. Lu <hongjiu.lu@intel.com>
  2058. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
  2059. on dynamic symbol error.
  2060. * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
  2061. 2011-04-20 Tristan Gingold <gingold@adacore.com>
  2062. * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
  2063. 2011-04-20 Alan Modra <amodra@gmail.com>
  2064. * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
  2065. (bfd_hash_table_init_n): Overflow checking.
  2066. (bfd_hash_set_default_size): Return current size. Take unsigned long
  2067. arg. Add 65537 to hash_size primes.
  2068. * bfd-in.h (bfd_hash_set_default_size): Update prototype.
  2069. * bfd-in2.h: Regenerate.
  2070. 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  2071. * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
  2072. memmove elements.
  2073. 2011-04-20 Alan Modra <amodra@gmail.com>
  2074. * libbfd.c (bfd_log2): Do return rounded up value.
  2075. * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
  2076. call with expanded old round down version of the function.
  2077. * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
  2078. * elflink.c (elf_link_add_object_symbols): Delete redundant code.
  2079. 2011-04-20 Alan Modra <amodra@gmail.com>
  2080. PR ld/12365
  2081. * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
  2082. in their own common section.
  2083. * elflink.c (elf_link_add_object_symbols): Likewise.
  2084. * linker.c (generic_link_check_archive_element): Don't lose flags
  2085. if common section is pre-existing.
  2086. (_bfd_generic_link_add_one_symbol): Likewise.
  2087. 2011-04-20 Alan Modra <amodra@gmail.com>
  2088. PR ld/12365
  2089. * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
  2090. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
  2091. multiple_definition regardless of allow_multiple_definition.
  2092. * simple.c (simple_dummy_multiple_definition): Update.
  2093. * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
  2094. calls.
  2095. 2011-04-18 Tristan Gingold <gingold@adacore.com>
  2096. * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
  2097. 2011-04-18 Alan Modra <amodra@gmail.com>
  2098. PR ld/12365
  2099. PR ld/12672
  2100. * bfd.c (BFD_PLUGIN): Define.
  2101. (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
  2102. * bfd-in2.h: Regenerate.
  2103. * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
  2104. * opncls.c (bfd_make_readable): Don't lose original bfd flags.
  2105. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2106. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
  2107. SEC_LOAD.
  2108. 2011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
  2109. * elf-bfd.h (struct sdt_note): New struct.
  2110. (struct elf_obj_tdata) <sdt_note_head>: New field.
  2111. * elf.c (elfobj_grok_stapsdt_note_1): New function.
  2112. (elfobj_grok_stapsdt_note): Likewise.
  2113. (elf_parse_notes): Added code to treat SystemTap note
  2114. sections.
  2115. 2011-04-12 Richard Henderson <rth@redhat.com>
  2116. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
  2117. exclude empty .got sections.
  2118. 2011-04-11 H.J. Lu <hongjiu.lu@intel.com>
  2119. * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
  2120. array access for BFD_RELOC_386_IRELATIVE.
  2121. 2011-04-11 Bernd Schmidt <bernds@codesourcery.com>
  2122. * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
  2123. 2011-04-11 Mark Wielaard <mjw@redhat.com>
  2124. PR 10549
  2125. * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
  2126. (has_gnu_symbols): Renamed from has_ifunc_symbols.
  2127. * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
  2128. * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
  2129. also if STB_GNU_UNIQUE symbol binding was seen.
  2130. * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
  2131. * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
  2132. * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
  2133. * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
  2134. * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
  2135. * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
  2136. 2011-04-11 Alan Modra <amodra@gmail.com>
  2137. * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
  2138. sections.
  2139. * libbfd.c (_bfd_generic_get_section_contents): Likewise.
  2140. (_bfd_generic_get_section_contents_in_window): Likewise.
  2141. * section.c (bfd_get_section_contents): Likewise.
  2142. * compress.c (bfd_get_full_section_contents): Likewise.
  2143. * elf32-rx.c (rx_final_link): Ignore rawsize.
  2144. * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
  2145. bfd with bfd_get_section_limit.
  2146. * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
  2147. os->size during final link. Update callers.
  2148. * bfd-in2.h: Regenerate.
  2149. 2011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
  2150. PR ld/12637
  2151. * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
  2152. as the number of global entries when merging with the primary GOT.
  2153. 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
  2154. * elf32-i386.c: Update copyright year.
  2155. * elf64-x86-64.c: Likewise.
  2156. 2011-04-09 Kai Tietz <ktietz@redhat.com>
  2157. * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
  2158. buffer and use rawsize for sorting.
  2159. * coffcode.h (coff_compute_section_file_positions): Set rawsize
  2160. before doing alignment.
  2161. 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
  2162. * elf32-i386.c (elf_i386_relocate_section): Return relocation
  2163. error on unsupported relocation.
  2164. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
  2165. 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
  2166. PR binutils/12657
  2167. * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
  2168. pid_t.
  2169. 2011-04-08 H.J. Lu <hongjiu.lu@intel.com>
  2170. PR ld/12654
  2171. * elf32-i386.c (elf_i386_relocate_section): Check !executable
  2172. instead of shared for R_386_TLS_LDO_32.
  2173. 2011-04-08 Tristan Gingold <gingold@adacore.com>
  2174. * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
  2175. * coff-pmac: Remove
  2176. * xcoff-target.h: Remove
  2177. * Makefile.in: Regenerate.
  2178. 2011-04-07 Cary Coutant <ccoutant@google.com>
  2179. * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
  2180. 2011-04-07 Paul Brook <paul@codesourcery.com>
  2181. * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
  2182. pc-relative.
  2183. (elf32_tic6x_howto_table_rel): Ditto.
  2184. (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
  2185. (elf32_tic6x_check_relocs): Ditto.
  2186. 2011-04-06 Joseph Myers <joseph@codesourcery.com>
  2187. * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
  2188. targets.
  2189. (strongarm*, thumb*, xscale*): Remove architectures.
  2190. (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
  2191. thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
  2192. xscale-*-coff): Remove targets.
  2193. 2011-04-01 Tristan Gingold <gingold@adacore.com>
  2194. * elfxx-ia64.c: include bfd_stdint.h
  2195. 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  2196. * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
  2197. dynobj and its initialization.
  2198. 2011-03-31 Tristan Gingold <gingold@adacore.com>
  2199. * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
  2200. * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
  2201. BFD_HOST_LONG_LONG to 1.
  2202. 2011-03-31 Tristan Gingold <gingold@adacore.com>
  2203. * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
  2204. (_bfd_vms_write_etir): Ditto.
  2205. (_bfd_vms_slurp_etir): Avoid to use intptr_t
  2206. * configure.com: Generate bfd_stdint.h
  2207. 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
  2208. * elf32-tic6x.h (struct elf32_tic6x_params): New.
  2209. (elf32_tic6x_setup): Declare.
  2210. * elf32-tic6x.c: Include <limits.h>.
  2211. (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
  2212. (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
  2213. New structures.
  2214. (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
  2215. (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
  2216. tic6x_elf_scom_symbol_ptr): New static variables.
  2217. (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
  2218. elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
  2219. R_C6000_PCR_H16 and R_C6000_PCR_L16.
  2220. (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
  2221. elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
  2222. elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
  2223. elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
  2224. elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
  2225. elf32_tic6x_adjust_dynamic_symbol): New static functions.
  2226. (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
  2227. to weak symbols as required by the ABI.
  2228. Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
  2229. as needed when generating DSBT output.
  2230. (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
  2231. elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
  2232. elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
  2233. elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
  2234. elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
  2235. elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
  2236. New static functions.
  2237. (ELF_MAXPAGESIZE): Define to 0x1000.
  2238. (bfd_elf32_bfd_copy_private_bfd_data,
  2239. bfd_elf32_bfd_link_hash_table_create,
  2240. bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
  2241. elf_backend_want_got_plt, elf_backend_want_dynbss,
  2242. elf_backend_plt_readonly, elf_backend_got_header_size,
  2243. elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
  2244. elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
  2245. elf_backend_check_relocs, elf_backend_add_symbol_hook,
  2246. elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
  2247. elf_backend_section_from_bfd_section,
  2248. elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
  2249. elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
  2250. elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
  2251. * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
  2252. BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
  2253. * bfd/bfd-in2.h: Regenerate.
  2254. * bfd/libbfd.h: Regenerate.
  2255. * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
  2256. 2011-03-31 Tristan Gingold <gingold@adacore.com>
  2257. * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
  2258. entry on xcoff when value is C_NULL_VALUE.
  2259. 2011-03-31 Tristan Gingold <gingold@adacore.com>
  2260. * libcoff-in.h (exec_hdr): Remove.
  2261. * libcoff.h: Regenerate.
  2262. 2011-03-30 Nick Clifton <nickc@redhat.com>
  2263. * po/da.po: Updated Danish translation.
  2264. 2011-03-29 Richard Henderson <rth@redhat.com>
  2265. * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
  2266. (elf64_alpha_gc_sweep_hook): New.
  2267. (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
  2268. (elf_backend_can_gc_sections): New.
  2269. 2011-03-26 John Marino <binutils@marino.st>
  2270. * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
  2271. * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
  2272. * configure: Regenerate.
  2273. 2011-03-25 Michael Snyder <msnyder@vmware.com>
  2274. * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
  2275. 2011-03-25 Tristan Gingold <gingold@adacore.com>
  2276. * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
  2277. of find_nearest_line on object files.
  2278. 2011-03-25 Tristan Gingold <gingold@adacore.com>
  2279. * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
  2280. Minor reordering.
  2281. (alpha_vms_create_eisd_for_section): Make code sections read-only.
  2282. 2011-03-24 Alan Modra <amodra@gmail.com>
  2283. * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
  2284. old-style __tls_get_addr calls without marker relocs don't match
  2285. their arg setup insn one for one. If such mismatches are found
  2286. report the reloc and don't do any tls optimization.
  2287. * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
  2288. 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
  2289. * bfd-in2.h: Regenerate.
  2290. 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
  2291. * archures.c: Add AVR XMEGA architecture information.
  2292. * cpu-avr.c (arch_info_struct): Likewise.
  2293. * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
  2294. (elf32_avr_object_p): Likewise.
  2295. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2296. * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
  2297. * bfd-in2.h: Regenerate.
  2298. * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
  2299. to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
  2300. entry.
  2301. (elf32_arm_howto_from_type): Update accordingly.
  2302. (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
  2303. (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
  2304. (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
  2305. with an extra noncall_refcount field.
  2306. (arm_local_iplt_info): New structure.
  2307. (elf_arm_obj_tdata): Add local_iplt.
  2308. (elf32_arm_local_iplt): New accessor macro.
  2309. (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
  2310. plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
  2311. Change tls_type to a bitfield and add is_iplt.
  2312. (elf32_arm_link_hash_newfunc): Update accordingly.
  2313. (elf32_arm_allocate_local_sym_info): New function.
  2314. (elf32_arm_create_local_iplt): Likewise.
  2315. (elf32_arm_get_plt_info): Likewise.
  2316. (elf32_arm_plt_needs_thumb_stub_p): Likewise.
  2317. (elf32_arm_get_local_dynreloc_list): Likewise.
  2318. (create_ifunc_sections): Likewise.
  2319. (elf32_arm_copy_indirect_symbol): Update after the changes to
  2320. elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
  2321. (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
  2322. to get PLT information. Assert that all STT_GNU_IFUNC references
  2323. are turned into PLT references.
  2324. (arm_build_one_stub): Pass the symbol type to
  2325. elf32_arm_final_link_relocate.
  2326. (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
  2327. (elf32_arm_allocate_irelocs): New function.
  2328. (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
  2329. all R_ARM_IRELATIVE.
  2330. (elf32_arm_allocate_plt_entry): New function.
  2331. (elf32_arm_populate_plt_entry): Likewise.
  2332. (elf32_arm_final_link_relocate): Add an st_type parameter.
  2333. Set srelgot to null for static objects. Use separate variables
  2334. to record which st_value and st_type should be used when generating
  2335. a dynamic relocation. Use elf32_arm_get_plt_info to find the
  2336. symbol's PLT information, setting has_iplt_entry, splt,
  2337. plt_offset and gotplt_offset accordingly. Check whether
  2338. STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
  2339. the relocation target accordingly. Broaden assert to include
  2340. .iplts. Don't set sreloc for static relocations. Assert that
  2341. we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
  2342. and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
  2343. of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
  2344. symbol. Pass the symbol type to arm_type_of_stub. Conditionally
  2345. resolve GOT references to the .igot.plt entry.
  2346. (elf32_arm_relocate_section): Update the call to
  2347. elf32_arm_final_link_relocate.
  2348. (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
  2349. information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
  2350. relocations in shared libraries and relocatable executables.
  2351. Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
  2352. to get the list of dynamic relocations for a local symbol.
  2353. (elf32_arm_check_relocs): Always create ifunc sections. Set isym
  2354. at the same time as setting h. Use elf32_arm_allocate_local_sym_info
  2355. to allocate local symbol information. Treat R_ARM_REL32 and
  2356. R_ARM_REL32_NOI as call relocations in shared libraries and
  2357. relocatable executables. Record PLT information for local
  2358. STT_GNU_IFUNC functions as well as global functions. Count
  2359. non-call PLT references. Use elf32_arm_get_local_dynreloc_list
  2360. to get the list of dynamic relocations for a local symbol.
  2361. (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
  2362. Don't remove STT_GNU_IFUNC PLTs unless all references have been
  2363. removed. Update after the changes to elf32_arm_link_hash_entry.
  2364. (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
  2365. entries should live in .plt or .iplt. Check whether the .igot.plt
  2366. and .got entries can be combined. Use elf32_arm_allocate_plt_entry
  2367. to allocate .plt and .(i)got.plt entries. Detect which .got
  2368. entries will need R_ARM_IRELATIVE relocations and use
  2369. elf32_arm_allocate_irelocs to allocate them. Likewise other
  2370. non-.got dynamic relocations.
  2371. (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
  2372. and dynamic relocations for local STT_GNU_IFUNC symbols.
  2373. Check whether the .igot.plt and .got entries can be combined.
  2374. Detect which .got entries will need R_ARM_IRELATIVE relocations
  2375. and use elf32_arm_allocate_irelocs to allocate them. Use stashed
  2376. section pointers intead of strcmp checks. Handle iplt and igotplt.
  2377. (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
  2378. to fill in .plt, .got.plt and .rel(a).plt entries. Point
  2379. STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
  2380. resolve to it.
  2381. (elf32_arm_output_plt_map_1): New function, split out from
  2382. elf32_arm_output_plt_map. Handle .iplt entries. Use
  2383. elf32_arm_plt_needs_thumb_stub_p.
  2384. (elf32_arm_output_plt_map): Call it.
  2385. (elf32_arm_output_arch_local_syms): Add mapping symbols for
  2386. local .iplt entries.
  2387. (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
  2388. (elf32_arm_swap_symbol_out): Likewise.
  2389. (elf32_arm_add_symbol_hook): New function.
  2390. (elf_backend_add_symbol_hook): Define for all targets.
  2391. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2392. * elf-bfd.h (elf_link_hash_entry): Add target_internal.
  2393. * elf.c (swap_out_syms): Set st_target_internal for each
  2394. Elf_Internal_Sym.
  2395. * elfcode.h (elf_swap_symbol_in): Likewise.
  2396. * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
  2397. * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
  2398. * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
  2399. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
  2400. * elflink.c (elf_link_output_extsym): Likewise.
  2401. (bfd_elf_final_link): Likewise.
  2402. (elf_link_add_object_symbols): Copy st_target_internal
  2403. to the hash table if we see a definition.
  2404. (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
  2405. * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
  2406. a branch_type field.
  2407. (a8_erratum_fix, a8_erratum_reloc): Likewise.
  2408. (arm_type_of_stub): Replace actual_st_type with an
  2409. actual_branch_type parameter.
  2410. (arm_build_one_stub): Use branch types rather than st_types to
  2411. determine the type of branch.
  2412. (cortex_a8_erratum_scan): Likewise.
  2413. (elf32_arm_size_stubs): Likewise.
  2414. (bfd_elf32_arm_process_before_allocation): Likewise.
  2415. (allocate_dynrelocs_for_symbol): Likewise.
  2416. (elf32_arm_finish_dynamic_sections): Likewise.
  2417. (elf32_arm_final_link_relocate): Replace sym_flags parameter with
  2418. a branch_type parameter.
  2419. (elf32_arm_relocate_section): Update call accordingly.
  2420. (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
  2421. (elf32_arm_output_map_sym): Initialize st_target_internal.
  2422. (elf32_arm_output_stub_sym): Likewise.
  2423. (elf32_arm_symbol_processing): Delete.
  2424. (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
  2425. Use st_target_internal to record the branch type.
  2426. (elf32_arm_swap_symbol_out): Use st_target_internal to test for
  2427. Thumb functions.
  2428. (elf32_arm_is_function_type): Delete.
  2429. (elf_backend_symbol_processing): Likewise.
  2430. (elf_backend_is_function_type): Likewise.
  2431. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2432. * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
  2433. (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
  2434. into the PLT block.
  2435. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2436. * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
  2437. may_need_local_target_p and may_become_dynamic_p to classify
  2438. the relocation type. Don't check info->symbolic or h->def_regular
  2439. when deciding whether to record a potential dynamic reloc.
  2440. Don't treat potential dynamic relocs as PLT references.
  2441. (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
  2442. try to make the PLT reference count go negative.
  2443. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2444. * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
  2445. GOT entry here, rather than leaving it to finish_dynamic_symbol.
  2446. Only create a dynamic relocation for local references if
  2447. info->shared.
  2448. (allocate_dynrelocs_for_symbol): Update dynamic relocation
  2449. allocation accordingly.
  2450. (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
  2451. 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
  2452. * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
  2453. (elf32_arm_add_dynreloc): Likewise.
  2454. (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
  2455. to allocate dynamic relocations.
  2456. (elf32_arm_size_dynamic_sections): Likewise.
  2457. (allocate_dynrelocs): Likewise. Rename to
  2458. allocate_dynrelocs_for_symbol.
  2459. (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
  2460. create dynamic relocations.
  2461. (elf32_arm_finish_dynamic_symbol): Likewise.
  2462. 2011-03-12 H.J. Lu <hongjiu.lu@intel.com>
  2463. * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
  2464. x32 GD->IE and GD->LE transitions.
  2465. (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
  2466. and LD->LE transitions.
  2467. 2011-03-10 Alan Modra <amodra@gmail.com>
  2468. * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
  2469. for LO_DS error message and correct multiple.
  2470. 2011-03-10 Alan Modra <amodra@gmail.com>
  2471. * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
  2472. (ppc64_elf_link_just_syms): New function.
  2473. (opd_entry_value): Don't assume big-endian host.
  2474. (get_r2off): New function.
  2475. (ppc_build_one_stub, ppc_size_one_stub): Use it here.
  2476. 2011-03-06 Michael Snyder <msnyder@vmware.com>
  2477. * compress.c (bfd_compress_section_contents): Check for out of mem.
  2478. * elf64-x86-64.c (elf_x86_64_relocate_section): Document
  2479. that case statement falls through intentionally.
  2480. * elf32-i386.c (elf_i386_relocate_section): Document fall through.
  2481. 2011-03-04 Alan Modra <amodra@gmail.com>
  2482. * archive.c (bsd_write_armap): Don't call stat in deterministic
  2483. mode, and don't use st_mtime if stat returns error.
  2484. 2011-03-03 Michael Snyder <msnyder@vmware.com>
  2485. * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
  2486. * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
  2487. * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
  2488. (aout_link_write_other_symbol): Missing break statement.
  2489. * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
  2490. * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
  2491. 2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
  2492. * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
  2493. x32 IE->LE transition.
  2494. (elf_x86_64_relocate_section): Likewise.
  2495. 2011-03-02 Bernd Schmidt <bernds@codesourcery.com>
  2496. * elflink.c (is_reloc_section): Remove function.
  2497. (get_dynamic_reloc_section_name): Construct string manually.
  2498. 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
  2499. * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
  2500. (adjust_relative_path): Likewise.
  2501. (_bfd_construct_extended_name_table): Likewise.
  2502. * corefile.c (generic_core_file_matches_executable_p): Likewise.
  2503. * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
  2504. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  2505. * elf32-spu.c (sort_bfds): Likewise.
  2506. (spu_elf_auto_overlay): Likewise.
  2507. * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
  2508. * xcofflink.c (xcoff_set_import_path): Likewise.
  2509. * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
  2510. (xtensa_regfile_lookup_shortname): Likewise.
  2511. 2011-02-28 Alan Modra <amodra@gmail.com>
  2512. PR 12513
  2513. * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
  2514. stringsize. Properly sanity check symdef_count. Remove redundant
  2515. bfd_release.
  2516. 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
  2517. * plugin.c (bfd_plugin_object_p): Correctly set the filesize
  2518. and handle claim_file seeking. Only try to load the plugin once.
  2519. 2011-02-22 Andreas Schwab <schwab@redhat.com>
  2520. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
  2521. relocation read the value from the second GOT slot.
  2522. 2011-02-15 Tristan Gingold <gingold@adacore.com>
  2523. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
  2524. 2011-02-15 Alan Modra <amodra@gmail.com>
  2525. * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
  2526. toc relocs. Fuss over free(NULL).
  2527. 2011-02-14 Mike Frysinger <vapier@gentoo.org>
  2528. * elflink.c (bfd_elf_size_dynamic_sections): Add
  2529. bfd_get_symbol_leading_char to the start of newname.
  2530. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  2531. * configure: Regenerate.
  2532. 2011-02-09 Alan Modra <amodra@gmail.com>
  2533. * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
  2534. we are done. When optimising large toc, check that a global
  2535. symbol on a toc reloc is defined in a kept section.
  2536. 2011-02-08 Nick Clifton <nickc@redhat.com>
  2537. PR binutils/12467
  2538. * elf.c (assign_file_positions_for_load_sections): Set the program
  2539. header offset and entry size to zero if there are no program
  2540. headers.
  2541. 2011-02-08 Alan Modra <amodra@gmail.com>
  2542. * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
  2543. local_syms when looking for local symbols in .toc.
  2544. 2011-02-01 Alan Modra <amodra@gmail.com>
  2545. * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
  2546. for toc pointer on any section having makes_toc_func_call set.
  2547. (check_pasted_section): Ensure pasted .init/.fini fragments use
  2548. the same toc if any has makes_toc_func_call set.
  2549. 2011-01-28 Joseph Myers <joseph@codesourcery.com>
  2550. * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
  2551. field.
  2552. 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
  2553. * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
  2554. common sections too.
  2555. 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
  2556. * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
  2557. Solaris target.
  2558. 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
  2559. Fix compilation for mingw64.
  2560. * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
  2561. typecast to avoid warning.
  2562. * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
  2563. usage.
  2564. * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
  2565. of long for pointer to avoid warning.
  2566. (elfNN_ia64_relax_brl): Idem.
  2567. (elfNN_ia64_install_value): Idem.
  2568. * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
  2569. 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
  2570. * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
  2571. h->needs_plt when deciding whether to record a possible dynamic reloc.
  2572. 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
  2573. * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
  2574. dynamic relocs for the removed section.
  2575. 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
  2576. * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
  2577. relocations.
  2578. 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
  2579. * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
  2580. (elf_x86_64_link_hash_table_create): Set pointer_r_type.
  2581. (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
  2582. for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
  2583. R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
  2584. (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
  2585. for ILP32.
  2586. 2011-01-14 Alan Modra <amodra@gmail.com>
  2587. * bfd.c (bfd_perror): Flush stdout before and stderr after printing
  2588. error.
  2589. (_bfd_default_error_handler): Likewise.
  2590. * elf.c (print_segment_map): Likewise.
  2591. * libbfd.c (warn_deprecated): Likewise.
  2592. * som.c (som_sizeof_headers): No need to do so here.
  2593. * coff-i860.c: Replace use of printf for error messages with
  2594. _bfd_error_handler.
  2595. * coff-ppc.c: Likewise.
  2596. * coff-sh.c: Likewise.
  2597. * elf32-bfin.c: Likewise.
  2598. * elf32-dlx.c: Likewise.
  2599. * elf32-mep.c: Likewise.
  2600. * elf32-v850.c: Likewise.
  2601. * mach-o.c: Likewise.
  2602. * pef.c: Likewise.
  2603. 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
  2604. * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
  2605. swap_reloca_out.
  2606. (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
  2607. (elf_x86_64_check_relocs): Align relocation section to 4 byte
  2608. for 32bit.
  2609. (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
  2610. ELF_ST_TYPE.
  2611. (elf_x86_64_finish_dynamic_symbol): Updated.
  2612. (elf_x86_64_finish_dynamic_sections): Don't use
  2613. Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
  2614. bfd_elf64_swap_dyn_out.
  2615. 2011-01-14 J. Park <grassman@gmail.com>
  2616. PR ld/12339
  2617. * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
  2618. following bfd_link_hash_warning symbol link.
  2619. 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
  2620. Glauber de Oliveira Costa <glommer@gmail.com>
  2621. * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
  2622. BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
  2623. BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
  2624. relocations.
  2625. * libbfd.h: Rebuilt.
  2626. * bfd-in2.h: Rebuilt.
  2627. * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
  2628. (elf32_arm_reloc_map): Likewise.
  2629. (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
  2630. (elf32_arm_stub_long_branch_any_tls_pic,
  2631. elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
  2632. (DEF_STUBS): Add new stubs.
  2633. (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
  2634. (elf32_arm_local_tlsdesc_gotent): New.
  2635. (GOT_TLS_GDESC): New mask.
  2636. (GOT_TLS_GD_ANY): Define.
  2637. (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
  2638. (elf32_arm_compute_jump_table_size): New.
  2639. (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
  2640. num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
  2641. sgotplt_jump_table_size fields.
  2642. (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
  2643. (elf32_arm_link_hash_table_create): Initialize new fields.
  2644. (arm_type_of_stub): Check TLS desc relocs too.
  2645. (elf32_arm_stub_name): TLS desc relocs can be shared.
  2646. (elf32_arm_tls_transition): Determine relaxation.
  2647. (arm_stub_required_alignment): Add tls stubs.
  2648. (elf32_arm_size_stubs): Likewise.
  2649. (elf32_arm_tls_relax): Perform TLS relaxing.
  2650. (elf32_arm_final_link_relocate): Process TLS DESC relocations.
  2651. (IS_ARM_TLS_GNU_RELOC): New.
  2652. (IS_ARM_TLS_RELOC): Use it.
  2653. (elf32_arm_relocate_section): Perform TLS relaxing.
  2654. (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
  2655. desc relocations.
  2656. (allocate_dynrelocs): Allocate tls desc relcoations.
  2657. (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
  2658. symbols.
  2659. (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
  2660. got slots.
  2661. (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
  2662. symbol.
  2663. (elf32_arm_finish_dynamic_symbol): Adjust.
  2664. (arm_put_trampoline): New.
  2665. (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
  2666. trampolines.
  2667. (elf_backend_always_size_sections): Define.
  2668. 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
  2669. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
  2670. 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
  2671. PR ld/12366
  2672. PR ld/12371
  2673. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
  2674. handle symbols marked with regular reference, but not non-GOT
  2675. reference when building shared library.
  2676. * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
  2677. local and global STT_GNU_IFUNC symols when building shared
  2678. library.
  2679. * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
  2680. 2011-01-05 DJ Delorie <dj@redhat.com>
  2681. * reloc.c: Add BFD_RELOC_RX_OP_NEG.
  2682. * libbfd.h: Regenerate.
  2683. * bfd-in2.h: Regenerate.
  2684. * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
  2685. 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
  2686. * cpu-i386.c (bfd_i386_compatible): New.
  2687. (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
  2688. with bfd_i386_compatible.
  2689. (bfd_x86_64_arch_intel_syntax): Likewise.
  2690. (bfd_i386_arch_intel_syntax): Likewise.
  2691. (i8086_arch): Likewise.
  2692. (bfd_x64_32_arch): Likewise.
  2693. (bfd_x86_64_arch): Likewise.
  2694. (bfd_i386_arch): Likewise.
  2695. For older changes see ChangeLog-2010
  2696. Copyright (C) 2011 Free Software Foundation, Inc.
  2697. Copying and distribution of this file, with or without modification,
  2698. are permitted in any medium without royalty provided the copyright
  2699. notice and this notice are preserved.
  2700. Local Variables:
  2701. mode: change-log
  2702. left-margin: 8
  2703. fill-column: 74
  2704. version-control: never
  2705. End: