ChangeLog-2009 192 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161
  1. 2009-12-31 Cary Coutant <ccoutant@google.com>
  2. * dwarf2.c (struct line_sequence): New struct.
  3. (struct line_info_table): Add num_sequences, remove last_line,
  4. add sequences.
  5. (add_line_info): Add new sequences as necessary.
  6. (compare_sequences): New function.
  7. (sort_line_sequences): New function.
  8. (decode_line_info): Initialize new fields in line table.
  9. Call sort_line_sequences.
  10. (lookup_address_in_line_info_table): Binary search for proper
  11. sequence.
  12. 2009-12-28 Daniel Gutson <dgutson@codesourcery.com>
  13. * elf32-arm.c (elf32_arm_final_link_relocate): limits
  14. fixed.
  15. 2009-12-28 Daniel Gutson <dgutson@codesourcery.com>
  16. * elf-attrs.c (_bfd_elf_merge_object_attributes): Error
  17. message rephrased.
  18. 2009-12-21 Alan Modra <amodra@gmail.com>
  19. * elf64-ppc.c: Delete my email address.
  20. 2009-12-18 Ulrich Weigand <uweigand@de.ibm.com>
  21. * elf.c (elfcore_grok_s390_high_gprs): New function.
  22. (elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes.
  23. (elfcore_write_s390_high_gprs): New function.
  24. (elfcore_write_register_note): Call it.
  25. 2009-12-17 Alan Modra <amodra@bigpond.net.au>
  26. PR ld/11088
  27. * elf32-ppc.c (update_plt_info): Clear sec here when addend is
  28. less than 32768..
  29. (ppc_elf_check_relocs): ..rather than doing so here. Ignore new
  30. relax relocs.
  31. (ppc_elf_gc_sweep_hook): Don't segfault when symbol hiding has
  32. removed plt_entry records.
  33. (ppc_elf_tls_setup): Handle PIE calls to __tls_get_addr correctly.
  34. (ppc_elf_tls_optimize): Likewise. Also dec __tls_get_addr refcount
  35. when optimizing code using new tlsgd and tlsld marker relocs.
  36. (ppc_elf_relax_section): Differentiate relaxed PLTREL24 relocs
  37. from ADDR24 relocs using plt or glink. Don't clear the addend
  38. for R_PPC_RELAX_PLTREL24.
  39. (ppc_elf_relocate_section): Correctly handle addends on relaxed
  40. PLTREL24 relocs.
  41. 2009-12-17 Alan Modra <amodra@bigpond.net.au>
  42. PR ld/11088
  43. * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol
  44. hiding has nulled out plt.plist.
  45. 2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
  46. * opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in
  47. parameters.
  48. * tekhex.c (pass_over): Replace eof with is_eof.
  49. 2009-12-15 Tristan Gingold <gingold@adacore.com>
  50. * mach-o.h (bfd_mach_o_uuid_command): Remove section field.
  51. * mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section
  52. from this command.
  53. 2009-12-15 Tristan Gingold <gingold@adacore.com>
  54. * mach-o.c (struct mach_o_section_name_xlat): Add flags field.
  55. (dwarf_section_names_xlat): Add section flags.
  56. (text_section_names_xlat): Ditto.
  57. (data_section_names_xlat): Ditto.
  58. (bfd_mach_o_convert_section_name_to_bfd): Now return name and section
  59. flags by reference.
  60. (bfd_mach_o_make_bfd_section): Use section flags when know, otherwise
  61. try to guess.
  62. 2009-12-14 Doug Kwan <dougkwan@google.com>
  63. * opncls.c (bfd_opnr_iovec): Rename parameters to avoid shawdowed
  64. variable warnings.
  65. * bfd-in2.h: Regnenerate.
  66. 2009-12-12 Nick Clifton <nickc@redhat.com>
  67. * coff-arm.c (coff_arm_rtype_to_howto): Fix shadowed variable
  68. warning.
  69. 2009-12-11 Tristan Gingold <gingold@adacore.com>
  70. * som.c (bfd_som_set_subsection_attributes)
  71. (bfd_section_from_som_symbol, som_reloc_queue_fix): Fix shadowed
  72. variable warnings.
  73. * cache.c (close_one): Likewise.
  74. 2009-12-11 Nick Clifton <nickc@redhat.com>
  75. * warning.m4 (GCC_WARN_CFLAGS): Add -Wshadow.
  76. * configure: Regenerate.
  77. * Makefile.in: Regenerate.
  78. * doc/Makefile.in: Regenerate.
  79. * aout-arm.c: Fix shadowed variable warnings.
  80. * aout-tic30.c: Likewise.
  81. * aoutx.h: Likewise.
  82. * archive.c: Likewise.
  83. * coff-alpha.c: Likewise.
  84. * coff-i386.c: Likewise.
  85. * coff-x86_64.c: Likewise.
  86. * coffgen.c: Likewise.
  87. * dwarf2.c: Likewise.
  88. * ecoff.c: Likewise.
  89. * elf-eh-frame.c: Likewise.
  90. * elf-m10300.c: Likewise.
  91. * elf.c: Likewise.
  92. * elf32-arm.c: Likewise.
  93. * elf32-avr.c: Likewise.
  94. * elf32-bfin.c: Likewise.
  95. * elf32-cr16.c: Likewise.
  96. * elf32-i386.c: Likewise.
  97. * elf32-ip2k.c: Likewise.
  98. * elf32-lm32.c: Likewise.
  99. * elf32-m68hc1x.c: Likewise.
  100. * elf32-microblaze.c: Likewise.
  101. * elf32-ppc.c: Likewise.
  102. * elf32-rx.c: Likewise.
  103. * elf32-score.c: Likewise.
  104. * elf32-score7.c: Likewise.
  105. * elf32-sh.c: Likewise.
  106. * elf32-spu.c: Likewise.
  107. * elf32-v850.c: Likewise.
  108. * elf32-xtensa.c: Likewise.
  109. * elf64-hppa.c: Likewise.
  110. * elf64-ppc.c: Likewise.
  111. * elf64-x86-64.c: Likewise.
  112. * elflink.c: Likewise.
  113. * elfxx-ia64.c: Likewise.
  114. * elfxx-mips.c: Likewise.
  115. * elfxx-sparc.c: Likewise.
  116. * hash.c: Likewise.
  117. * ieee.c: Likewise.
  118. * libbfd.c: Likewise.
  119. * mach-o.c: Likewise.
  120. * merge.c: Likewise.
  121. * nlm32-sparc.c: Likewise.
  122. * oasys.c: Likewise.
  123. * opncls.c: Likewise.
  124. * pdp11.c: Likewise.
  125. * peXXigen.c: Likewise.
  126. * pef.c: Likewise.
  127. * versados.c: Likewise.
  128. * vms-gsd.c: Likewise.
  129. * vms-hdr.c: Likewise.
  130. * vms-tir.c: Likewise.
  131. * vms.c: Likewise.
  132. * xcofflink.c: Likewise.
  133. * xsym.c: Likewise.
  134. * xtensa-isa.c: Likewise.
  135. 2009-12-10 Maciej W. Rozycki <macro@codesourcery.com>
  136. * elfxx-mips.c (mips_elf_calculate_relocation): Correct handling
  137. of undefined symbols.
  138. 2009-12-09 Daniel Jacobowitz <dan@codesourcery.com>
  139. * elf32-arm.c (elf32_arm_next_input_section): Skip sections without
  140. SEC_CODE.
  141. 2009-12-08 Alan Modra <amodra@bigpond.net.au>
  142. * elf.c (write_zeros): New function.
  143. (assign_file_positions_for_load_sections): Allocate file space for
  144. NOBITS sections that are followed by PROGBITS sections in a segment.
  145. 2009-12-03 Tristan Gingold <gingold@adacore.com>
  146. * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for
  147. all sections of the __DWARF segment.
  148. 2009-12-03 Alan Modra <amodra@bigpond.net.au>
  149. PR ld/11047
  150. * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr
  151. symbol reference from relocs belonging to calls that are
  152. optimized away.
  153. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  154. 2009-12-02 Jerker Bäck <jerker.back@gmail.com>
  155. PR binutils/11017
  156. * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h
  157. 2009-11-30 Joseph Myers <joseph@codesourcery.com>
  158. * configure: Regenerate.
  159. 2009-11-26 Per Øyvind Karlsen <peroyvind@mandriva.org>
  160. * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define.
  161. 2009-11-24 Joel Brobecker <brobecker@adacore.com>
  162. * acinclude.m4: Add include of ../config/zlib.m4.
  163. * configure.in: AM_ZLIB to check for zlib support.
  164. * configure: Regenerate.
  165. 2009-11-23 Paul Brook <paul@codesourcery.com>
  166. * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add
  167. prototype.
  168. * elf-bfd.h (_bfd_elf_copy_link_hash_symbol_type): Add prototype.
  169. * linker.c (_bfd_generic_copy_link_hash_symbol_type): New function.
  170. * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function.
  171. * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add
  172. _copy_link_hash_symbol_type.
  173. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
  174. _bfd_generic_copy_link_hash_symbol_type.
  175. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
  176. _bfd_generic_copy_link_hash_symbol_type.
  177. * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define.
  178. * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define.
  179. * aout-tic30.c (MY_bfd_copy_link_hash_symbol_type): Define.
  180. * binary.c (binary_bfd_copy_link_hash_symbol_type): Define.
  181. * bout.c (b_out_bfd_copy_link_hash_symbol_type): Define.
  182. * coffcode.h (coff_bfd_copy_link_hash_symbol_type): Define.
  183. * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define.
  184. * i386msdos.c (msdos_bfd_copy_link_hash_symbol_type): Define.
  185. * i386os9k.c (os9k_bfd_copy_link_hash_symbol_type): Define.
  186. * ieee.c (ieee_bfd_copy_link_hash_symbol_type): Define.
  187. * ihex.c (ihex_bfd_copy_link_hash_symbol_type): Define.
  188. * libecoff.h (_bfd_ecoff_bfd_copy_link_hash_symbol_type): Define.
  189. * mach-o.c (bfd_mach_o_bfd_copy_link_hash_symbol_type): Define.
  190. * mmo.c (mmo_bfd_copy_link_hash_symbol_type): Define.
  191. * nlm-target.h (nlm_bfd_copy_link_hash_symbol_type): Define.
  192. * oasys.c (oasys_bfd_copy_link_hash_symbol_type): Define.
  193. * pef.c (bfd_pef_bfd_copy_link_hash_symbol_type): Define.
  194. * ppcboot.c (ppcboot_bfd_copy_link_hash_symbol_type): Define.
  195. * som.c (som_bfd_copy_link_hash_symbol_type): Define.
  196. * srec.c (srec_bfd_copy_link_hash_symbol_type): Define.
  197. * tekhex.c (tekhex_bfd_copy_link_hash_symbol_type): Define.
  198. * versados.c (versados_bfd_copy_link_hash_symbol_type): Define.
  199. * vms.c (vms_bfd_copy_link_hash_symbol_type): Define.
  200. * xsym.c (bfd_sym_bfd_copy_link_hash_symbol_type): Define.
  201. * bfd-in2.h: Regenerate.
  202. * libbfd.h: Regenerate.
  203. 2009-11-19 Tristan Gingold <gingold@adacore.com>
  204. * coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
  205. hard-coded casts.
  206. (pmac_xcoff_vec): Ditto.
  207. * coff64-rs6000.c (rs6000coff64_vec): Ditto.
  208. (aix5coff64_vec): Ditto.
  209. 2009-11-18 Alan Modra <amodra@bigpond.net.au>
  210. * bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare.
  211. * bfd-in2.h: Regenerate.
  212. * elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS
  213. insn optimisation to..
  214. * elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here. New function.
  215. (ppc_elf_relocate_section): Use it.
  216. 2009-11-18 Alan Modra <amodra@bigpond.net.au>
  217. * targets.c: Don't include alloca-conf.h.
  218. (bfd_get_target_info): Don't use alloca.
  219. 2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
  220. PR ld/10955
  221. * elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
  222. sections.
  223. 2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
  224. PR ld/10955
  225. * elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments.
  226. (elfNN_ia64_update_short_info): Remove "->output_section" from
  227. ia64_info->max_short_sec and ia64_info->min_short_sec.
  228. (elfNN_ia64_choose_gp): Likewise.
  229. (elfNN_ia64_relax_section): Pass tsec->output_section to
  230. elfNN_ia64_update_short_info.
  231. 2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
  232. PR ld/10955
  233. * elfxx-ia64.c (elfNN_ia64_link_hash_table): Add max_short_sec,
  234. max_short_offset, min_short_sec and min_short_offset.
  235. (elfNN_ia64_update_short_info): New.
  236. (elfNN_ia64_relax_section): Update max_short_sec,
  237. max_short_offset, min_short_sec and min_short_offset.
  238. (elfNN_ia64_choose_gp): Use min_short_sec/max_short_sec if
  239. they are set.
  240. 2009-11-17 Paul Brook <paul@codesourcery.com>
  241. Daniel Jacobowitz <dan@codesourcery.com>
  242. * elf32-arm.c (using_thumb_only, arch_has_arm_nop,
  243. arch_has_thumb2_nop): Handle TAG_CPU_ARCH_V7E_M.
  244. (tag_cpu_arch_combine): Ditto. Correct MAX_TAG_CPU_ARCH test.
  245. 2009-11-17 Ulrich Weigand <uweigand@de.ibm.com>
  246. * elf32-spu.c (struct spu_link_hash_table): Remove overlay_fixed,
  247. reserved, and extra_stack_space members.
  248. (spu_elf_auto_overlay): Use auto_overlay_fixed, auto_overlay_reserved,
  249. and extra_stack_space members of htab->params instead.
  250. 2009-11-17 Tristan Gingold <gingold@adacore.com>
  251. * targets.c: Include alloca-conf.h
  252. 2009-11-16 Kai Tietz <kai.tietz@onevision.com>
  253. * targets.c (bfd_get_target_info): New function.
  254. (_bfd_find_arch_match): New function.
  255. * bfd-in2.h: Regenerated.
  256. 2009-11-12 Nick Clifton <nickc@redhat.com>
  257. * po/ru.po: Updates Russian translation.
  258. 2009-11-11 Nick Clifton <nickc@redhat.com>
  259. * po/id.po: Updated Indonesian translation.
  260. 2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  261. * configure.in: Call ACX_LARGEFILE. Stop calling AC_PLUGINS,
  262. AC_SYS_LARGEFILE and checking the Solaris largefile exception.
  263. * aclocal.m4: Regenerate.
  264. * configure: Regenerate.
  265. 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
  266. PR ld/10911
  267. * elflink.c (elf_link_output_extsym): Don't return on
  268. STT_GNU_IFUNC symbol when stripping.
  269. 2009-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  270. * elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information
  271. in a relocatable link.
  272. * elf64-hppa.c (elf_hppa_final_link): Likewise.
  273. 2009-11-05 Nick Clifton <nickc@redhat.com>
  274. * elflink.c (elf_link_add_object_symbols): Improve error
  275. message generated when a symbol is left unresolved because a
  276. --no-add-needed command line option has prevented the
  277. inclusion of the DSO defining it.
  278. 2009-11-03 Alan Modra <amodra@bigpond.net.au>
  279. Ulrich Weigand <uweigand@de.ibm.com>
  280. * elf32-spu.c (mark_functions_via_relocs): Handle non-branch relocs
  281. (jump tables or other references to code labels) as well.
  282. 2009-11-02 Paul Brook <paul@codesourcery.com>
  283. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle VFPv4
  284. attributes.
  285. 2009-11-02 Alan Modra <amodra@bigpond.net.au>
  286. * elflink.c (elf_link_add_object_symbols): Don't force debug
  287. symbols local.
  288. 2009-10-29 Johan Kristell <johankri@axis.com>
  289. * elf32-cris.c (cris_elf_plt_sym_val): New function.
  290. (elf_backend_plt_sym_val): Define.
  291. 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
  292. * peXXigen.c (bfdver.h): Add include.
  293. (LINKER_VERSION): Do calculation based on BFD_VERSION.
  294. 2009-10-25 Maciej W. Rozycki <macro@linux-mips.org>
  295. * elf32-vax.c (elf_vax_relocate_section): Correct assertion.
  296. 2009-10-25 Maciej W. Rozycki <macro@linux-mips.org>
  297. * elf32-vax.c (elf_vax_plt_entry): Fix formatting.
  298. 2009-10-25 Maciej W. Rozycki <macro@linux-mips.org>
  299. * elf32-vax.c (elf_vax_relocate_section): Fix a typo.
  300. 2009-10-23 Kai Tietz <kai.tietz@onevision.com>
  301. * coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset
  302. of R_AMD64_PCRLONG_<X> relocations from addend.
  303. 2009-10-23 Alan Modra <amodra@bigpond.net.au>
  304. * plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS.
  305. 2009-10-20 Alan Modra <amodra@bigpond.net.au>
  306. PR binutils/10802
  307. * opncls.c (_maybe_make_executable): Make DYNAMIC files executable.
  308. 2009-10-19 Edgar E. Iglesias <edgar@axis.com>
  309. Hans-Peter Nilsson <hp@axis.com>
  310. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
  311. Don't subtract the size of the TLS block for non-shared objects
  312. from the relocation.
  313. 2009-10-17 Arnold Metselaar <arnold.metselaar@planet.nl>
  314. * coff-z80.c (z80coff_vec): Allow sections to be of type
  315. SEC_CODE or SEC_DATA
  316. 2009-10-16 Alan Modra <amodra@bigpond.net.au>
  317. PR binutils/10785
  318. * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc
  319. bim and bim->buffer. bfd_malloc instead.
  320. * peicode.h (pe_ILF_build_a_bfd): Similarly.
  321. (ILF_DATA_SIZE): Don't include bim.
  322. * opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.
  323. 2009-10-14 Alan Modra <amodra@bigpond.net.au>
  324. * aoutx.h (aout_link_check_ar_symbols): Typo fix.
  325. 2009-10-13 H.J. Lu <hongjiu.lu@intel.com>
  326. PR binutils/10763
  327. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt
  328. earlier.
  329. 2009-10-13 Alan Modra <amodra@bigpond.net.au>
  330. * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.
  331. 2009-10-12 Roland McGrath <roland@frob.com>
  332. * elflink.c (elf_link_add_object_symbols, _bfd_elf_merge_symbol):
  333. Fix %s that should be %B in several message formats.
  334. 2009-10-10 Alan Modra <amodra@bigpond.net.au>
  335. * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
  336. excluded output sections.
  337. 2009-10-09 Tristan Gingold <gingold@adacore.com>
  338. * mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH.
  339. (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
  340. 2009-10-09 Tristan Gingold <gingold@adacore.com>
  341. * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to
  342. bfd_mach_o_read_symtab_symbols.
  343. (bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread.
  344. (bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs.
  345. (bfd_mach_o_scan_write_section_32): Rename to
  346. bfd_mach_o_write_section_32.
  347. (bfd_mach_o_scan_write_section_64): Rename to
  348. bfd_mach_o_write_section_64.
  349. (bfd_mach_o_scan_write_segment_32): Rename to
  350. bfd_mach_o_write_segment_32.
  351. (bfd_mach_o_scan_write_segment_64): Rename to
  352. bfd_mach_o_write_segment_64.
  353. (bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab.
  354. (bfd_mach_o_scan_read_section_32): Rename to
  355. bfd_mach_o_read_section_32.
  356. (bfd_mach_o_scan_read_section_64): Rename to
  357. bfd_mach_o_read_section_64.
  358. (bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section.
  359. (bfd_mach_o_scan_read_symtab_strtab): Rename to
  360. bfd_mach_o_read_symtab_strtab.
  361. (bfd_mach_o_scan_read_symtab_symbol): Rename to
  362. bfd_mach_o_read_symtab_symbol.
  363. (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
  364. bfd_mach_o_read_dysymtab_symbol.
  365. (bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker.
  366. (bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib.
  367. (bfd_mach_o_scan_read_prebound_dylib): Rename to
  368. bfd_mach_o_read_prebound_dylib.
  369. (bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread.
  370. (bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab.
  371. (bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab.
  372. (bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid.
  373. (bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit.
  374. (bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str.
  375. (bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info.
  376. (bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment.
  377. (bfd_mach_o_scan_read_segment_32): Rename to
  378. bfd_mach_o_read_segment_32.
  379. (bfd_mach_o_scan_read_segment_64): Rename to
  380. bfd_mach_o_read_segment_64.
  381. (bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command.
  382. * mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
  383. bfd_mach_o_read_dysymtab_symbol.
  384. 2009-10-09 Tristan Gingold <gingold@adacore.com>
  385. * mach-o.c (bfd_mach_o_section_get_entry_size): Moved.
  386. (bfd_mach_o_section_get_nbr_indirect): Ditto.
  387. (bfd_mach_o_get_synthetic_symtab): New function.
  388. (bfd_mach_o_print_private_header): Print the number of commands
  389. in decimal.
  390. * mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype.
  391. * mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab.
  392. 2009-10-08 Tristan Gingold <gingold@adacore.com>
  393. * config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs.
  394. 2009-10-06 H.J. Lu <hongjiu.lu@intel.com>
  395. * bfd-in2.h: Regenerated.
  396. 2009-10-02 Alan Modra <amodra@bigpond.net.au>
  397. * aout-cris.c (N_SHARED_LIB): Don't define.
  398. * hp300bsd.c (N_SHARED_LIB): Don't define.
  399. * i386bsd.c (N_SHARED_LIB): Don't define.
  400. * i386linux.c (N_SHARED_LIB): Don't define.
  401. * i386lynx.c (N_SHARED_LIB): Don't define.
  402. * m68klinux.c (N_SHARED_LIB): Don't define.
  403. * m88kmach3.c (N_SHARED_LIB): Don't define.
  404. * mipsbsd.c (N_SHARED_LIB): Don't define.
  405. * newsos3.c (N_SHARED_LIB): Don't define.
  406. * pc532-mach.c (N_SHARED_LIB): Don't define.
  407. * pdp11.c (N_SHARED_LIB): Don't define.
  408. * sparclinux.c (N_SHARED_LIB): Don't define.
  409. * vaxbsd.c (N_SHARED_LIB): Don't define.
  410. 2009-10-01 Dave Korn <dave.korn.cygwin@gmail.com>
  411. * cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
  412. symbol for a weak undef in the auxbfd, not the input bfd.
  413. 2009-10-01 Ulrich Weigand <uweigand@de.ibm.com>
  414. * elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script
  415. after .toe instead of before .text section. Set the LMA of all
  416. overlay sections to their icache IA address.
  417. (spu_elf_find_overlays): Determine icache set id without reference
  418. to the LMA.
  419. 2009-09-30 Tristan Gingold <gingold@adacore.com>
  420. * configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.
  421. 2009-09-29 H.J. Lu <hongjiu.lu@intel.com>
  422. * elf64-x86-64.c (elf64_x86_64_append_rela): New.
  423. (elf64_x86_64_relocate_section): Use it.
  424. (elf64_x86_64_finish_dynamic_symbol): Likewise.
  425. 2009-09-29 DJ Delorie <dj@redhat.com>
  426. * Makefile.am (ALL_MACHINES): Add cpu-rx.lo.
  427. (ALL_MACHINES_CFILES): Add cpu-rx.c.
  428. (BFD32_BACKENDS): Add elf32-rx.lo.
  429. (BFD32_BACKENDS_CFILES): Add elf32-rx.c.
  430. * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx.
  431. Export bfd_rx_arch.
  432. (bfd_archures_list): Add bfd_rx_arch.
  433. * config.bfd: Add entry for rx-*-elf.
  434. * configure.in: Add entries for bfd_elf32_rx_le_vec and
  435. bfd_elf32_rx_be_vec.
  436. * reloc.c: Add RX relocations.
  437. * targets.c: Add RX target vectors.
  438. * Makefile.in: Regenerate.
  439. * bfd-in2.h: Regenerate.
  440. * configure: Regenerate.
  441. * libbfd.h: Regenerate.
  442. * cpu-rx.c: New file.
  443. * elf32-rx.c: New file.
  444. 2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  445. * elf32-cr16.c (elf32_cr16_relocate_section): Removed
  446. info->relocatable to fix the ld/testsuites/ld-elf/linkonce1 test case.
  447. 2009-09-28 Nick Clifton <nickc@redhat.com>
  448. PR 10478: Accepting Solaris binaries.
  449. * elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER
  450. section link values in x86 binaries.
  451. * elfcode.h (elf_object_p): Likewise.
  452. 2009-09-28 Philippe De Muyter <phdm@macqel.be>
  453. * elf32-m68k.c (elf_m68k_final_write_processing): New function.
  454. (elf_backend_final_write_processing): Macro defined as above function.
  455. 2009-09-25 Martin Thuresson <martint@google.com>
  456. Update sources to make alpha and arm targets compile cleanly with
  457. -Wc++-compat:
  458. * ecoff.c: Add casts.
  459. * ecofflink.c: Add casts.
  460. * elf64-alpha.c: Add casts.
  461. (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move
  462. to top level.
  463. (SKIP_HOWTO): Use enum name.
  464. * elf32-arm.c: Add casts.
  465. (elf32_arm_vxworks_bed): Update code to avoid multiple
  466. declarations.
  467. (struct map_stub): Move to top level.
  468. 2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
  469. PR ld/10630
  470. * elflink.c (elf_link_output_extsym): Turn off visibility on
  471. local symbol.
  472. (bfd_elf_final_link): Turn off visibility on dynamic local
  473. symbol.
  474. 2009-09-24 Alan Modra <amodra@bigpond.net.au>
  475. PR binutils/10654
  476. * dwarf2.c (lookup_address_in_line_info_table): Remove workaround
  477. for invalid location lists generated by gcc-2.95 and Intel 6.0 C++.
  478. Remove "function" parm, adjust caller.
  479. 2009-09-23 Matt Rice <ratmice@gmail.com>
  480. * bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
  481. arguments.
  482. * elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
  483. DT_DEPAUDIT from audit/depaudit arguments.
  484. (elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
  485. (elf_link_add_object_symbols): Set dt_audit target data when finding a
  486. DT_AUDIT.
  487. * bfd-in2.h: Regenerate.
  488. * bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
  489. 2009-09-23 Jie Zhang <jie.zhang@analog.com>
  490. * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
  491. .rel.plt and .plt sections are removed.
  492. (elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss
  493. section. Remove the duplicated removing of empty .rel.plt
  494. section.
  495. 2009-09-21 Richard Sandiford <rdsandiford@googlemail.com>
  496. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous
  497. patch to handle the new personality relaxation.
  498. 2009-09-21 Richard Sandiford <rdsandiford@googlemail.com>
  499. * elf-eh-frame.c (make_pc_relative): New function.
  500. (_bfd_elf_write_section_eh_frame): Use it.
  501. 2009-09-21 Alan Modra <amodra@bigpond.net.au>
  502. * elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define.
  503. (ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define.
  504. (MR_0_3, MR_3_0): Define.
  505. (struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt.
  506. (ppc_elf_select_plt_layout): Save emit_stub_syms param earlier.
  507. (ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
  508. table. Check for presense of __tls_get_addr_opt
  509. (allocate_dynrelocs): Increase glink entry size for __tls_get_addr.
  510. (ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag.
  511. (write_glink_stub): Add param p.
  512. (ppc_elf_relocate_section): Adjust write_glink_stub call.
  513. (ppc_elf_finish_dynamic_symbol): Emit special glink call stub for
  514. __tls_get_addr.
  515. * elf32-ppc.h (ppc_elf_tls_setup): Update prototype.
  516. * elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt.
  517. (ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
  518. table. Check for presense of __tls_get_addr_opt.
  519. (ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag.
  520. (LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13,
  521. BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1,
  522. LD_R2_0R1, MTLR_R11): Define.
  523. (build_tls_get_addr_stub): New function.
  524. (ppc_build_one_stub): Call it.
  525. (ppc_size_one_stub): Add extra size for __tls_get_addr stub.
  526. (ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for
  527. __tls_get_addr plt call.
  528. * elf64-ppc.h (ppc64_elf_tls_setup): Update prototype.
  529. 2009-09-19 Richard Sandiford <rdsandiford@googlemail.com>
  530. * elf-bfd.h (eh_cie_fde): Add personality_offset and
  531. make_per_encoding_relative to the CIE structure. Add a padding field.
  532. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Use 0x70
  533. rather than 0xf0 when masking out the base address encoding
  534. Record the offset of personality data from the start of the CIE.
  535. Remove a repeated elf_backend_can_make_relative_eh_frame check.
  536. (find_merged_cie): Take an info argument. If the personality
  537. binds locally, try converting an absolute personality into
  538. a local one.
  539. (_bfd_elf_discard_section_eh_frame): Use 0x70 rather than 0xf0
  540. when masking out the base address encoding. Update the call to
  541. find_merged_cie.
  542. (_bfd_elf_eh_frame_section_offset): Discard relocations against
  543. the personality data if we are converting into PC-relative form.
  544. (_bfd_elf_write_section_eh_frame): Use 0x70 rather than 0xf0
  545. when masking out the base address encoding. Handle
  546. make_per_encoding_relative.
  547. 2009-09-18 Alan Modra <amodra@bigpond.net.au>
  548. PR ld/10406
  549. * elf32-ppc.c (ppc_elf_howto_raw): Make R_PPC_EMB_SDAI16 and
  550. R_PPC_EMB_SDA2I16 complain_overflow_signed.
  551. (create_sdata_sym): Pass info rather than htab.
  552. Update all callers. Ensure symbols are hidden.
  553. (ppc_elf_check_relocs): Allow SDAREL16 when shared.
  554. (ppc_elf_size_dynamic_sections): When shared, equate _SDA_BASE_ to
  555. _GLOBAL_OFFSET_TABLE_.
  556. (elf_finish_pointer_linker_section): Don't assume that sdata base
  557. symbol is always at 0x8000 offset. Don't subtract the addend here.
  558. (is_static_defined): New function.
  559. (ppc_elf_relocate_section): Verify symbol base used in SDA relocs
  560. is statically defined. Clear addend for EMB_SDAI16 and EMB_SDA2I16
  561. relocs. Downgrade error on unexpected section for EMB_SDA2REL
  562. reloc symbols to a warning.
  563. 2009-09-18 Nick Clifton <nickc@redhat.com>
  564. * po/es.po: Updated Spanish translation.
  565. * po/vi.po: Updated Vietnamese translation.
  566. 2009-09-18 Alan Modra <amodra@bigpond.net.au>
  567. * elf64-ppc.c (follow_link, elf_follow_link, ppc_follow_link): New
  568. functions. Use throughout.
  569. (ppc64_elf_copy_indirect_symbol): Set direct symbol "oh" field
  570. from indirect symbol.
  571. (lookup_fdh): Rename from get_fdh. Follow indirect sym links.
  572. (add_symbol_adjust): Simplify.
  573. (defined_code_entry, defined_func_desc): New functions.
  574. (ppc64_elf_gc_keep): Follow indirect sym links. Use defined_code_entry.
  575. (ppc64_elf_gc_mark_dynamic_ref): Use defined_func_desc and
  576. defined_code_entry to follow indirect sym links.
  577. (ppc64_elf_gc_mark_hook, func_desc_adjust): Likewise.
  578. (ppc_type_of_stub): Follow indirect sym links.
  579. (toc_adjusting_stub_needed): Likewise.
  580. (ppc_build_one_stub): Likewise. Make undefined dot-symbols weak
  581. rather than defining them at stub.
  582. (ppc64_elf_relocate_section): Rewrite call test to avoid multiple
  583. assignments in test.
  584. 2009-09-16 Tristan Gingold <gingold@adacore.com>
  585. * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10.
  586. Reindent.
  587. * mach-o.c (bfd_mach_o_cpu_name): Reindent.
  588. (bfd_mach_o_filetype_name): Complete with new constants. Reindent.
  589. (bfd_mach_o_print_private_header): Use fputs instead of fprintf
  590. when possible to avoid warnings.
  591. (bfd_mach_o_print_section_map): Ditto.
  592. (bfd_mach_o_section_get_entry_size): New function.
  593. (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly
  594. added function.
  595. (bfd_mach_o_print_dysymtab): Print address of indirect symbols.
  596. 2009-09-14 Nick Clifton <nickc@redhat.com>
  597. * po/fi.po: Updated Finnish translation.
  598. 2009-09-11 Nick Clifton <nickc@redhat.com>
  599. * po/bfd.pot: Updated by the Translation project.
  600. 2009-09-11 Philippe De Muyter <phdm@macqel.be>
  601. * binary.c (binary_object_p): Remove bfd_external_binary_architecture
  602. hack. objcopy `-B' (`--binary-architecture') option is now handled
  603. in a generic way.
  604. 2009-09-11 Nick Clifton <nickc@redhat.com>
  605. * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility
  606. changes.
  607. 2009-09-11 Jie Zhang <jie.zhang@analog.com>
  608. * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
  609. NULL if `ht' is NULL.
  610. 2009-09-09 Martin Thuresson <martin@mtme.org>
  611. Update sources to compile cleanly with -Wc++-compat:
  612. * aoutx.h: Add casts.
  613. * archive.c: Add casts.
  614. * archive64.c: Add casts.
  615. * archures.c: Add casts.
  616. * bfd-in2.h: Regenerated.
  617. * bfd.c: Add casts. (enum bfd_direction): Move out to top level.
  618. * bfdio.c: Add casts.
  619. * binary.c: Add casts.
  620. * cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
  621. parameter to use enum value instead of int.
  622. * coffcode.h: Add casts.
  623. * coffgen.c: Add casts.
  624. * cofflink.c: Add casts.
  625. * compress.c: Add casts.
  626. * dwarf1.c: Add casts.
  627. * dwarf2.c: Add casts. (struct dwarf2_debug): Rename member bfd to
  628. bfd_ptr. Update code to use new name.
  629. * elf-attrs.c: Add casts.
  630. * elf-bfd.h (elf_link_virtual_table_entry): Gives name to
  631. anonymous struct. (union gotplt_union, struct
  632. elf_link_virtual_table_entry): Move to top level.
  633. * elf-eh-frame.c: Add casts.
  634. * elf-strtab.c: Add casts.
  635. * elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
  636. argument name from typename to type_name.
  637. * elf32-i386.c: Add casts.
  638. * elf64-x86-64.c: Add casts.
  639. * elfcode.h: Add casts.
  640. * elfcore.h: Add casts.
  641. * elflink.c: Add casts.
  642. * format.c: Add casts.
  643. * hash.c: Add casts.
  644. * ihex.c: Add casts.
  645. * libaout.h (enum aout_subformat, enum aout_magic): Move to top
  646. level.
  647. * libbfd.c: Add casts.
  648. * linker.c: Add casts.
  649. * merge.c: Add casts.
  650. * opncls.c: Add casts.
  651. * peXXigen.c: Add casts.
  652. * peicode.h: Add casts.
  653. * reloc.c: Add casts.
  654. * section.c: Add casts.
  655. * simple.c: Add casts.
  656. * srec.c: Add casts.
  657. * stabs.c: Add casts.
  658. * syms.c: Add casts.
  659. * targets.c: Add casts.
  660. * tekhex.c: Add casts.
  661. * verilog.c: Add casts.
  662. 2009-09-09 Paolo Bonzini <bonzini@gnu.org>
  663. * configure: Regenerate.
  664. 2009-09-09 Daniel Jacobowitz <dan@codesourcery.com>
  665. * elf32-arm.c (elf32_arm_final_link_relocate): Set sym_flags
  666. for the mode of target PLT entries.
  667. (allocate_dynrelocs): Only adjust symbol type if setting its
  668. value.
  669. 2009-09-09 Paolo Bonzini <bonzini@gnu.org>
  670. * configure: Regenerate.
  671. 2009-09-09 Nick Clifton <nickc@redhat.com>
  672. PR 10478:
  673. * elf.c (bfd_section_from_shdr): Do not reject sparc binaries with
  674. section headers containing sh_link values of SHN_BEFORE or
  675. SHN_AFTER.
  676. * elfcode.h (elf_object_p): Likewise.
  677. 2009-09-09 Tristan Gingold <gingold@adacore.com>
  678. Handle DYLD_INFO introduced by Darwin10.
  679. * mach-o.h (bfd_mach_o_load_command_type): Add
  680. BFD_MACH_O_LC_DYLD_INFO.
  681. (bfd_mach_o_dyld_info_command): New type.
  682. (bfd_mach_o_load_command): Add dyld_info field.
  683. * mach-o.c (bfd_mach_o_scan_read_str): Reduce size of buf.
  684. (bfd_mach_o_scan_read_dyld_info): New function.
  685. (bfd_mach_o_scan_read_command): Handle BFD_MACH_O_LC_DYLD_INFO.
  686. (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
  687. (bfd_mach_o_load_command_name): AddB FD_MACH_O_LC_DYLD_INFO.
  688. (bfd_mach_o_print_dyld_info): New function.
  689. 2009-09-09 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  690. * elf32-cr16.c (elf32_cr16_relocate_section): Add code to discard the
  691. linkonce or linker script discarded section.
  692. 2009-09-09 Alan Modra <amodra@bigpond.net.au>
  693. * elf32-xtensa.c (elf_xtensa_relax_section): Delete -r check.
  694. 2009-09-07 Andreas Schwab <schwab@linux-m68k.org>
  695. * elf32-m68k.c (rtype_to_howto): If the reloc index is out of
  696. range call the bfd error hander and use R_68K_NONE instead.
  697. 2009-09-07 Tristan Gingold <gingold@adacore.com>
  698. * po/SRC-POTFILES.in: Regenerate.
  699. * po/bfd.pot: Regenerate.
  700. * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
  701. BFD_HAVE_SYS_STAT_TYPE_MEMBER): Moved to gas/acinclude.m4
  702. * configure.in: Move tests for tm_gmtoff, st_mtim.tv_sec and
  703. st_mtim.tv_nsec to gas/configure.in
  704. (bfd_elf64_ia64_vms_vec): Remove vmsutil.lo
  705. * configure: Regenerate.
  706. * config.in: Regenerate.
  707. * vmsutil.c: Moved to gas/config/te-vms.c
  708. * vmsutil.h: Removed.
  709. * Makefile.am (BFD32_BACKENDS_CFILES): Remove vmsutil.c
  710. (BFD32_BACKENDS): Remove vmsutil.lo
  711. * Makefile.in: Regenerate.
  712. 2009-09-05 Eli Zaretskii <eliz@gnu.org>
  713. * coffcode.h: Include libiberty.h.
  714. 2009-09-05 Martin Thuresson <martin@mtme.org>
  715. * coff-arm.c (coff_arm_relocate_section)
  716. (record_thumb_to_arm_glue, bfd_arm_process_before_allocation):
  717. Change member name class to symbol_class.
  718. * coff-i960.c (coff_i960_relocate_section) Rename variable
  719. class to class_val. Change member name class to symbol_class.
  720. * coff-rs6000.c (_bfd_xcoff_swap_aux_in)
  721. (_bfd_xcoff_swap_aux_out): Rename arguments class to in_class.
  722. * coff-stgo32.c (adjust_aux_in_post)
  723. (adjust_aux_out_pre, adjust_aux_out_post): Rename arguments class
  724. to in_class.
  725. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in)
  726. (_bfd_xcoff64_swap_aux_out): Rename arguments class to in_class.
  727. * coffcode.h (coff_pointerize_aux_hook): Rename variable class
  728. to n_sclass.
  729. * coffgen.c (coff_write_symbol, coff_pointerize_aux): Rename
  730. variables named class to n_sclass. (coff_write_symbols): Rename
  731. variable class to sym_class. (bfd_coff_set_symbol_class): Rename
  732. argument class to symbol_class.
  733. * cofflink.c (_bfd_coff_link_hash_newfunc)
  734. (coff_link_add_symbols, _bfd_coff_link_input_bfd)
  735. (_bfd_coff_write_global_sym, _bfd_coff_generic_relocate_section):
  736. Update code to use renamed members.
  737. * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Rename
  738. argument class to in_class.
  739. * libcoff-in.h (struct coff_link_hash_entry, struct
  740. coff_debug_merge_type) Renamed members class to symbol_class and
  741. type_class.
  742. * libcoff.h Regenerated.
  743. * peXXigen.c: (_bfd_XXi_swap_aux_in, _bfd_XXi_swap_aux_out):
  744. Rename argument class to in_class.
  745. * pef.c (bfd_pef_parse_imported_symbol): Update code to use
  746. renamed members.
  747. * pef.h (struct bfd_pef_imported_symbol): Changed name of
  748. member class to symbol_class.
  749. 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
  750. * configure: Regenerated.
  751. 2009-09-04 Tristan Gingold <gingold@adacore.com>
  752. * configure.in: Bump version to 2.20.51
  753. 2009-09-04 Alan Modra <amodra@bigpond.net.au>
  754. * elf32-spu.c (spu_elf_relocate_section): Correct 2009-07-24 logic.
  755. 2009-09-04 Jie Zhang <jie.zhang@analog.com>
  756. * elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always
  757. create .rela.bss.
  758. (elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag
  759. for empty .rela.bss and .rel.plt sections.
  760. 2009-09-03 Adam Nemet <anemet@caviumnetworks.com>
  761. * elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate
  762. R_MIPS_JALR unless symbol resolves locally.
  763. 2009-09-03 Adam Nemet <anemet@caviumnetworks.com>
  764. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Don't set
  765. has_static_relocs for R_MIPS_JALR.
  766. 2009-09-03 Maciej W. Rozycki <macro@codesourcery.com>
  767. * elf64-mips.c (mips_elf64_howto_table_rela): Add support for
  768. R_MIPS_TLS_DTPMOD64 and R_MIPS_TLS_TPREL64, replacing the
  769. respective stubs.
  770. 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
  771. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Declare
  772. plt earlier.
  773. 2009-09-01 Tristan Gingold <gingold@adacore.com>
  774. * makefile.vms: Ported to Itanium VMS. Remove useless variable and
  775. dependencies. Reindent.
  776. * configure.com: Ported to Itanium VMS. Now generates a build.com
  777. to build without make. Add messages but make edit silent.
  778. * hosts/alphavms.h: Add a prototype for stpcpy.
  779. * vms.c: Add a missing include for Alpha VMS.
  780. * elfxx-ia64.c (ELF_OSABI): Define for OpenVMS.
  781. 2009-08-31 Jan Beulich <jbeulich@novell.com>
  782. * elf-bfd.h (bfd_elf_get_default_section_type): Declare.
  783. * elf.c (bfd_elf_get_default_section_type): New.
  784. (elf_fake_sections): Use bfd_elf_get_default_section_type.
  785. 2009-08-30 H.J. Lu <hongjiu.lu@intel.com>
  786. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert the
  787. accidental checkin.
  788. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likwise.
  789. 2009-08-30 Alan Modra <amodra@bigpond.net.au>
  790. PR ld/10569
  791. * bfd.c (bfd_emul_get_maxpagesize): Don't abort.
  792. (bfd_emul_get_commonpagesize): Likewise.
  793. 2009-08-29 Martin Thuresson <martin@mtme.org>
  794. * elf32-arm.c (struct stub_def): Rename member template to
  795. template_sequence. (arm_build_one_stub,
  796. find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
  797. Rename variable template to template_sequence.
  798. * elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
  799. Rename variable template to template_val.
  800. * aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
  801. new to new_symbol.
  802. * coffgen.c (coff_make_empty_symbol)
  803. (coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
  804. * cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
  805. new to new_insn.
  806. * ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
  807. to new_symbol.
  808. * elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
  809. new to new_reloc.
  810. * hash.c (bfd_hash_lookup): Rename variable new to new_string.
  811. * ieee.c (ieee_make_empty_symbol): Rename variable new to
  812. new_symbol.
  813. * linker.c (bfd_new_link_order): Rename variable new to
  814. new_lo.
  815. * mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
  816. symbol.
  817. * oasys.c (oasys_make_empty_symbol): Rename variable new to
  818. new_symbol_type.
  819. * pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
  820. new to new_symbol_type.
  821. * plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
  822. to new_symbol.
  823. * rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
  824. new_dump.
  825. (read_hdr, rs6000coff_core_p)
  826. (rs6000coff_core_file_matches_executable_p)
  827. (rs6000coff_core_file_failing_command)
  828. (rs6000coff_core_file_failing_signal): Updated function to use new
  829. union member name.
  830. * som.c (som_make_empty_symbol): Rename variable new to
  831. new_symbol_type.
  832. * syms.c (_bfd_generic_make_empty_symbol): Rename variable new
  833. to new_symbol.
  834. * tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
  835. variable new to new_symbol.
  836. 2009-08-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  837. * acinclude.m4 (AM_INSTALL_LIBBFD): Call AM_SUBST_NOTMAKE for
  838. bfdlibdir and bfdincludedir.
  839. * Makefile.am (bfdlibdir, bfdincludedir): Move definition ...
  840. [INSTALL_LIBBFD]: ... here, ...
  841. [INSTALL_LIBBFD]: ... and empty overrides here.
  842. [!INSTALL_LIBBFD]: (rpath_bfdlibdir): New variable.
  843. [!INSTALL_LIBBFD] (libbfd_la_LDFLAGS): Use it.
  844. * Makefile.in: Regenerate.
  845. * configure: Regenerate.
  846. 2009-08-26 Maxim Kuvyrkov <maxim@codesourcery.com>
  847. * elf32-m68k.c: Rewrite initialization of GOT entries for TLS
  848. relocations. Rewrite output of dynamic TLS relocations.
  849. (DTP_OFFSET, TP_OFFSET): New constants.
  850. (dtpoff_base): Update.
  851. (tpoff): Rename to tpoff_base, update.
  852. (elf_m68k_init_got_entry_static, elf_m68k_init_got_entry_local_shared):
  853. New functions. Move code from elf_m68k_relocate_section here.
  854. (elf_m68k_relocate_section): Update.
  855. (elf_m68k_finish_dynamic_symbol): Fix handling of local TLS symbols.
  856. 2009-08-26 Maxim Kuvyrkov <maxim@codesourcery.com>
  857. * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate
  858. non_got_ref value.
  859. (elf_m68k_check_relocs): Handle dynamic TLS relocations.
  860. Handle non_got_ref field.
  861. (elf_m68k_adjust_dynamic_symbol): Handle non_got_ref field.
  862. 2009-08-26 Alan Modra <amodra@bigpond.net.au>
  863. PR ld/10518
  864. * linker.c (bfd_find_version_for_sym): Revert warning.
  865. 2009-08-26 Alan Modra <amodra@bigpond.net.au>
  866. PR ld/10518
  867. * linker.c (bfd_find_version_for_sym): Override a "*" match by any
  868. other wildcard match. Warn on multiple wildcard matches.
  869. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  870. * Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
  871. appending.
  872. [INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
  873. only in this condition.
  874. [!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
  875. to build but not install libbfd.la in this condition.
  876. (install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
  877. (install_libbfd, install_libbfd): Remove.
  878. * Makefile.in: Regenerate.
  879. * doc/Makefile.am (AM_CPPFLAGS): Renamed from ...
  880. (INCLUDES): ... this.
  881. ($(MKDOC)): Adjust.
  882. * doc/Makefile.in: Regenerate.
  883. * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, instead use
  884. no-dist and foreign.
  885. (EXTRA_libbfd_la_SOURCES): New, list $(CFILES) to allow
  886. dependency tracking to work for them.
  887. (targets.lo, archures.lo, dwarf.lo): Rewrite to
  888. use automake dependency tracking mechanism.
  889. (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
  890. (mkdep section): Remove.
  891. (BUILT_SOURCES): New, list $(BUILD_HFILES).
  892. * Makefile.in: Regenerate.
  893. * po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
  894. * Makefile.am (datarootdir, docdir, htmldor, pdfdir)
  895. (install-pdf, install-pdf-recursive, install-html)
  896. (install-html-recursive): Remove.
  897. * Makefile.in: Regenerate.
  898. * Makefile.in: Regenerate.
  899. * aclocal.m4: Likewise.
  900. * config.in: Likewise.
  901. * configure: Likewise.
  902. 2009-08-21 Daniel Gutson <dgutson@codesourcery.com>
  903. * elf32-arm.c (arch_has_thumb2_nop): New function.
  904. (arch_has_arm_nop): New function.
  905. (elf32_arm_final_link_relocate): NOP opcodes changed.
  906. 2009-08-16 Doug Evans <dje@google.com>
  907. * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
  908. at least don't leak memory.
  909. 2009-08-13 DJ Delorie <dj@redhat.com>
  910. * elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
  911. if needed.
  912. 2009-08-12 Nick Clifton <nickc@redhat.com>
  913. * po/fi.po: Updated Finnish translation.
  914. 2009-08-11 Bernd Schmidt <bernd.schmidt@analog.com>
  915. Merge some FRV FDPIC changes into the Blackfin code.
  916. * elf32-bfin.c (struct bfinfdpic_elf_link_hash_table): Add pointer to
  917. summary reloc information.
  918. (bfinfdpic_dynamic_got_plt_info): New.
  919. (_bfin_create_got_section): Create the PLT section here.
  920. (elf32_bfinfdpic_create_dynamic_sections): Not here.
  921. (_bfinfdpic_count_nontls_entries): Move out of...
  922. (_bfinfdpic_count_got_plt_entries): ... here.
  923. (_bfinfdpic_count_relocs_fixups): Likewise.
  924. (_bfinfdpic_reset_got_plt_entries): New.
  925. (_bfinfdpic_size_got_plt): Move out of...
  926. (elf32_bfinfdpic_size_dynamic_sections): ... here.
  927. (bfinfdpic_relocate_section): Be careful not to call
  928. _bfinfdpic_add_rofixup or _bfinfdpic_add_dyn_reloc for deleted relocs.
  929. (bfinfdpic_check_discarded_relocs, bfinfdpic_elf_discard_info):
  930. New functions.
  931. (elf_backend_discard_info): Define for FD-PIC.
  932. 2009-08-11 Alan Modra <amodra@bigpond.net.au>
  933. * elflink.c: Add FIXMEs for some places that require octets_per_byte
  934. adjustments.
  935. * elf-eh-frame.c: Likewise.
  936. * merge.c: Likewise.
  937. 2009-08-11 Alan Modra <amodra@bigpond.net.au>
  938. * configure.in: Remove elf-ifunc.lo from common ELF files. Add
  939. to x86 and x86_64 configurations.
  940. * configure: Regenerate.
  941. 2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  942. Stop using bfd_usrdata in libbfd.
  943. * coff-stgo32.c (bfd_coff_go32stub): Remove.
  944. (stub_bytes, comment): Replace STUBSIZE by GO32_STUBSIZE.
  945. (adjust_filehdr_in_post): Declare the abfd parameter as unused.
  946. Replace STUBSIZE by GO32_STUBSIZE. Save now the stub in
  947. filehdr_dst->u.go32.stub. New comment with the reason.
  948. (adjust_filehdr_out_pre): Replace STUBSIZE by GO32_STUBSIZE.
  949. Substitute the removed macro bfd_coff_go32stub.
  950. (adjust_filehdr_out_post, adjust_scnhdr_in_post, adjust_scnhdr_out_pre)
  951. (adjust_scnhdr_out_post, adjust_aux_in_post, adjust_aux_out_pre)
  952. (adjust_aux_out_post): Replace STUBSIZE by GO32_STUBSIZE.
  953. (create_go32_stub, go32_stubbed_coff_bfd_copy_private_bfd_data):
  954. Replace STUBSIZE by GO32_STUBSIZE. Substitute the removed macro
  955. bfd_coff_go32stub.
  956. * coffcode.h (coff_mkobject_hook): Initialize coff->go32stub.
  957. * libcoff-in.h (coff_data_type): New field go32stub.
  958. * libcoff.h: Regenerated.
  959. 2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  960. Fix go32 stub preservation by objcopy.
  961. * coff-stgo32.c (adjust_filehdr_in_post): Use bfd_malloc.
  962. (go32_stubbed_coff_bfd_copy_private_bfd_data): Optionally allocate OBFD
  963. go32stub.
  964. 2009-08-10 Nathan Sidwell <nathan@codesourcery.com>
  965. * elf32-arm.c (elf32_arm_size_stubs): Don't die on undefined local
  966. symbols.
  967. (elf32_arm_final_link_relocate): Treat local undefined symbols the
  968. same as global undefined symbols.
  969. (elf32_arm_relocate_section): Give an error for local undefined
  970. non-weak symbols, unless the reloc will not use the symbol.
  971. 2009-08-10 Nathan Sidwell <nathan@codesourcery.com>
  972. * elf32-ppc.c (shared_stub_entry, stub_entry): Use r12, not r11.
  973. (ppc_elf_relax_section): Use symbol index to distinguish
  974. relocatable stubs.
  975. 2009-08-10 Alan Modra <amodra@bigpond.net.au>
  976. * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
  977. 2009-08-10 Alan Modra <amodra@bigpond.net.au>
  978. * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
  979. info for STT_GNU_IFUNC.
  980. * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry
  981. on got refs in case the symbol turns out to be ifunc.
  982. (ppc_elf_gc_sweep_hook): Similarly.
  983. (ppc_elf_adjust_dynamic_symbol): Adjust assertion.
  984. (allocate_dynrelocs): Don't specially allocate got relocs for ifunc.
  985. (ppc_elf_size_dynamic_sections): Likewise.
  986. (ppc_elf_relocate_section): Likewise.
  987. 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
  988. From Mike Frysinger <michael.frysinger@analog.com>
  989. * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs,
  990. bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook,
  991. _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section,
  992. bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs,
  993. bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs):
  994. Adjust to match the renamed reloc definitions.
  995. 2009-08-08 Alan Modra <amodra@bigpond.net.au>
  996. PR 10494
  997. * elf.c (_bfd_elf_make_section_from_shdr): When setting up section
  998. LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.
  999. 2009-08-07 Tom Tromey <tromey@redhat.com>
  1000. * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
  1001. aliasing error.
  1002. 2009-08-06 Michael Eager <eager@eagercon.com>
  1003. * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.
  1004. * Makefile.in: Regenerate.
  1005. * archures.c: Add bfd_arch_microblaze.
  1006. * bfd-in2.h: Regenerate.
  1007. * config.bfd: Add microblaze target.
  1008. * configure.in: Add bfd_elf32_microblaze_vec target.
  1009. * configure: Regenerate.
  1010. * cpu-microblaze.c: New.
  1011. * elf32-microblaze.c: New.
  1012. * libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc().
  1013. * libbfd.h: Regenerate.
  1014. * reloc.c: Add MICROBLAZE relocations.
  1015. * section.c: Add struct relax_table and relax_count to section.
  1016. * targets.c: Add bfd_elf32_microblaze_vec.
  1017. 2009-08-06 Jakub Jelinek <jakub@redhat.com>
  1018. Alan Modra <amodra@bigpond.net.au>
  1019. PR binutils/10492
  1020. * elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE
  1021. symbols.
  1022. * elf32-mips.c (mips_elf_sym_is_global): Likewise.
  1023. * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
  1024. 2009-08-06 Nathan Sidwell <nathan@codesourcery.com>
  1025. * elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again
  1026. at least once when fixing cortex-a8.
  1027. 2009-08-05 Chao-ying Fu <fu@mips.com>
  1028. * elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR.
  1029. * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL
  1030. for CPUs. It is true for RM9000.
  1031. (JALR_TO_BAL_P): New define to transform JALR to BAL. It is true
  1032. for all CPUs.
  1033. (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P
  1034. to guard the transformation.
  1035. 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  1036. * elf32-spu.h (spu_elf_params): Add member emit_fixups.
  1037. (spu_elf_size_sections): Declare prototype.
  1038. * elf32-spu.c (spu_link_hash_table): Add member sfixup.
  1039. (FIXUP_RECORD_SIZE, FIXUP_GET, FIXUP_PUT): New macros.
  1040. (spu_elf_emit_fixup): New function.
  1041. (spu_elf_relocate_section): Emit fixup for each SPU_ADDR32.
  1042. (spu_elf_size_sections): New function.
  1043. 2009-08-05 Nathan Sidwell <nathan@codesourcery.com>
  1044. * elf32-arm.c (elf32_arm_stub_type): Add arm_stub_a8_veneer_lwm.
  1045. (arm_build_one_stub): Build a8 veneers as a separate pass.
  1046. (cortex_a8_erratum_scan): Add prev_num_a8_fixes and stub_changed_p
  1047. parameters. Use them to check if we create a different a8 fixup
  1048. than the previous pass.
  1049. (elf32_arm_size_stubs): Move scope of stub_changed and
  1050. prev_num_a8_fixes into main loop.
  1051. (elf32_arm_build_stubs): Build a8 veneers in a second pass.
  1052. 2009-08-04 Alan Modra <amodra@bigpond.net.au>
  1053. * elf32-ppc.c (ppc_elf_relax_section): Correct conditions under
  1054. which find_plt_ent is called. Delete redundant code.
  1055. 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
  1056. PR binutils/10363
  1057. * elf.c (bfd_elf_string_from_elf_section): Return NULL on
  1058. invalid string offset.
  1059. 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
  1060. PR ld/10433
  1061. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Set got
  1062. to htab->init_got_offset and plt to htab->init_plt_offset
  1063. when discarding space for dynamic relocations.
  1064. 2009-08-03 Alan Modra <amodra@bigpond.net.au>
  1065. * elf32-ppc.c (struct plt_entry): Revise comments.
  1066. (ppc_elf_check_relocs): Don't create needless plt_entry info
  1067. for non-pie executables. Don't test info->pie when info->shared
  1068. already covers that case.
  1069. (ppc_elf_gc_sweep_hook): Adjust for above change.
  1070. (add_stub_sym): Don't test info->pie when info->shared tested.
  1071. (allocate_dynrelocs, ppc_elf_size_dynamic_sections): Likewise.
  1072. (write_glink_stub, ppc_elf_finish_dynamic_symbol): Likewise.
  1073. (ppc_elf_relax_section): Adjust find_plt_ent arguments.
  1074. (ppc_elf_relocate_section): Likewise.
  1075. 2009-08-03 Alan Modra <amodra@bigpond.net.au>
  1076. * elf32-ppc.c (ppc_elf_check_relocs): Always add a plt ref count
  1077. for local ifunc symbols in non-pie executables, regardless of
  1078. reloc type. Don't specially create ifunc dyn relocs. Tidy ifunc
  1079. code so that it's obvious that we only do anything special for
  1080. local ifunc syms.
  1081. (ppc_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
  1082. (allocate_dynrelocs): Correct comment for syms defined in plt.
  1083. Don't specially allocate ifunc dyn relocs.
  1084. (ppc_elf_relax_section): Relax branches to ifunc plt entries too.
  1085. (ppc_elf_relocate_section): Set "relocation" value for ifunc
  1086. syms in non-pie executables. No specially allocated dyn relocs
  1087. for ifunc to write. Allow for local sym on R_PPC_RELAX32_PLT.
  1088. (ppc_elf_finish_dynamic_symbol): Set value of ifunc symbols in
  1089. a non-pie executable.
  1090. 2009-08-02 H.J. Lu <hongjiu.lu@intel.com>
  1091. Jakub Jelinek <jakub@redhat.com>
  1092. PR ld/6443
  1093. * elf32-i386.c (elf_i386_tls_transition): Check executable
  1094. instead of shared for TLS when building PIE.
  1095. (elf_i386_check_relocs): Likewise.
  1096. (elf_i386_allocate_dynrelocs): Likewise.
  1097. (elf_i386_relocate_section): Likewise.
  1098. * elf64-x86-64.c (elf64_x86_64_tls_transition): Check executable
  1099. instead of shared for TLS when building PIE.
  1100. (elf64_x86_64_check_relocs): Likewise.
  1101. (elf64_x86_64_allocate_dynrelocs): Likewise.
  1102. (elf64_x86_64_relocate_section): Likewise.
  1103. 2009-07-31 Anthony Green <green@moxielogic.com>
  1104. * config.bfd (targ_cpu): Add moxie-uclinux support.
  1105. 2009-07-31 Hans-Peter Nilsson <hp@bitrange.com>
  1106. * linker.c (fix_syms): Consider SEC_LOAD when choosing section.
  1107. 2009-07-30 Alan Modra <amodra@bigpond.net.au>
  1108. * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
  1109. used by indirect function support. Count dynamic relocs for
  1110. ifunc syms.
  1111. (ppc_elf_adjust_dynamic_symbol): Tweak for ifunc.
  1112. (allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries
  1113. in iplt and their relocs in reliplt. Don't make ifunc syms
  1114. dynamic. Allocate got entry relocs for non-dynamic ifunc in
  1115. reliplt. Handle other dynamic relocs for ifunc.
  1116. (ppc_elf_size_dynamic_sections): Alloc dyn relocs for static
  1117. ifunc in reliplt, likewise relocs for got against local ifunc.
  1118. Typo fix on reliplt size adjust.
  1119. (ppc_elf_relocate_section): Don't use plt scheme of allocating
  1120. relocs 1-1 with entries for iplt, instead just add using
  1121. reloc_count. Write got relocs and dyn relocs for ifunc to reliplt.
  1122. Error on invalid ifunc dyn relocs.
  1123. (ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
  1124. in iplt/reliplt.
  1125. * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL,
  1126. R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA.
  1127. (ppc64_elf_reloc_type_lookup): Handle new relocs.
  1128. (ppc64_elf_check_relocs): Likewise. Count dyn relocs for ifunc.
  1129. (allocate_dynrelocs): As for elf32-ppc.c above.
  1130. (ppc64_elf_size_dynamic_sections): Likewise.
  1131. (ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt,
  1132. and their relocs in reliplt. Use R_PPC64_JMP_IREL.
  1133. (ppc_size_one_stub): Similarly.
  1134. (ppc64_elf_relocate_section): As for elf32-ppc.c above. Handle new
  1135. relocs too.
  1136. (ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above.
  1137. 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
  1138. * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
  1139. change. Add note to head comment.
  1140. 2009-07-28 Jan Beulich <jbeulich@novell.com>
  1141. * archive.c (get_extended_arelt_filename): Remove redundant
  1142. range check on index.
  1143. 2009-07-27 Doug Kwan <dougkwan@google.com>
  1144. * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
  1145. 2009-07-27 H.J. Lu <hongjiu.lu@intel.com>
  1146. * archures.c bfd_*_arch): Sorted.
  1147. (bfd_archures_list): Likewise.
  1148. 2009-07-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  1149. * elf32-cr16.c (elf_cr16_final_link_relocate): Add code to handle
  1150. to R_cr16_NUM32 relocation.
  1151. 2009-07-26 Michael Eager <eager@eagercon.com>
  1152. * archures.c: Add bfd_mach_ppc_405
  1153. * bfd-in2.h: Same.
  1154. 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
  1155. * cpu-i386.c (bfd_x86_64_arch): Fix comment typos.
  1156. * cpu-l1om.c (bfd_l1om_arch): Likewise.
  1157. 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
  1158. * archures.c (bfd_architecture): Add bfd_arch_l1om.
  1159. (bfd_l1om_arch): New.
  1160. (bfd_archures_list): Add &bfd_l1om_arch.
  1161. * bfd-in2.h: Regenerated.
  1162. * config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if
  1163. bfd_elf64_x86_64_vec is supported. Add bfd_elf64_l1om_freebsd_vec
  1164. if bfd_elf64_x86_64_freebsd_vec is supported.
  1165. (targ_selvecs): Likewise.
  1166. * configure.in: Support bfd_elf64_l1om_vec and
  1167. bfd_elf64_l1om_freebsd_vec.
  1168. * configure: Regenerated.
  1169. * cpu-l1om.c: New.
  1170. * elf64-x86-64.c (elf64_l1om_elf_object_p): New.
  1171. (bfd_elf64_l1om_vec): Likewise.
  1172. (bfd_elf64_l1om_freebsd_vec): Likewise.
  1173. * Makefile.am (ALL_MACHINES): Add cpu-l1om.lo.
  1174. (ALL_MACHINES_CFILES): Add cpu-l1om.c.
  1175. * Makefile.in: Regenerated.
  1176. * targets.c (bfd_elf64_l1om_vec): New.
  1177. (bfd_elf64_l1om_freebsd_vec): Likewise.
  1178. (_bfd_target_vector): Add bfd_elf64_l1om_vec and
  1179. bfd_elf64_l1om_freebsd_vec.
  1180. 2009-07-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
  1181. Alan Modra <amodra@bigpond.net.au>
  1182. * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define.
  1183. * bfd-in2.h: Regenerate.
  1184. * libbfd.h: Regenerate.
  1185. * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC.
  1186. (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC.
  1187. (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC.
  1188. 2009-07-23 H.J. Lu <hongjiu.lu@intel.com>
  1189. PR ld/10434
  1190. * elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable
  1191. instead of shared for R_X86_64_TPOFF32.
  1192. (elf64_x86_64_relocate_section): Likewise.
  1193. 2009-07-23 Ulrich Drepper <drepper@redhat.com>
  1194. * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
  1195. * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
  1196. with the BSF_GNU_UNIQUE flag bit set.
  1197. * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
  1198. for symbols with STB_GNU_UNIQUE binding.
  1199. * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
  1200. with the STB_GNU_UNIQUE binding.
  1201. (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
  1202. symbols with STB_GNU_UNIQUE binding. Set STB_GNU_UNIQUE for
  1203. symbols with the unique_global field set.
  1204. (elf_link_output_extsym): Set unique_global field for symbols with
  1205. the STB_GNU_UNIQUE binding.
  1206. * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
  1207. (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
  1208. symbols.
  1209. (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
  1210. symbols.
  1211. * bfd-in2.h: Regenerate.
  1212. 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1213. * elflink.c (elf_link_output_extsym): Revert the last change.
  1214. 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1215. PR ld/10433
  1216. * elflink.c (elf_link_output_extsym): Special case ifunc syms
  1217. when ref_regular, not def_regular.
  1218. 2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
  1219. PR ld/10426
  1220. * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
  1221. from a DSO into a normal FUNC symbol.
  1222. (elf_link_output_extsym): Turn an undefined IFUNC symbol into
  1223. a normal FUNC symbol.
  1224. 2009-07-17 Chao-ying Fu <fu@mips.com>
  1225. * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
  1226. (_bfd_mips_elf_size_dynamic_sections): For CPUs without load
  1227. interlocking, the last PLT entry needs a nop in the branch delay slot.
  1228. (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking,
  1229. output the last two PLT entries in reverse order.
  1230. 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
  1231. * elf32-i386.c (elf_i386_relocate_section): Don't get local
  1232. STT_GNU_IFUNC symbol for relocatable link.
  1233. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1234. 2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1235. * bfdio.c (bfd_iovec): Add comments for bmmap.
  1236. * bfd-in2.h: Regenerated.
  1237. 2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1238. * Makefile.am: Run "make dep-am".
  1239. * Makefile.in: Regenerated.
  1240. 2009-07-10 Doug Kwan <dougkwan@google.com>
  1241. * elf32-arm.c (stub_hash_newfunc): Initialize fields
  1242. target_addend and orig_insn.
  1243. 2009-07-10 Tom Tromey <tromey@redhat.com>
  1244. * Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
  1245. (elf-eh-frame.lo): Likewise.
  1246. (elf32-bfin.lo): Likewise.
  1247. (elf32-frv.lo): Likewise.
  1248. (elf32-xc16x.lo): Likewise.
  1249. * Makefile.in: Rebuild.
  1250. * dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
  1251. * elf-eh-frame.c: Likewise.
  1252. * elf32-bfin.c: Likewise.
  1253. * elf32-frv.c: Likewise.
  1254. * elf32-xc16x.c: Likewise.
  1255. 2009-07-10 Julian Brown <julian@codesourcery.com>
  1256. * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
  1257. symbol a stub entry is derived from, not the entry for the stub
  1258. itself, in call to elf32_arm_final_link_relocate.
  1259. 2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1260. * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
  1261. when reporting addends.
  1262. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  1263. * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
  1264. data even when no stubs.
  1265. (spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.
  1266. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  1267. * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_IRELATIVE.
  1268. (ppc_elf_get_synthetic_symtab): Report addend.
  1269. (PLT_IFUNC): Define.
  1270. (struct ppc_elf_link_hash_table): Add iplt and reliplt.
  1271. (ppc_elf_create_glink): New function.
  1272. (ppc_elf_create_dynamic_sections): Use it.
  1273. (ppc_elf_add_symbol_hook): Set has_ifunc_symbols.
  1274. (update_local_sym_info): Allocate space for local_plt array.
  1275. Don't bump local_got_refcounts for PLT_IFUNC. Return local_plt
  1276. entry pointer.
  1277. (is_branch_reloc): New function.
  1278. (ppc_elf_check_relocs): Handle STT_GNU_IFUNC symbols.
  1279. (ppc_elf_gc_sweep_hook): Likewise.
  1280. (ppc_elf_adjust_dynamic_symbol): Likewise.
  1281. (allocate_dynrelocs): Likewise.
  1282. (ppc_elf_size_dynamic_sections): Likewise.
  1283. (ppc_elf_relocate_section): Likewise.
  1284. (branch_reloc_hash_match): Use is_branch_reloc.
  1285. (ppc_elf_tls_optimize): Adjust for local_plt.
  1286. (write_glink_stub): New function, extracted from..
  1287. (ppc_elf_finish_dynamic_symbol): ..here. Handle STT_GNU_IFUNC.
  1288. (ppc_elf_finish_dynamic_sections): Only write plt resolver and
  1289. branch table when dynamic.
  1290. (elf_backend_post_process_headers): Define.
  1291. * elf64-ppc.c (elf_backend_post_process_headers): Define.
  1292. (ppc64_elf_howto_raw): Add R_PPC64_IRELATIVE.
  1293. (ppc64_elf_get_synthetic_symtab): Report addend.
  1294. (struct ppc_stub_hash_entry): Add plt_ent.
  1295. (PLT_IFUNC): Define.
  1296. (struct ppc_link_hash_table): Add iplt and reliplt.
  1297. (create_linkage_sections): Make .iplt and .rela.iplt sections.
  1298. (ppc64_elf_add_symbol_hook): Set has_ifunc_symbols.
  1299. (update_local_sym_info): Allocate space for local_plt array.
  1300. Don't bump local_got_ents for PLT_IFUNC. Return local_plt
  1301. entry pointer.
  1302. (update_plt_info): Pass pointer to plt_entry rather than sym hash,
  1303. and don't change hash flags here.
  1304. (is_branch_reloc): New function.
  1305. (ppc64_elf_check_relocs): Handle STT_GNU_IFUNC.
  1306. (ppc64_elf_gc_sweep_hook): Likewise.
  1307. (ppc64_elf_adjust_dynamic_symbol): Likewise.
  1308. (allocate_dynrelocs): Likewise.
  1309. (ppc64_elf_size_dynamic_sections): Likewise.
  1310. (ppc_build_one_stub, ppc_size_one_stub): Likewise.
  1311. (ppc64_elf_size_stubs): Likewise.
  1312. (ppc64_elf_relocate_section): Likewise.
  1313. (get_sym_h): Adjust for local_plt.
  1314. (branch_reloc_hash_match): Use is_branch_reloc.
  1315. (ppc_type_of_stub): Pass plt_entry pointer and handle ifunc.
  1316. (ppc64_elf_toc): Ignore SEC_EXCLUDE sections.
  1317. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  1318. * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
  1319. 2009-07-10 Alan Modra <amodra@bigpond.net.au>
  1320. * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
  1321. and ref_regular_nonweak comment.
  1322. * elflink.c (elf_link_output_extsym): Special case ifunc syms
  1323. when def_regular, not ref_regular.
  1324. (elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
  1325. * elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
  1326. * elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.
  1327. 2009-07-09 Alan Modra <amodra@bigpond.net.au>
  1328. * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
  1329. of malloc'd struct call_info.
  1330. (pasted_function): Likewise, priority too.
  1331. 2009-07-07 Alan Modra <amodra@bigpond.net.au>
  1332. * elf32-spu.c (spu_elf_auto_overlay): Take into account section
  1333. alignment when packing sections into overlays.
  1334. 2009-07-03 Cary Coutant <ccoutant@google.com>
  1335. * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.
  1336. 2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
  1337. * coffcode.h (sec_to_styp_flags): Partially revert (functional
  1338. changes only) earlier patch:-
  1339. 2009-06-25 Kai Tietz <kai.tietz@onevision.com>
  1340. * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
  1341. give .debug and .reloc data characteristics.
  1342. (DOT_RELOC): New define for .reloc section string.
  1343. (coff_write_object_contents): Use DOT_RELOC instead of string.
  1344. 2009-07-02 Tom Tromey <tromey@redhat.com>
  1345. * aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
  1346. * bfdwin.c (bfd_free_window): Cast to unsigned long.
  1347. 2009-07-01 Nick Clifton <nickc@redhat.com>
  1348. * elf-m10300.c: Remove trailing white space.
  1349. * reloc.c: Likewise.
  1350. 2009-07-01 Douglas B Rupp <rupp@gnat.com>
  1351. * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
  1352. BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
  1353. * configure.in: Use them.
  1354. * configure: Regenerate.
  1355. * config.in: Regenerate.
  1356. * vmsutil.c: Include sysdep.h, remove ansidecl.h.
  1357. #define _BSD_SOURCE. Add comments.
  1358. (vms_file_stats_name): Calculate creation date based on available
  1359. runtime data. Return 1 for version instead of 0.
  1360. 2009-07-01 Nick Clifton <nickc@redhat.com>
  1361. PR 10072
  1362. * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle
  1363. to R_ARM_THM_PC8 relocation.
  1364. 2009-06-29 Nick Clifton <nickc@redhat.com>
  1365. * elf-m10300.c (mn10300_elf_relax_section): Allow for the
  1366. different uses of the relocations addend when a symbol is in a
  1367. merged section.
  1368. 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
  1369. PR ld/10337
  1370. * elf.c (bfd_section_from_shdr): Don't change sh_link for
  1371. SHT_REL/SHT_RELA sections on executable nor shared library.
  1372. Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
  1373. as a normal section.
  1374. 2009-06-25 Nick Clifton <nickc@redhat.com>
  1375. * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
  1376. symbols with SEC_MERGE flag.
  1377. 2009-06-25 Kai Tietz <kai.tietz@onevision.com>
  1378. * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
  1379. give .debug and .reloc data characteristics.
  1380. (DOT_RELOC): New define for .reloc section string.
  1381. (coff_write_object_contents): Use DOT_RELOC instead of string.
  1382. 2009-06-25 Tristan Gingold <gingold@adacore.com>
  1383. * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
  1384. (bfd_mach_o_canonicalize_dynamic_symtab)
  1385. (bfd_mach_o_get_synthetic_symtab): Defines.
  1386. (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
  1387. (TARGET_NAME): Use Mach-O specific functions for dynamic.
  1388. * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
  1389. for scattered relocations.
  1390. (bfd_mach_o_i386_print_thread): New function.
  1391. (bfd_mach_o_print_thread): Define.
  1392. * mach-o.c (text_section_names_xlat): Add an entry for __const.
  1393. (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
  1394. New functions extracted from ...
  1395. (bfd_mach_o_canonicalize_reloc): ... This. Simplified.
  1396. (bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
  1397. (bfd_mach_o_canonicalize_dynamic_reloc): New function.
  1398. (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
  1399. (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases.
  1400. (bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
  1401. Set name_str field.
  1402. (bfd_mach_o_scan_read_dylib): Ditto.
  1403. (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments,
  1404. reindent.
  1405. (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly
  1406. decode isym and flags on little endian targets. Set dysymtab field.
  1407. (bfd_mach_o_scan_start_address): Adjust for enum names.
  1408. (bfd_mach_o_lookup_section): Do not look for segments anymore.
  1409. (bfd_mach_o_print_section): Display bfd section name.
  1410. (bfd_mach_o_print_segment): Display none if no name.
  1411. (bfd_mach_o_print_dysymtab): Display next index for local, external
  1412. and undefined symbols.
  1413. (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
  1414. Display dylinker name. Display thread and unixthread commands content.
  1415. (bfd_mach_o_print_thread): New macro.
  1416. * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
  1417. (bfd_mach_o_ppc_thread_flavour): Ditto.
  1418. (bfd_mach_o_i386_thread_flavour): Ditto.
  1419. (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
  1420. (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
  1421. BFD_MACH_O_THREAD_STATE_NONE.
  1422. (bfd_mach_o_segment_command): Remove segment field.
  1423. (bfd_mach_o_thread_flavour): Field offset is now unsigned long.
  1424. (bfd_mach_o_dylinker_command): Remove section field, add name_str.
  1425. (bfd_mach_o_prebound_dylib_command): Ditto.
  1426. (bfd_mach_o_dylib_command): Ditto.
  1427. (bfd_mach_o_prebound_dylib_command): Remove section field.
  1428. (mach_o_data_struct): Add dysymtab field.
  1429. (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
  1430. (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
  1431. (bfd_mach_o_build_commands): Remove parameter names and attributes.
  1432. (bfd_mach_o_get_dynamic_reloc_upper_bound)
  1433. (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.
  1434. 2009-06-25 Rafael Avila de Espindola <espindola@google.com>
  1435. * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
  1436. field of struct dirent.
  1437. 2009-06-23 Tristan Gingold <gingold@adacore.com>
  1438. * vms.c (vms_get_synthetic_symtab): Remove duplicate definition
  1439. of this macro. Fix indentation.
  1440. 2009-06-22 Christophe Lyon <christophe.lyon@st.com>
  1441. * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
  1442. destination for defined dynamic symbols when deciding whether to
  1443. insert a stub or not.
  1444. (allocate_dynrelocs): Make sure functions are not marked as Thumb
  1445. when actually accessed through a PLT, even when generating a
  1446. shared lib.
  1447. 2009-06-22 Tristan Gingold <gingold@adacore.com>
  1448. * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
  1449. the relocs array.
  1450. 2009-06-22 Alan Modra <amodra@bigpond.net.au>
  1451. * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
  1452. * elf32-v850.c (v850_elf_relocate_section): Warning fix.
  1453. 2009-06-22 Alan Modra <amodra@bigpond.net.au>
  1454. * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.
  1455. 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1456. * elflink.c (elf_link_add_object_symbols): Avoid warning
  1457. from -Wjump-misses-init in gcc 4.5.0.
  1458. 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1459. * elf32-i386.c (elf_i386_check_relocs): Properly check local
  1460. symbol on error.
  1461. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1462. 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
  1463. * elf32-i386.c (elf_i386_tls_transition): Add a parameter,
  1464. r_symndx. Report local symbol name on error.
  1465. (elf_i386_check_relocs): Updated. Report local symbol name on
  1466. error.
  1467. (elf_i386_gc_sweep_hook): Updated.
  1468. (elf_i386_relocate_section): Likewise.
  1469. * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter,
  1470. r_symndx. Report local symbol name on error.
  1471. (elf64_x86_64_check_relocs): Updated. Report local symbol name
  1472. on error.
  1473. (elf64_x86_64_gc_sweep_hook): Updated.
  1474. (elf64_x86_64_relocate_section): Likewise.
  1475. 2009-06-19 Tristan Gingold <gingold@adacore.com>
  1476. * mach-o.c (bfd_mach_o_print_private_header): Fix format character.
  1477. 2009-06-19 Tristan Gingold <gingold@adacore.com>
  1478. * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype.
  1479. (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access.
  1480. (bfd_mach_o_valid): Ditto.
  1481. (bfd_mach_o_wide_p): Ditto.
  1482. (bfd_mach_o_canonicalize_reloc): Ditto.
  1483. (bfd_mach_o_build_commands): Ditto.
  1484. (bfd_mach_o_scan_read_thread): Ditto.
  1485. (bfd_mach_o_flatten_sections): Ditto.
  1486. (bfd_mach_o_scan_start_address): Ditto.
  1487. (bfd_mach_o_lookup_section): Ditto.
  1488. (bfd_mach_o_core_fetch_environment): Ditto.
  1489. (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib.
  1490. (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data.
  1491. (bfd_mach_o_scan_write_symtab): Ditto.
  1492. Use macros instead of hard-coded values.
  1493. (bfd_mach_o_scan_read_symtab_symbol): Make the function static.
  1494. Use bfd_mach_o_get_data instead of direct access. Use macros
  1495. instead of hard-coded values.
  1496. (bfd_mach_o_scan_read_symtab_strtab): Make the function static.
  1497. Remove sym argument and get section from mdata.
  1498. Move code into the else branch.
  1499. (bfd_mach_o_scan_read_symtab_symbols): Make the function static.
  1500. Remove sym argument and get section from mdata. Adjust code.
  1501. (bfd_mach_o_scan_read_dylib): Move assertion into the created
  1502. switch (which replaces consecutive if statements).
  1503. (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load
  1504. module table, table of content, indirect symbols and external
  1505. referenced symbols.
  1506. (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab
  1507. field.
  1508. (bfd_mach_o_scan_read_linkedit): New function.
  1509. (bfd_mach_o_scan_read_str): Ditto.
  1510. (bfd_mach_o_count_symbols): Simplify the code by using the symtab
  1511. field of mdata.
  1512. (bfd_mach_o_get_symtab_upper_bound): Remove check as
  1513. bfd_mach_o_count_symbols never returns an error.
  1514. (bfd_mach_o_canonicalize_symtab): Simplify the code by using the
  1515. symtab field (there might be only one symtab).
  1516. (bfd_mach_o_scan_read_command): Handle reexported dylib.
  1517. Handle sub frameworks, sub umbrella, sub library and sub client.
  1518. Read code signature and segment split info commands.
  1519. (bfd_mach_o_scan): Reindent.
  1520. (bfd_mach_o_xlat_name): New type.
  1521. (bfd_mach_o_print_flags): New function.
  1522. (bfd_mach_o_get_name): Ditto.
  1523. (bfd_mach_o_cpu_name): New variable.
  1524. (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name)
  1525. (bfd_mach_o_section_type_name)
  1526. (bfd_mach_o_section_attribute_name)
  1527. (bfd_mach_o_load_command_name): New variables.
  1528. (bfd_mach_o_print_private_header): New function.
  1529. (bfd_mach_o_print_section_map): New function extracted from
  1530. bfd_mach_o_print_private_bfd_data.
  1531. (bfd_mach_o_print_section): Ditto. Print more infos.
  1532. (bfd_mach_o_print_segment): Ditto.
  1533. (bfd_mach_o_print_dysymtab): Ditto.
  1534. (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle
  1535. load weak dylib, reexport dylib and id dylib.
  1536. Handle code signature and segment_split info.
  1537. Handle sub frameworks, sub umbrella, sub library and sub client.
  1538. (bfd_mach_o_section_get_nbr_indirect): New function.
  1539. * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment.
  1540. (bfd_mach_o_header_flags): New enum to define header flags.
  1541. (bfd_mach_o_section_attribute): New enum to replace ...
  1542. (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC,
  1543. BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG,
  1544. BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT,
  1545. BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS,
  1546. BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ...
  1547. these removed macros.
  1548. (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros.
  1549. (bfd_mach_o_dylib_module): New type.
  1550. (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New
  1551. macros.
  1552. (bfd_mach_o_dylib_table_of_content): New type.
  1553. (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro.
  1554. (bfd_mach_o_dylib_reference): New type.
  1555. (BFD_MACH_O_REFERENCE_SIZE): New macro.
  1556. (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded
  1557. modules, toc, references and indirect syms.
  1558. (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro.
  1559. (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were
  1560. unused). Add comment.
  1561. (bfd_mach_o_dylib_command): Ditto.
  1562. (bfd_mach_o_prebound_dylib_command): Ditto.
  1563. (bfd_mach_o_linkedit_command): New type.
  1564. (bfd_mach_o_str_command): New type.
  1565. (bfd_mach_o_load_command): Add linkedit and str fields.
  1566. (mach_o_data_struct): Add symtab field.
  1567. (bfd_get_mach_o_data): Renamed to ...
  1568. (bfd_mach_o_get_data): ... this new macro.
  1569. (bfd_mach_o_scan_read_symtab_symbol,
  1570. bfd_mach_o_scan_read_symtab_strtab,
  1571. bfd_mach_o_scan_read_symtab_symbols): Prototypes removed.
  1572. * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data
  1573. instead of direct access.
  1574. 2009-06-19 Alan Modra <amodra@bigpond.net.au>
  1575. * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for
  1576. R_PPC_PLTREL24 relocs.
  1577. (ppc_elf_relocate_section): Likewise.
  1578. 2009-06-19 Alan Modra <amodra@bigpond.net.au>
  1579. * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than
  1580. pointer to sym hash. Update all uses.
  1581. (update_plt_info): Likewise. Don't check addend here.
  1582. 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
  1583. * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use
  1584. bfd_sym_from_r_symndx.
  1585. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1586. 2009-06-18 Alan Modra <amodra@bigpond.net.au>
  1587. * elf-bfd.h (struct sym_sec_cache): Delete.
  1588. (struct sym_cache): New.
  1589. (bfd_section_from_r_symndx): Delete prototype.
  1590. (bfd_sym_from_r_symndx): Define prototype.
  1591. * elf.c (bfd_section_from_r_symndx): Delete, replace with..
  1592. (bfd_sym_from_r_symndx): ..new function.
  1593. * elf32-arm.c: Update all uses of struct sym_sec_cache and
  1594. bfd_section_from_r_symndx to new struct and function.
  1595. * elf32-bfin.c: Likewise.
  1596. * elf32-hppa.c: Likewise.
  1597. * elf32-i386.c: Likewise.
  1598. * elf32-m32r.c: Likewise.
  1599. * elf32-m68hc1x.c: Likewise.
  1600. * elf32-m68hc1x.h: Likewise.
  1601. * elf32-m68k.c: Likewise.
  1602. * elf32-ppc.c: Likewise.
  1603. * elf32-s390.c: Likewise.
  1604. * elf32-sh.c: Likewise.
  1605. * elf64-ppc.c: Likewise.
  1606. * elf64-s390.c: Likewise.
  1607. * elf64-x86-64.c: Likewise.
  1608. * elfxx-sparc.c: Likewise.
  1609. * elfxx-sparc.h: Likewise.
  1610. 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
  1611. * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf.
  1612. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1613. 2009-06-18 Nick Clifton <nickc@redhat.com>
  1614. * elflink.c (elf_link_sort_relocs): Return early if there are no
  1615. relocs to sort.
  1616. 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
  1617. Merge cegcc and mingw32ce target name changes from
  1618. CeGCC project:
  1619. 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
  1620. * config.bfd: Add arm*-*-cegcc* target.
  1621. 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
  1622. * config.bfd: Add arm-*-mingw32ce* target.
  1623. 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
  1624. * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
  1625. * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
  1626. * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
  1627. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
  1628. 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
  1629. * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
  1630. * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
  1631. * elf32-i386.c (elf_i386_check_relocs): Use it.
  1632. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1633. 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
  1634. * elf-bfd.h (elf_dyn_relocs): New.
  1635. * elf32-i386.c (elf_i386_dyn_relocs): Removed.
  1636. (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
  1637. elf_dyn_relocs.
  1638. (elf_i386_copy_indirect_symbol): Likewise.
  1639. (elf_i386_check_relocs): Likewise.
  1640. (elf_i386_gc_sweep_hook): Likewise.
  1641. (elf_i386_allocate_dynrelocs): Likewise.
  1642. (elf_i386_readonly_dynrelocs): Likewise.
  1643. (elf_i386_size_dynamic_sections): Likewise.
  1644. * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
  1645. (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
  1646. with elf_dyn_relocs.
  1647. (elf64_x86_64_copy_indirect_symbol): Updated.
  1648. (elf64_x86_64_check_relocs): Likewise.
  1649. (elf64_x86_64_gc_sweep_hook): Likewise.
  1650. (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  1651. (elf64_x86_64_allocate_dynrelocs): Likewise.
  1652. (elf64_x86_64_readonly_dynrelocs): Likewise.
  1653. (elf64_x86_64_size_dynamic_sections): Likewise.
  1654. 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
  1655. * elf32-arm.c (create_got_section): Get existing .rela.got
  1656. section.
  1657. * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
  1658. * elf32-lm32.c (create_got_section): Likewise.
  1659. * elf32-m32r.c (create_got_section): Likewise.
  1660. * elf32-ppc.c (ppc_elf_create_got): Likewise.
  1661. * elf32-s390.c (create_got_section): Likewise.
  1662. * elf32-sh.c (create_got_section): Likewise.
  1663. * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
  1664. * elf64-s390.c (create_got_section): Likewise.
  1665. * elfxx-sparc.c (create_got_section): Likewise.
  1666. * elflink.c (_bfd_elf_create_got_section): Properly initialize
  1667. the GOT size.
  1668. 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
  1669. * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
  1670. * elf32-i386.c (elf_i386_local_hash): Removed.
  1671. (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
  1672. (elf_i386_get_local_sym_hash): Likewise.
  1673. * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
  1674. (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
  1675. (elf64_x86_64_get_local_sym_hash): Likewise.
  1676. * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
  1677. (get_local_sym_hash): Likewise.
  1678. 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
  1679. * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
  1680. rel_got_sec and plt_sec.
  1681. (elfNN_ia64_relax_section): Updated.
  1682. (elfNN_ia64_create_dynamic_sections): Likewise.
  1683. (get_got): Likewise.
  1684. (allocate_dynrel_entries): Likewise.
  1685. (elfNN_ia64_size_dynamic_sections): Likewise.
  1686. (set_got_entry): Likewise.
  1687. (elfNN_ia64_choose_gp): Likewise.
  1688. (elfNN_ia64_relocate_section): Likewise.
  1689. (elfNN_ia64_finish_dynamic_symbol): Likewise.
  1690. (elfNN_ia64_finish_dynamic_sections): Likewise.
  1691. 2009-06-16 Ulrich Weigand <uweigand@de.ibm.com>
  1692. * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
  1693. also for calls.
  1694. 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
  1695. * configure.in (elf): Add elf-ifunc.lo.
  1696. * configure: Regenerated.
  1697. * Makefile.in: Likewise.
  1698. * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
  1699. srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
  1700. * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
  1701. sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
  1702. irelifunc.
  1703. (elf_i386_link_hash_table_create): Likewise.
  1704. (elf_i386_create_dynamic_sections): Likewise.
  1705. (elf_i386_check_relocs): Likewise.
  1706. (elf_i386_allocate_dynrelocs): Likewise.
  1707. (elf_i386_size_dynamic_sections): Likewise.
  1708. (elf_i386_relocate_section): Likewise.
  1709. (elf_i386_finish_dynamic_symbol): Likewise.
  1710. (elf_i386_finish_dynamic_sections): Likewise.
  1711. (elf_i386_create_got_section): Removed.
  1712. * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
  1713. sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
  1714. irelifunc.
  1715. (elf64_x86_64_compute_jump_table_size): Updated.
  1716. (elf64_x86_64_link_hash_table_create): Likewise.
  1717. (elf64_x86_64_create_dynamic_sections): Likewise.
  1718. (elf64_x86_64_check_relocs): Likewise.
  1719. (elf64_x86_64_allocate_dynrelocs): Likewise.
  1720. (elf64_x86_64_size_dynamic_sections): Likewise.
  1721. (elf64_x86_64_relocate_section): Likewise.
  1722. (elf64_x86_64_finish_dynamic_symbol): Likewise.
  1723. (elf64_x86_64_finish_dynamic_sections): Likewise.
  1724. (elf64_x86_64_create_got_section): Removed.
  1725. * elflink.c (_bfd_elf_create_got_section): Use log_file_align
  1726. for pointer alignment. Set up section pointers.
  1727. (_bfd_elf_create_dynamic_sections): Likewise.
  1728. (_bfd_elf_create_ifunc_sections): Moved to ...
  1729. * elf-ifunc.c: Here. New.
  1730. * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
  1731. (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
  1732. Run "make dep-am".
  1733. 2009-06-16 Doug Kwan <dougkwan@google.com>
  1734. * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
  1735. to bfd_signed_vma. Cast constant operands which are used in
  1736. offset related expressions to bfd_signed_vma type as appropriate.
  1737. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1738. * elf32-vax.c (elf_vax_plt_sym_val): New function.
  1739. (elf_backend_plt_sym_val): Define.
  1740. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1741. * elf32-vax.c (elf_vax_reloc_type_class): New function.
  1742. (elf_backend_reloc_type_class): Define.
  1743. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1744. * elf32-vax.c (elf_vax_relocate_section): For symbol references
  1745. from an executable to a shared library treat R_VAX_PC32
  1746. relocations as R_VAX_PLT32 ones.
  1747. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1748. * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
  1749. symbols in GOT space calculation.
  1750. (elf_vax_relocate_section): Adjust accordingly.
  1751. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1752. * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
  1753. include <R11:R2>.
  1754. 2009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
  1755. * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
  1756. attribute.
  1757. (elf_vax_relocate_section): Likewise.
  1758. 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
  1759. * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
  1760. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
  1761. 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
  1762. * elf32-i386.c (elf_i386_check_relocs): Reformat.
  1763. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1764. 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
  1765. * Makefile.am: Run "make dep-am".
  1766. * Makefile.in: Regenerated.
  1767. 2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
  1768. * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
  1769. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
  1770. 2009-06-15 Nick Clifton <nickc@redhat.com>
  1771. * po/ru.po: New Russian translation.
  1772. * configure.in (ALL_LINGUAS): Add ru.
  1773. * configure: Regenerate.
  1774. 2009-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1775. * elf32-i386.c: Remove duplicated comments.
  1776. 2009-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1777. PR ld/10270
  1778. * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
  1779. dynamic IFUNC pointer in non-shared object. Use .got.plt
  1780. for IFUNC definition in PIE.
  1781. (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
  1782. PIE locally.
  1783. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
  1784. dynamic IFUNC pointer in non-shared object. Use .got.plt
  1785. for IFUNC definition in PIE.
  1786. (elf64_x86_64_relocate_section): Resolve IFUNC definition in
  1787. PIE locally.
  1788. 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1789. * elf32-i386.c (elf_i386_check_relocs): Properly report
  1790. local symbol for unhandled relocation against STT_GNU_IFUNC
  1791. symbol.
  1792. (elf_i386_relocate_section): Likewise.
  1793. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1794. (elf64_x86_64_relocate_section): Likewise.
  1795. 2009-06-13 H.J. Lu <hongjiu.lu@intel.com>
  1796. PR ld/10269
  1797. * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
  1798. (elf_i386_link_hash_table): Add loc_hash_table and
  1799. loc_hash_memory.
  1800. (elf_i386_local_hash): New.
  1801. (elf_i386_local_htab_hash): Likewise.
  1802. (elf_i386_local_htab_eq): Likewise.
  1803. (elf_i386_get_local_sym_hash): Likewise.
  1804. (elf_i386_link_hash_table_free): Likewise.
  1805. (elf_i386_allocate_local_dynrelocs): Likewise.
  1806. (elf_i386_finish_local_dynamic_symbol): Likewise.
  1807. (bfd_elf64_bfd_link_hash_table_free): Likewise.
  1808. (elf_i386_link_hash_table_create): Create loc_hash_table and
  1809. loc_hash_memory.
  1810. (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
  1811. (elf_i386_size_dynamic_sections): Likewise.
  1812. (elf_i386_relocate_section): Likewise.
  1813. (elf_i386_finish_dynamic_sections): Likewise.
  1814. (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
  1815. isn't NULL.
  1816. * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
  1817. (elf64_x86_64_link_hash_table): Add loc_hash_table and
  1818. loc_hash_memory.
  1819. (elf64_x86_64_local_hash): New.
  1820. (elf64_x86_64_local_htab_hash): Likewise.
  1821. (elf64_x86_64_local_htab_eq): Likewise.
  1822. (elf64_x86_64_get_local_sym_hash): Likewise.
  1823. (elf64_x86_64_link_hash_table_free): Likewise.
  1824. (elf64_x86_64_allocate_local_dynrelocs): Likewise.
  1825. (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
  1826. (bfd_elf64_bfd_link_hash_table_free): Likewise.
  1827. (elf64_x86_64_link_hash_table_create): Create loc_hash_table
  1828. and loc_hash_memory.
  1829. (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
  1830. symbols.
  1831. (elf64_x86_64_size_dynamic_sections): Likewise.
  1832. (elf64_x86_64_relocate_section): Likewise.
  1833. (elf64_x86_64_finish_dynamic_sections): Likewise.
  1834. (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
  1835. sym isn't NULL.
  1836. 2009-06-10 Philip Blundell <philb@gnu.org>
  1837. * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
  1838. elf_sec->this_hdr == NULL.
  1839. 2009-06-12 Tristan Gingold <gingold@adacore.com>
  1840. * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
  1841. * bfd-in2.h: Regenerated.
  1842. * libbfd.h: Regenerated.
  1843. * mach-o.c (FILE_ALIGN): New macro.
  1844. (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
  1845. (bfd_mach_o_print_symbol): Ditto.
  1846. (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
  1847. (bfd_mach_o_get_reloc_upper_bound): New function.
  1848. (bfd_mach_o_canonicalize_reloc): Ditto.
  1849. (bfd_mach_o_scan_write_relocs): Ditto.
  1850. (bfd_mach_o_scan_write_section_32): Remove offset argument.
  1851. (bfd_mach_o_scan_write_section_64): Ditto.
  1852. (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data
  1853. written for load command. Do not compute section file offset.
  1854. (bfd_mach_o_scan_write_segment_64): Ditto.
  1855. (bfd_mach_o_scan_write_symtab): Compute file offset first.
  1856. Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to
  1857. Mach-O to ...
  1858. (bfd_mach_o_mangle_symbols): ... this new function.
  1859. (bfd_mach_o_write_contents): Be sure to have load commands built.
  1860. Call bfd_mach_o_mangle_symbols.
  1861. (bfd_mach_o_build_commands): Adjust for filelen field.
  1862. Use FILE_ALIGN macro. Clear section file offset if section is empty.
  1863. Do not set symtab file offset anymore here.
  1864. (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
  1865. (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
  1866. Set reloc_count and rel_filepos section fields.
  1867. (bfd_mach_o_scan_read_section_32): Type of argument offset is now
  1868. unsigned int.
  1869. (bfd_mach_o_scan_read_section_64): Ditto.
  1870. (bfd_mach_o_scan_read_section): Ditto.
  1871. (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
  1872. bfd_mach_o_asymbol. Use unsigned int for file offset type.
  1873. (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
  1874. Handle weak-ref symbols.
  1875. (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
  1876. (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
  1877. (bfd_mach_o_scan): Remove assignment to removed field.
  1878. (bfd_mach_o_mkobject_init): Ditto.
  1879. (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
  1880. (bfd_mach_o_bfd_reloc_type_lookup): New macro.
  1881. (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
  1882. (bfd_mach_o_swap_reloc_in): Ditto.
  1883. (bfd_mach_o_swap_reloc_out): Ditto.
  1884. * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
  1885. (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
  1886. (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
  1887. (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
  1888. (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
  1889. (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
  1890. (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
  1891. (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
  1892. (BFD_MACH_O_N_WEAK_DEF): New macros.
  1893. Add comments.
  1894. (bfd_mach_o_section_type): Add new enumeration values.
  1895. (BFD_MACH_O_S_SELF_MODIFYING_CODE)
  1896. (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
  1897. (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
  1898. (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
  1899. macros.
  1900. (BFD_MACH_O_GENERIC_RELOC_VANILLA)
  1901. (BFD_MACH_O_GENERIC_RELOC_PAIR)
  1902. (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
  1903. (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
  1904. (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
  1905. (BFD_MACH_O_RELENT_SIZE): Ditto.
  1906. (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
  1907. (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
  1908. (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
  1909. (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
  1910. (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
  1911. (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
  1912. (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
  1913. (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
  1914. (bfd_mach_o_reloc_info): New struct.
  1915. (bfd_mach_o_asymbol): New struct.
  1916. (bfd_mach_o_symtab_command): The symbols field is now of type
  1917. bfd_mach_o_asymbol.
  1918. (bfd_mach_o_load_command): The offset and len fields are now of type
  1919. unsigned int.
  1920. (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
  1921. Add a filelen field. Add comments.
  1922. (bfd_mach_o_backend_data): New struct.
  1923. (bfd_mach_o_get_backend_data): New macro.
  1924. (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
  1925. bfd_mach_o_asymbol.
  1926. (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
  1927. (bfd_mach_o_get_reloc_upper_bound): New prototype.
  1928. (bfd_mach_o_canonicalize_reloc): Ditto.
  1929. * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
  1930. duplicated macro. Now defined to _bfd_generic_is_local_label.
  1931. (TARGET_NAME_BACKEND): New macro...
  1932. (TARGET_NAME_BACKEND): ... used to name a new variable.
  1933. (TARGET_NAME): Define relocs table using bfd_mach_o, reference
  1934. Mach-O backend data.
  1935. * mach-o-i386.c (i386_howto_table): New variable.
  1936. (bfd_mach_o_i386_swap_reloc_in): New function.
  1937. (bfd_mach_o_i386_swap_reloc_out): Ditto.
  1938. (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
  1939. (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
  1940. (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
  1941. (bfd_mach_o_bfd_reloc_type_lookup)
  1942. (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
  1943. 2009-06-11 Eric Paris <eparis@redhat.com>
  1944. Nick Clifton <nickc@redhat.com>
  1945. * opncls.c (_maybe_make_executable): New function. Gives execute
  1946. permission to an executable bfd that was opened for writing
  1947. provided that it is a regular file. Replaces common code found in...
  1948. (bfd_close): here and ...
  1949. (bfd_close_all_done): here.
  1950. 2009-06-11 Anthony Green <green@moxielogic.com>
  1951. * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
  1952. * bfd-in2.h: Rebuilt.
  1953. * libbfd.h: Rebuilt.
  1954. * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
  1955. relocation support.
  1956. (moxie_reloc_map): Ditto.
  1957. Clean up copyright notice.
  1958. 2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
  1959. * bfd-in2.h: bfd_mmap prototype.
  1960. * bfdio.c (bfd_mmap): New function.
  1961. * libbfd.h (bfd_iovec): Add bmmap.
  1962. * cache.c (cache_bmmap): New function.
  1963. (cache_iovec): Initialize bmmap member.
  1964. * opencls.c (opncls_bmmap): New function.
  1965. (opncls_iovec): Initialize bmmap member.
  1966. 2009-06-09 Tristan Gingold <gingold@adacore.com>
  1967. * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
  1968. and stabstr_segment fields.
  1969. (mach_o_be_vec, mach_o_le_vec): Removed
  1970. (bfd_mach_o_version): New prototype.
  1971. * mach-o.c (bfd_mach_o_version): Make this function public.
  1972. (mach_o_wide_p): New function.
  1973. (bfd_mach_o_wide_p): Ditto.
  1974. (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
  1975. weird names.
  1976. (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
  1977. Search in the list only if the name starts with a dot.
  1978. (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
  1979. test. Check bfd_seek status.
  1980. (bfd_mach_o_scan_write_thread): Check bfd_seek status.
  1981. (bfd_mach_o_scan_write_section_32): Ditto.
  1982. (bfd_mach_o_scan_write_section_64): Ditto.
  1983. (bfd_mach_o_scan_write_section): Removed.
  1984. (bfd_mach_o_scan_write_segment): Split into ...
  1985. (bfd_mach_o_scan_write_segment_32): ... this and ...
  1986. (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
  1987. (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
  1988. (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
  1989. symbol table. Now returns a boolean.
  1990. (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
  1991. Adjust for status type.
  1992. (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
  1993. test. Write symbol table. Numbers the sections.
  1994. (bfd_mach_o_read_header): Check bfd_seek status.
  1995. Use mach_o_wide_p instead of hard-coded test.
  1996. (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
  1997. (bfd_mach_o_scan_read_section_64): Ditto.
  1998. (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
  1999. Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
  2000. handled common symbols.
  2001. (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
  2002. (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
  2003. (bfd_mach_o_scan_read_dylinker): Ditto.
  2004. (bfd_mach_o_scan_read_dylib): Ditto.
  2005. (bfd_mach_o_scan_read_thread): Ditto.
  2006. (bfd_mach_o_scan_read_symtab): Ditto.
  2007. Do not create a section for the stabs.
  2008. (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
  2009. (bfd_mach_o_scan_read_segment): Ditto.
  2010. (bfd_mach_o_scan_read_command): Ditto.
  2011. (bfd_mach_o_scan_start_address): Ditto.
  2012. (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
  2013. (bfd_mach_o_archive_p): Check bfd_seek status.
  2014. (bfd_mach_o_core_fetch_environment): Ditto.
  2015. * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
  2016. 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
  2017. * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
  2018. (elf_i386_link_hash_table_create): Initialize irelifunc.
  2019. (elf_i386_check_relocs): Updated. Set up irelifunc for
  2020. shared objects.
  2021. (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
  2022. relocation for non-GOT reference of STT_GNU_IFUNC symbol in
  2023. shared objects.
  2024. (elf_i386_relocate_section): Likewise.
  2025. * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
  2026. (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
  2027. (elf64_x86_64_check_relocs): Updated. Set up irelifunc for
  2028. shared objects.
  2029. (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
  2030. relocation for non-GOT reference of STT_GNU_IFUNC symbol in
  2031. shared objects.
  2032. (elf64_x86_64_relocate_section): Likewise.
  2033. * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
  2034. ...
  2035. (_bfd_elf_create_ifunc_sections): This.
  2036. * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
  2037. ...
  2038. (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc
  2039. for shared objects.
  2040. 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
  2041. * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
  2042. relocation for R_386_32 against STT_GNU_IFUNC symbol when
  2043. building shared object. Check info->executable instead of
  2044. !info->shared when setting non_got_ref.
  2045. (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
  2046. for non-GOT reference of STT_GNU_IFUNC symbol in shared
  2047. object. Allocate GOT relocation agsinst STT_GNU_IFUNC
  2048. symbol if needed.
  2049. (elf_i386_relocate_section): Output dynamic relocation for
  2050. R_386_32 against STT_GNU_IFUNC symbol to get the real
  2051. function address when building shared object.
  2052. (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
  2053. relocation for STT_GNU_IFUNC symbol in shared object.
  2054. * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
  2055. dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
  2056. symbol when building shared object. Check info->executable
  2057. instead of !info->shared when setting non_got_ref.
  2058. (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
  2059. for non-GOT reference of STT_GNU_IFUNC symbol in shared
  2060. library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
  2061. if needed.
  2062. (elf64_x86_64_relocate_section): Output dynamic relocation
  2063. for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
  2064. function address when building shared object.
  2065. (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
  2066. relocation for STT_GNU_IFUNC symbol in shared object.
  2067. 2009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  2068. * Makefile.am: Run "make dep-am".
  2069. (BFD32_BACKENDS): Add mach-o-i386.lo.
  2070. (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
  2071. * Makefile.in: Regenerate.
  2072. 2009-06-06 Alan Modra <amodra@bigpond.net.au>
  2073. * elf32-spu.c (spu_elf_relocate_section): Match overlay number
  2074. when looking for soft-icache stubs.
  2075. 2009-06-05 Tristan Gingold <gingold@adacore.com>
  2076. * mach-o.h: Update copyright year.
  2077. (bfd_mach_o_mach_header_magic): New enum.
  2078. (bfd_mach_o_cpu_subtype): Now an enum.
  2079. (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
  2080. (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
  2081. (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
  2082. (bfd_mach_o_load_command): Field type_required is now a boolean.
  2083. Reindent prototypes.
  2084. (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
  2085. (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
  2086. (bfd_mach_o_bfd_copy_private_section_data): Ditto.
  2087. (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
  2088. (bfd_mach_o_get_symtab_upper_bound): Ditto.
  2089. (bfd_mach_o_canonicalize_symtab): Ditto.
  2090. (bfd_mach_o_get_symbol_info): Ditto.
  2091. (bfd_mach_o_print_symbol): Ditto.
  2092. (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
  2093. (bfd_mach_o_make_empty_symbol): Ditto.
  2094. (bfd_mach_o_write_contents): Ditto.
  2095. * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
  2096. bfd_mach_o_mkobject): Defines.
  2097. (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
  2098. Do not check with target vector but with flavour.
  2099. (struct mach_o_section_name_xlat): New declaration.
  2100. (dwarf_section_names_xlat): Ditto.
  2101. (text_section_names_xlat): Ditto.
  2102. (data_section_names_xlat): Ditto.
  2103. (struct mach_o_segment_name_xlat): Ditto.
  2104. (segsec_names_xlat): Ditto.
  2105. (bfd_mach_o_convert_section_name_to_bfd): New function.
  2106. (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
  2107. (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
  2108. (bfd_mach_o_bfd_copy_private_section_data): Ditto.
  2109. (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
  2110. Accept any input and output flavour. Do not share private data
  2111. anymore.
  2112. (bfd_mach_o_count_symbols): Add a comment.
  2113. (bfd_mach_o_get_symtab_upper_bound): Make it public.
  2114. (bfd_mach_o_canonicalize_symtab): Ditto.
  2115. (bfd_mach_o_get_symbol_info): Ditto.
  2116. (bfd_mach_o_print_symbol): Ditto.
  2117. (bfd_mach_o_write_header): Now returns a boolean instead of an int.
  2118. Use constants instead of hard-coded values.
  2119. (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
  2120. values.
  2121. (bfd_mach_o_scan_write_section_64): Ditto.
  2122. (bfd_mach_o_scan_write_segment): Ditto.
  2123. Do not copy sections anymore.
  2124. (bfd_mach_o_write_contents): Make it public.
  2125. Remove dead code. Rewrite typeflag assignment.
  2126. (bfd_mach_o_build_commands): New function.
  2127. (bfd_mach_o_set_section_contents): Ditto.
  2128. (bfd_mach_o_make_empty_symbol): Make it public.
  2129. (bfd_mach_o_read_header): Make it static.
  2130. Convert to bfd_boolean.
  2131. Use constants instead of hard-coded values.
  2132. (bfd_mach_o_make_bfd_section): Call
  2133. bfd_mach_o_convert_section_name_to_bfd to create name.
  2134. (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
  2135. values.
  2136. (bfd_mach_o_scan_read_section_64): Ditto.
  2137. (bfd_mach_o_scan_read_segment): Do not create a bfd section for
  2138. a segment anymore. Use constants instead of hard-coded values.
  2139. (bfd_mach_o_scan_read_command): Fix style.
  2140. (bfd_mach_o_scan): Use constants instead of hard-coded values.
  2141. Get rid of BFD_IO_FUNCS.
  2142. (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
  2143. (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
  2144. (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
  2145. (bfd_mach_o_object_p): Removed.
  2146. (bfd_mach_o_gen_core_p): New function, replaces ...
  2147. (bfd_mach_o_core_p): ... deleted.
  2148. (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
  2149. * mach-o-i386.c: New file.
  2150. * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
  2151. * configure.in (TDEFINES): Add mach_o_i386_vec.
  2152. * configure: Regenerated.
  2153. * targets.c: Add mach_o_i386_vec.
  2154. * mach-o.c: Update copyright years.
  2155. (BFD_IO_FUNCS): Remove (was not used).
  2156. (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
  2157. bfd_mach_o_slurp_extended_name_table,
  2158. bfd_mach_o_construct_extended_name_table,
  2159. bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
  2160. bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
  2161. bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
  2162. bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
  2163. bfd_mach_o_get_section_contents_in_window,
  2164. bfd_mach_o_bfd_is_local_label_name,
  2165. bfd_mach_o_bfd_is_target_special_symbol,
  2166. bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
  2167. bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
  2168. bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
  2169. bfd_mach_o_minisymbol_to_symbol,
  2170. bfd_mach_o_bfd_get_relocated_section_contents,
  2171. bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
  2172. bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
  2173. bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
  2174. bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
  2175. bfd_mach_o_bfd_merge_private_bfd_data,
  2176. bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
  2177. bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
  2178. bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
  2179. bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
  2180. bfd_mach_o_bfd_copy_private_header_data,
  2181. bfd_mach_o_core_file_matches_executable_p): Move these defines ...
  2182. * mach-o-target.c: ... here.
  2183. Update copyright years.
  2184. 2009-06-04 Alan Modra <amodra@bigpond.net.au>
  2185. * dep-in.sed: Don't use \n in replacement part of s command.
  2186. * Makefile.am (DEP1): LC_ALL for uniq.
  2187. Run "make dep-am".
  2188. * Makefile.in: Regenerate.
  2189. 2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
  2190. * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
  2191. h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
  2192. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
  2193. 2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
  2194. * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
  2195. GOT entry for STT_GNU_IFUNC symbol with pointer equality.
  2196. (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
  2197. against STT_GNU_IFUNC symbols for static executables.
  2198. (elf_i386_finish_dynamic_symbol): Load GOT entry with
  2199. PLT entry for STT_GNU_IFUNC symbol with pointer equality.
  2200. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
  2201. GOT entry for STT_GNU_IFUNC symbol with pointer equality.
  2202. (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
  2203. PLT entry for STT_GNU_IFUNC symbol with pointer equality.
  2204. 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
  2205. * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
  2206. symbols to be left unimported when linking statically.
  2207. * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
  2208. code when linking statically.
  2209. 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
  2210. * elf32-i386.c (elf_i386_check_relocs): Increment
  2211. got.refcount for R_386_GOT32/R_386_GOTOFF relocations
  2212. against STT_GNU_IFUNC symbol.
  2213. (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
  2214. local STT_GNU_IFUNC definition is used.
  2215. (elf_i386_relocate_section): Handle got.offset != -1 for
  2216. R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
  2217. symbol.
  2218. * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
  2219. got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
  2220. relocations against STT_GNU_IFUNC symbol.
  2221. (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
  2222. local STT_GNU_IFUNC definition is used.
  2223. (elf64_x86_64_relocate_section): Handle got.offset != -1
  2224. for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
  2225. STT_GNU_IFUNC symbol.
  2226. 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
  2227. PR ld/10205
  2228. * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
  2229. (elf_i386_reloc_type_lookup): Likewise.
  2230. (R_386_tls): Removed.
  2231. (R_386_irelative): New.
  2232. (R_386_vt_offset): Updated.
  2233. (elf_i386_rtype_to_howto): Likewise.
  2234. (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
  2235. (elf_i386_link_hash_table_create): Initialize igotplt,
  2236. iplt and irelplt.
  2237. (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
  2238. (elf_i386_adjust_dynamic_symbol): Likewise.
  2239. (elf_i386_allocate_dynrelocs): Likewise.
  2240. (elf_i386_relocate_section): Likewise.
  2241. (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
  2242. sections.
  2243. (elf_i386_finish_dynamic_symbol): When building a static
  2244. executable, use .iplt, .igot.plt and .rel.iplt sections for
  2245. STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
  2246. locally defined STT_GNU_IFUNC symbol.
  2247. * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
  2248. (x86_64_reloc_map): Likewise.
  2249. (R_X86_64_standard): Updated.
  2250. (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
  2251. (elf64_x86_64_link_hash_table_create): Initialize igotplt,
  2252. iplt and irelplt.
  2253. (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
  2254. (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  2255. (elf64_x86_64_allocate_dynrelocs): Likewise.
  2256. (elf64_x86_64_relocate_section): Likewise.
  2257. (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
  2258. sections.
  2259. (elf64_x86_64_finish_dynamic_symbol): When building a static
  2260. executable, use .iplt, .igot.plt and .rela.iplt sections for
  2261. STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
  2262. for locally defined STT_GNU_IFUNC symbol.
  2263. * reloc.c (BFD_RELOC_386_IRELATIVE): New.
  2264. (BFD_RELOC_X86_64_IRELATIVE): Likewise.
  2265. * bfd-in2.h: Regenerated.
  2266. * libbfd.h: Likewise.
  2267. 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
  2268. * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
  2269. (_bfd_elf_make_ifunc_reloc_section): Removed.
  2270. (_bfd_elf_is_ifunc_symbol): Likewise.
  2271. (_bfd_elf_create_static_ifunc_sections): New.
  2272. * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
  2273. symbol check to ...
  2274. (elf_link_add_object_symbols): Here.
  2275. (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
  2276. STT_GNU_IFUNC symbol.
  2277. (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
  2278. if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
  2279. (IFUNC_INFIX): Removed.
  2280. (get_ifunc_reloc_section_name): Likewise.
  2281. (_bfd_elf_make_ifunc_reloc_section): Likewise.
  2282. (_bfd_elf_is_ifunc_symbol): Likewise.
  2283. (_bfd_elf_create_static_ifunc_sections): New.
  2284. 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
  2285. * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
  2286. (create_got_section): Likewise.
  2287. (allocate_dynrelocs): Likewise.
  2288. (readonly_dynrelocs): Likewise.
  2289. (set_tls_module_base): Likewise.
  2290. (dtpoff_base): Likewise.
  2291. (tpoff): Likewise.
  2292. (elf_i386_link_hash_table_create): Updated.
  2293. (elf_i386_create_dynamic_sections): Likewise.
  2294. (elf_i386_check_relocs): Likewise.
  2295. (elf_i386_size_dynamic_sections): Likewise.
  2296. (elf_i386_relocate_section): Likewise.
  2297. * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
  2298. (create_got_section): Likewise.
  2299. (allocate_dynrelocs): Likewise.
  2300. (readonly_dynrelocs): Likewise.
  2301. (set_tls_module_base): Likewise.
  2302. (dtpoff_base): Likewise.
  2303. (tpoff): Likewise.
  2304. (elf64_x86_64_link_hash_table_create): Updated.
  2305. (elf64_x86_64_create_dynamic_sections): Likewise.
  2306. (elf64_x86_64_check_relocs): Likewise.
  2307. (elf64_x86_64_size_dynamic_sections): Likewise.
  2308. (elf64_x86_64_relocate_section): Likewise.
  2309. 2009-05-28 Nick Clifton <nickc@redhat.com>
  2310. * targets.c (_bfd_target_vector): Only include plugin target in
  2311. all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
  2312. 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
  2313. * elf32-spu.c (struct call_info): New member broken_cycle.
  2314. (remove_cycle): Instead of physically removing call_info structures
  2315. to break call graph cycles, mark them using the broken_cycle flag.
  2316. (mark_overlay_section): Respect broken_cycle flag.
  2317. (unmark_overlay_section): Likewise.
  2318. (collect_lib_sections): Likewise.
  2319. (collect_overlays): Likewise.
  2320. (sum_stack): Likewise.
  2321. 2009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
  2322. * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
  2323. (mark_functions_via_relocs): Initialize callee->count to 1.
  2324. (pasted_function): Likewise.
  2325. (spu_elf_auto_overlay): Honor call counts when determining number
  2326. of stubs required in software i-cache mode.
  2327. 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
  2328. * plugin.c (program_name): Remove.
  2329. (plugin_program_name): New.
  2330. (bfd_plugin_set_program_name): New.
  2331. (try_load_plugin): Use plugin_program_name.
  2332. * plugin.h (bfd_plugin_set_program_name): New.
  2333. 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
  2334. * aclocal.m4: Include ../config/plugins.m4.
  2335. * configure.in: Use AC_PLUGINS.
  2336. * configure: Regenerate.
  2337. * Makefile.in: Regenerate.
  2338. * doc/Makefile.in: Regenerate.
  2339. 2009-05-27 Nathan Sidwell <nathan@codesourcery.com>
  2340. * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
  2341. link.
  2342. * bout.c (b_out_bfd_relax_section): Reject relocatable links.
  2343. * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
  2344. * elf32-avr.c (elf32_avr_relax_section): Likewise.
  2345. * elf32-frv.c (elf32_avr_relax_section): Likewise.
  2346. * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
  2347. * elf64-mmix.c (mmix_elf_relax_section): Likewise.
  2348. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  2349. * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
  2350. * reloc.c (bfd_generic_relax_section): Likewise.
  2351. * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
  2352. * vms.c (vms_bfd_relax_section): Likewise.
  2353. 2009-05-26 H.J. Lu <hongjiu.lu@intel.com>
  2354. * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
  2355. * elf32-i386.c (is_indirect_symbol): Renamed to ...
  2356. * elflink.c (_bfd_elf_is_ifunc_symbol): This.
  2357. * elf32-i386.c (allocate_dynrelocs): Updated.
  2358. (elf_i386_relocate_section): Likewise.
  2359. * elf64-x86-64.c (allocate_dynrelocs): Likewise.
  2360. (elf64_x86_64_relocate_section): Likewise.
  2361. * elf64-x86-64.c (is_indirect_symbol): Removed.
  2362. 2009-05-26 Nick Clifton <nickc@redhat.com>
  2363. * po/id.po: Updated Indonesian translation.
  2364. 2009-05-26 Rafael Avila de Espindola <espindola@google.com>
  2365. * Makefile.am: Run "make dep-am".
  2366. (AM_CPPFLAGS): New.
  2367. (LIBDL): New.
  2368. (ALL_MACHINES): Add cpu-plugin.lo.
  2369. (ALL_MACHINES_CFILES): Add cpu-plugin.c.
  2370. (BFD32_BACKENDS): Add plugin.lo.
  2371. (BFD32_BACKENDS_CFILES): Add plugin.c.
  2372. (libbfd_la_LIBADD): Add LIBDL
  2373. * archures.c (bfd_architecture): Add bfd_arch_plugin.
  2374. (bfd_plugin_arch): Declare.
  2375. * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
  2376. * bfd.c (bfd): Add plugin_data.
  2377. * config.bfd: Handle the plugin target.
  2378. * configure.in: Check for --enable-plugins.
  2379. (LT_INIT): Use the dlopen option.
  2380. * cpu-plugin.c: New.
  2381. * plugin.c: New.
  2382. * plugin.h: New.
  2383. * targets.c (plugin_vec): Declare.
  2384. (_bfd_target_vector): Add plugin_vec.
  2385. * Makefile.in: Regenerate.
  2386. * bfd-in2.h: Regenerate.
  2387. * configure: Regenerate.
  2388. 2009-05-26 Alan Modra <amodra@bigpond.net.au>
  2389. * dep-in.sed: Don't modify .o to .lo here. Output one filename
  2390. per line with all lines having continuation backslash. Prefix
  2391. first line with "A", following lines with "B".
  2392. * Makefile.am (DEP): Don't use dep.sed here.
  2393. (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
  2394. dep.sed here on dependencies, sort and uniq.
  2395. * Makefile.in: Regenerate.
  2396. 2009-05-25 Tristan Gingold <gingold@adacore.com>
  2397. * makefile.vms: Add verilog.obj to object list OBJS.
  2398. 2009-05-24 Alan Modra <amodra@bigpond.net.au>
  2399. * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
  2400. for BFD_IN_MEMORY is cleared.
  2401. (bfd_bwrite): Zero excess memory allocated.
  2402. 2009-05-22 Julian Brown <julian@codesourcery.com>
  2403. * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
  2404. macros.
  2405. (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
  2406. (elf32_arm_stub_a8_veneer_blx): New stub sequences.
  2407. (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
  2408. arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
  2409. (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
  2410. (a8_erratum_fix, a8_erratum_reloc): New structs.
  2411. (elf32_arm_link_hash_table): Add a8_erratum_fixes,
  2412. num_a8_erratum_fixes, fix_cortex_a8 fields.
  2413. (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
  2414. (elf32_arm_add_stub): Split into two parts, creating...
  2415. (elf32_arm_create_or_find_stub_sec): New function.
  2416. (elf32_arm_final_link_relocate): Add forward declaration.
  2417. (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
  2418. relocations, multiple relocations per stub.
  2419. (find_stub_size_and_template): New (using parts of arm_size_one_stub).
  2420. (arm_size_one_stub): Use find_stub_size_and_template.
  2421. (a8_reloc_compare): New.
  2422. (find_thumb_glue): Add forward declaration.
  2423. (cortex_a8_erratum_scan): New.
  2424. (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
  2425. (bfd_elf32_arm_set_cortex_a8_fix): New.
  2426. (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
  2427. (arm_map_one_stub): Add THUMB32_TYPE support.
  2428. (a8_branch_to_stub_data): New.
  2429. (make_branch_to_a8_stub): New.
  2430. (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
  2431. * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
  2432. (bfd_elf32_arm_set_target_relocs): Add argument for controlling
  2433. Cortex-A8 erratum workaround.
  2434. * bfd-in2.h: Regenerate.
  2435. 2009-05-22 Alan Modra <amodra@bigpond.net.au>
  2436. * Makefile.am: Run "make dep-am".
  2437. * Makefile.in: Regenerate.
  2438. * po/SRC-POTFILES.in: Regenerate.
  2439. 2009-05-21 Alan Modra <amodra@bigpond.net.au>
  2440. * elflink.c (elf_link_input_bfd): Correct *pindex change in last
  2441. commit.
  2442. 2009-05-21 Alan Modra <amodra@bigpond.net.au>
  2443. * elf-bfd.h (struct elf_backend_data
  2444. <elf_backend_link_output_symbol_hook>): Return an int.
  2445. * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
  2446. symbols on deleted .opd entries.
  2447. * elflink.c (elf_link_output_sym): Return without outputting sym
  2448. if output_symbol_hook returns 2.
  2449. (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
  2450. Abort if we must not discard sym.
  2451. (elf_link_input_bfd): Similarly, don't set finfo->indices for
  2452. local syms.
  2453. (bfd_elf_final_link): Adjust elf_link_output_sym calls.
  2454. * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
  2455. elf_backend_link_output_symbol_hook return type change.
  2456. * elf32-arm.c (output_arch_syminfo): Likewise.
  2457. (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
  2458. (elf32_arm_output_arch_local_syms): Likewise.
  2459. * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
  2460. * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
  2461. (bfd_score_elf_link_output_symbol_hook): Likewise.
  2462. * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
  2463. * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
  2464. * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
  2465. * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
  2466. * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
  2467. * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
  2468. * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
  2469. * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
  2470. * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
  2471. * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
  2472. * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
  2473. 2009-05-21 Alan Modra <amodra@bigpond.net.au>
  2474. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
  2475. out of range .opd symbols.
  2476. 2009-05-21 Dave Korn <dave.korn.cygwin@gmail.com>
  2477. * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
  2478. fprintf_vma directly.
  2479. * peXXigen.c (pe_print_edata): Likewise.
  2480. (pe_print_pdata): Likewise.
  2481. (_bfd_XX_print_ce_compressed_pdata): Likewise.
  2482. (_bfd_XX_print_private_bfd_data_common): Likewise.
  2483. 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
  2484. * cofflink.c (process_embedded_commands): Ignore "-aligncomm".
  2485. 2009-05-15 Andrew Stubbs <ams@codesourcery.com>
  2486. Paul Brook <paul@codesourcery.com>
  2487. * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
  2488. fix discarded sections.
  2489. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2490. * elf32-spu.c (mark_overlay_section): Move .init and .fini
  2491. sections into the software icache.
  2492. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2493. * elf32-spu.c (build_stub): Always build "compact" sofware
  2494. i-cache stubs.
  2495. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2496. * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
  2497. (spu_elf_setup): Initialize it.
  2498. (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
  2499. Update to new-sytle cache manager data structures.
  2500. (spu_elf_build_stubs): Generate new-style cache manager data
  2501. structures and symbols.
  2502. (spu_elf_auto_overlay): Update size computation.
  2503. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2504. * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
  2505. segments first amongst the program headers.
  2506. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2507. * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
  2508. into addresses for relocation types that look at high bits. Remove
  2509. special handling of relocation overflow warnings.
  2510. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2511. * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
  2512. control flow graph between fragments of a function.
  2513. 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  2514. * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
  2515. generate only a 16-byte .toe section.
  2516. (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
  2517. 2009-05-14 Alan Modra <amodra@bigpond.net.au>
  2518. * elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
  2519. (spu_elf_place_overlay_data): ..here. New function.
  2520. * elf32-spu.h (spu_elf_place_overlay_data): Declare.
  2521. 2009-05-13 Andrew Jenner <andrew@codesourcery.com>
  2522. * elf32-arm.c: Move sysdep.h to start of file.
  2523. 2009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
  2524. * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
  2525. start of overlays.
  2526. (spu_elf_build_stubs): Don't define __icache_tagbase. Define
  2527. __icache_tag_array and __icache_tag_array_size.
  2528. 2009-05-11 Masaki Muranaka <monaka@monami-software.com>
  2529. * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
  2530. ATTRIBUTE_UNUSED.
  2531. (bfinfdpic_link_omit_section_dynsym): Likewise.
  2532. (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
  2533. 2009-05-05 Paul Brook <paul@codesourcery.com>
  2534. * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
  2535. * bfd-in2.h: Regenerate.
  2536. * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
  2537. (_arm_elf_section_data): Add text and exidx fields.
  2538. (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
  2539. insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
  2540. copy_exidx_entry): New functions.
  2541. (elf32_arm_write_section): Fixup .ARM.exidx contents.
  2542. 2009-05-05 Christophe lyon <christophe.lyon@st.com>
  2543. * elf32-arm.c (DEF_STUBS): New helper define.
  2544. (DEF_STUB): Likewise.
  2545. (stub_def): New type.
  2546. (stub_definitions): New array, containing stub template pointers
  2547. and sizes.
  2548. (arm_size_one_stub): Make use of stub_definitions.
  2549. 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
  2550. * elflink.c (find_version_for_sym): Remove from here, ...
  2551. * linker.c (bfd_find_version_for_sym): ... rename, replace
  2552. here, make public and update all callers.
  2553. * bfd-in2.h: Regenerate.
  2554. 2009-04-30 Nick Clifton <nickc@redhat.com>
  2555. * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
  2556. section pointer.
  2557. (struct elf_obj_data): Add has_ifunc_symbols boolean.
  2558. * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
  2559. into a STT_GNU_IFUNC symbol type.
  2560. (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
  2561. type.
  2562. (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
  2563. the binary contains ifunc symbols.
  2564. * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
  2565. symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
  2566. * elf32-i386.c (is_indirect_function): New function.
  2567. (elf_i386_check_relocs): Create an ifunc output section.
  2568. (allocate_dynrelocs): Create dynamic relocs in the ifunc output
  2569. section if necessary.
  2570. (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
  2571. if necessary.
  2572. (elf_i386_add_symbol_hook): New function. Set the
  2573. has_ifunc_symbols field of the elf_obj_data structure if an ifunc
  2574. symbol is encountered.
  2575. (elf_backend_post_process_headers): Define.
  2576. (elf_backend_add_symbol_hook): Define.
  2577. (elf_i386_post_process_headers): Rename to
  2578. elf_i388_fbsd_post_process_headers.
  2579. * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
  2580. (is_indirect_function): New function.
  2581. (elf64_x86_64_check_relocs): Create an ifunc output section.
  2582. (allocate_dynrelocs): Create dynamic relocs in the ifunc output
  2583. section if necessary.
  2584. (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
  2585. symbol if necessary.
  2586. (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
  2587. elf_obj_data structure if an ifunc symbol is encountered.
  2588. (elf_backend_post_process_headers): Define.
  2589. * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
  2590. if we have ifunc symbols to handle.
  2591. (get_ifunc_reloc_section_name): New function. Computes the name
  2592. for an ifunc section.
  2593. (_bfd_elf_make_ifunc_reloc_section): New function. Creates a
  2594. section to hold ifunc relocs.
  2595. * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
  2596. (bfd_print_symbol_vandf): Handle ifunc symbols.
  2597. (bfd_decode_symclass): Likewise.
  2598. * bfd-in2.h: Regenerate.
  2599. 2009-04-30 Joseph Myers <joseph@codesourcery.com>
  2600. * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
  2601. MOVW and MOVT relocations in a shared library link.
  2602. 2009-04-27 Anthony Green <green@moxielogic.com>
  2603. * verilog.c: New file.
  2604. * Makefile.am (BFD32_LIBS): Add verilog.c.
  2605. (BFD32_LIBS_CFILES): Add verilog.c.
  2606. (verilog.lo): New build rule.
  2607. * Makefile.in: Rebuilt.
  2608. * targets.c: Add verilog support.
  2609. * bfd.c (tdata union): Add Verilog private data field.
  2610. * bfd-in2.h: Regenerate.
  2611. 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
  2612. * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
  2613. copy pe_opthdr.
  2614. 2009-04-23 Matthias Klose <doko@ubuntu.com>
  2615. * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
  2616. 2009-04-22 Christophe Lyon <christophe.lyon@st.com>
  2617. PR9743
  2618. * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
  2619. R_ARM_JUMP24 and R_ARM_PLT32 relocations.
  2620. (elf32_arm_size_stubs): Likewise.
  2621. (record_thumb_to_arm_glue): Deleted unused function.
  2622. (bfd_elf32_arm_process_before_allocation): No longer handle
  2623. R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
  2624. (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
  2625. R_ARM_JUMP24 and R_ARM_PLT32 relocations.
  2626. 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
  2627. * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
  2628. (elf32_arm_write_section): Declare early.
  2629. (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
  2630. (arm_allocate_glue_section_space): Exclude empty sections.
  2631. (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
  2632. (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
  2633. BFD.
  2634. (elf32_arm_output_glue_section, elf32_arm_final_link): New.
  2635. (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
  2636. (elf32_arm_size_dynamic_sections): Allocate interworking
  2637. sections here.
  2638. (bfd_elf32_bfd_final_link): Define.
  2639. 2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
  2640. * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
  2641. * coffcode.h (coff_compute_section_file_positions): Clear
  2642. D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
  2643. * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
  2644. force_minimum_alignment.
  2645. * libcoff.h: Regenerated.
  2646. * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
  2647. (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
  2648. * peicode.h (pe_mkobject): Don't set force_minimum_alignment
  2649. nor target_subsystem.
  2650. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
  2651. force_minimum_alignment nor target_subsystem.
  2652. 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
  2653. * coff-x86_64.c (PEI_HEADERS): Protect includes.
  2654. (bfd_pe_print_pdata): Remove #ifdef PE variation.
  2655. * pei-x86_64.c (PEI_HEADERS): Define to prevent double
  2656. include in coff-x86_64.c of headers.
  2657. (PDATA_ROW_SIZE): New define.
  2658. (pex_regs[]): New static array.
  2659. (pex64_get_runtime_function): New static function.
  2660. (pex64_get_unwind_info): Likewise.
  2661. (pex64_get_scope_entry): Likewise.
  2662. (pex64_xdata_print_uwd_codes): Likewise.
  2663. (pex64_get_section_by_rva): Likewise.
  2664. (pex64_dump_xdata): Likewise.
  2665. (pex64_bfd_print_pdata): Likewise.
  2666. (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
  2667. * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
  2668. * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
  2669. 2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
  2670. Alan Modra <amodra@bigpond.net.au>
  2671. Dave Korn <dave.korn.cygwin@gmail.com>
  2672. * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
  2673. long names and non-NUL-terminated strings.
  2674. 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2675. * bfd-in2.h: Regenerated.
  2676. 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2677. * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
  2678. IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
  2679. 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2680. PR binutils/10074
  2681. * coffcode.h (bfd_pei_p): New.
  2682. * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
  2683. bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
  2684. bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
  2685. bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
  2686. bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
  2687. i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
  2688. * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
  2689. bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
  2690. bfd_efi_rtdrv_x86_64_vec,
  2691. bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
  2692. bfd_efi_ia64_vec with bfd_pei_ia64_vec.
  2693. * targets.c: Likewise.
  2694. * configure: Regenerated.
  2695. * libcoff.h: Likewise.
  2696. * Makefile.in: Likewise.
  2697. * efi-app-ia32.c: Removed.
  2698. * efi-app-x86_64.c: Likewise.
  2699. * efi-bsdrv-ia32.c: Likewise.
  2700. * efi-bsdrv-ia64.c: Likewise.
  2701. * efi-bsdrv-x86_64.c: Likewise.
  2702. * efi-rtdrv-ia32.c: Likewise.
  2703. * efi-rtdrv-ia64.c: Likewise.
  2704. * efi-rtdrv-x86_64.c: Likewise.
  2705. * efi-rtdrv-ia32.c: Likewise.
  2706. * efi-app-ia64.c: Moved to ...
  2707. * pei-ia64.c: This.
  2708. (TARGET_SYM): Set to bfd_pei_ia64_vec.
  2709. (TARGET_NAME): Set to pei-ia64.
  2710. * libpei.h (bfd_target_pei_p): Removed.
  2711. (bfd_target_pei_arch): Likewise.
  2712. (bfd_target_efi_app_p): Likewise.
  2713. (bfd_target_efi_app_arch): Likewise.
  2714. (bfd_target_efi_bsdrv_p): Likewise.
  2715. (bfd_target_efi_bsdrv_arch): Likewise.
  2716. (bfd_target_efi_rtdrv_p): Likewise.
  2717. (bfd_target_efi_rtdrv_arch): Likewise.
  2718. (bfd_pe_executable_p): Likewise.
  2719. * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
  2720. efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
  2721. (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
  2722. and efi-rtdrv-ia32.c.
  2723. (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
  2724. efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
  2725. efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
  2726. (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
  2727. efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
  2728. efi-rtdrv-x86_64.c. Add pei-ia64.c.
  2729. (efi-app-ia64.lo): Removed.
  2730. (efi-bsdrv-ia32.lo): Likewise.
  2731. (efi-rtdrv-ia32.lo): Likewise.
  2732. (efi-app-ia64.lo): Likewise.
  2733. (efi-bsdrv-ia64.lo): Likewise.
  2734. (efi-rtdrv-ia64.lo): Likewise.
  2735. (efi-app-x86_64.lo): Likewise.
  2736. (efi-bsdrv-x86_64.lo): Likewise.
  2737. (efi-rtdrv-x86_64.lo): Likewise.
  2738. (pei-ia64.lo): New.
  2739. * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
  2740. with bfd_pei_p.
  2741. (arch_type): Removed.
  2742. (pe_arch): Likewise.
  2743. (pe_bfd_object_p): Just return coff_object_p.
  2744. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
  2745. bfd_pe_executable_p with bfd_pei_p.
  2746. 2009-04-17 Christophe Lyon <christophe.lyon@st.com>
  2747. * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
  2748. PLT entries to an undefined symbol when generating a shared
  2749. library.
  2750. 2009-04-17 Nick Clifton <nickc@redhat.com>
  2751. PR 9909
  2752. * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
  2753. 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
  2754. * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
  2755. * aout-target.h (MY_bfd_define_common_symbol): Likewise.
  2756. * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
  2757. * binary.c (binary_bfd_define_common_symbol): Likewise.
  2758. * bout.c (b_out_bfd_define_common_symbol): Likewise.
  2759. * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
  2760. * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
  2761. * coffcode.h (coff_bfd_define_common_symbol): Likewise.
  2762. * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
  2763. * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
  2764. * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
  2765. * ieee.c (ieee_bfd_define_common_symbol): Likewise.
  2766. * ihex.c (ihex_bfd_define_common_symbol): Likewise.
  2767. * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
  2768. * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
  2769. * mmo.c (mmo_bfd_define_common_symbol): Likewise.
  2770. * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
  2771. * oasys.c (oasys_bfd_define_common_symbol): Likewise.
  2772. * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
  2773. * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
  2774. * som.c (som_bfd_define_common_symbol): Likewise.
  2775. * srec.c (srec_bfd_define_common_symbol): Likewise.
  2776. * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
  2777. * versados.c (versados_bfd_define_common_symbol): Likewise.
  2778. * vms.c (vms_bfd_define_common_symbol): Likewise.
  2779. * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
  2780. * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
  2781. * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
  2782. (pmac_xcoff_vec): Likewise.
  2783. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  2784. (aix5coff64_vec): Likewise.
  2785. * linker.c (bfd_generic_define_common_symbol): New function.
  2786. * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
  2787. (_bfd_define_common_symbol): New field.
  2788. * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
  2789. * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
  2790. (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
  2791. symbols here.
  2792. * bfd-in2.h: Regenerate.
  2793. * libbfd.h: Likewise.
  2794. * libcoff.h: Likewise.
  2795. 2009-04-15 Anthony Green <green@moxielogic.com>
  2796. * targets.c: Add moxie support.
  2797. * Makefile.am: Ditto.
  2798. * Makefile.in: Rebuilt.
  2799. * cpu-moxie.c, elf32-moxie.c: New files.
  2800. * archures.c: Add moxie support.
  2801. * configure.in: Add moxie support.
  2802. * configure: Rebuilt.
  2803. * config.bfd, archures.c: Add moxie support.
  2804. * bfd-in2.h: Rebuilt.
  2805. 2009-04-15 Christophe Lyon <christophe.lyon@st.com>
  2806. * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
  2807. branch to an undef weak symbol into a jump to next instruction if
  2808. a PLT entry will be created.
  2809. 2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
  2810. * coffgen.c (make_a_section_from_file): Set the backend long
  2811. section names enable if long section names found on input.
  2812. * coffcode.h: Extend long section names documentation to match.
  2813. 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
  2814. * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
  2815. machine code.
  2816. 2009-04-07 DJ Delorie <dj@redhat.com>
  2817. * archures.c: Add bfd_mach_mep_c5.
  2818. * bfd-in2.h: Likewise.
  2819. * cpu-mep.c: Add bfd_c5_arch.
  2820. * elf32-mep.c: Support it.
  2821. 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
  2822. * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
  2823. info->callbacks->einfo.
  2824. * linker.c (_bfd_generic_section_already_linked): Likewise.
  2825. 2009-04-06 DJ Delorie <dj@redhat.com>
  2826. * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
  2827. 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
  2828. * coff-x86_64.c (bfd_pe_print_pdata): Defined to
  2829. _bfd_pex64_print_pdata only if PE is defined.
  2830. * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
  2831. (_bfd_pex64_print_pdata): This.
  2832. * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
  2833. (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
  2834. is defined.
  2835. 2009-04-05 Kai Tietz <kai.tietz@onevision.com>
  2836. * coff-x86_64.c (bfd_pe_print_pdata): Define as
  2837. _bfd_pep_print_x64_pdata.
  2838. * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
  2839. * peXXigen.c (_bfd_pep_print_x64_pdata): New.
  2840. 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
  2841. * elf32-xtensa.c (relax_property_section): Always set r_offset
  2842. to zero.
  2843. 2009-04-02 Christophe Lyon <christophe.lyon@st.com>
  2844. * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
  2845. elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
  2846. branch stubs.
  2847. (elf32_arm_stub_type): New enum values for the two new stubs.
  2848. (arm_type_of_stub): Make use of the two new stubs.
  2849. (arm_size_one_stub): Handle the two new stubs.
  2850. 2009-04-01 Matt Thomas <matt@netbsd.org>
  2851. * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
  2852. hidden symbols into the GOT or PLT.GOT.
  2853. (elf_vax_relocate_section): Do not emit a PCREL reloc
  2854. into a shared object if it is against a hidden symbol.
  2855. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2856. * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
  2857. and know_contains_shared_object_p.
  2858. (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
  2859. Cache the result in the archive_info table.
  2860. (xcoff_auto_export_p): Add an "info" parameter and update the
  2861. call to xcoff_archive_contains_shared_object_p.
  2862. (xcoff_mark_auto_exports): Update accordingly.
  2863. (xcoff_post_gc_symbol): Likewise.
  2864. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2865. * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
  2866. rather than C_EXT.
  2867. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2868. * coff-rs6000.c (member_layout): New structure.
  2869. (archive_iterator): Likewise.
  2870. (member_layout_init): New function.
  2871. (archive_iterator_begin): Likewise.
  2872. (archive_iterator_next): Likewise.
  2873. (xcoff_write_armap_old): Use the new iterator functions.
  2874. (do_shared_object_padding): Delete.
  2875. (xcoff_write_armap_big): Use the new iterator functions. Simplify
  2876. handling of arch_info.
  2877. (xcoff_write_archive_contents_old): Allocate arelt_data in the
  2878. first loop rather than the second. Allocate a member header if
  2879. there isn't one, then work out the stat information and length
  2880. in the first loop too. Use the new iterators for the second loop.
  2881. (xcoff_write_archive_contents_big): Likewise.
  2882. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2883. * bfd-in.h (bfd_xcoff_split_import_path): Declare.
  2884. (bfd_xcoff_set_archive_import_path): Likewise.
  2885. * bfd-in2.h: Regenerate.
  2886. * xcofflink.c: Include libiberty.h.
  2887. (xcoff_archive_info): New structure.
  2888. (xcoff_archive_info_hash): New function.
  2889. (xcoff_archive_info_eq): Likewise.
  2890. (xcoff_get_archive_info): Likewise.
  2891. (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
  2892. (bfd_xcoff_split_import_path): New function.
  2893. (bfd_xcoff_set_archive_import_path): Likewise.
  2894. (xcoff_set_import_path): Move earlier in file.
  2895. (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
  2896. object to the directory part of the bfd's filename. Get the
  2897. import path and filename of an archive object from the archive's
  2898. xcoff_tdata, initializing it if necessary. Update use of
  2899. import_file_id.
  2900. (bfd_link_input_bfd): Update use of import_file_id.
  2901. (xcoff_write_global_symbol): Likewise.
  2902. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2903. * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
  2904. 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
  2905. * xcofflink.c (xcoff_link_create_extra_sections): Don't create
  2906. a .loader section for relocatable links.
  2907. (xcoff_need_ldrel_p): New function.
  2908. (xcoff_mark): Use it.
  2909. (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
  2910. a loader section.
  2911. (xcoff_build_ldsym): New function, split out from...
  2912. (xcoff_build_ldsyms): ...here. Rename to...
  2913. (xcoff_post_gc_symbol): ...this. Only export symbols, and only
  2914. call xcoff_build_ldsym, if there's a loader section.
  2915. (xcoff_build_loader_section): New function, extracted verbatim from...
  2916. (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
  2917. there's a loader section. Only add an __rtinit loader symbol
  2918. if there's a loader section. Update after above name change.
  2919. (xcoff_symbol_section, xcoff_create_ldrel): New functions.
  2920. (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
  2921. and xcoff_create_ldrel.
  2922. (xcoff_write_global_symbol): Use xcoff_create_ldrel.
  2923. (xcoff_reloc_link_order): Likewise, but only call it if there's
  2924. a loader section. Use xcoff_symbol_section.
  2925. (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
  2926. if there's a loader section.
  2927. 2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
  2928. * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
  2929. 2009-04-01 Christophe Lyon <christophe.lyon@st.com>
  2930. * elf32-arm.c (group_sections): Rewrite loops for better
  2931. readability.
  2932. 2009-03-30 DJ Delorie <dj@redhat.com>
  2933. * elflink.c (elf_link_input_bfd): Don't try to resolve complex
  2934. relocs when doing a relocatable link.
  2935. 2009-03-28 Mark Mitchell <mark@codesourcery.com>
  2936. * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
  2937. "ERROR:", in error messages.
  2938. * cpu-arm.c (bfd_arm_merge_machines): Likewise.
  2939. * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
  2940. * elf32-arm.c (tag_cpu_arch_combine): Likewise.
  2941. (elf32_arm_merge_eabi_attributes): Likewise.
  2942. (elf32_arm_merge_private_bfd_data): Likewise.
  2943. 2009-03-27 Nick Clifton <nickc@redhat.com>
  2944. * section.c (bfd_get_section_contents): Detect and handle the case
  2945. where a section has the SEC_IN_MEMORY flag set but no actual
  2946. contents allocated.
  2947. 2009-03-26 Alan Modra <amodra@bigpond.net.au>
  2948. PR 6494
  2949. * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
  2950. p_filesz and p_memsz are equal. Use p_memsz as the segment size.
  2951. (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
  2952. if we don't find matching PT_LOAD when copying.
  2953. 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
  2954. * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
  2955. the reloc descriptions.
  2956. 2009-03-25 Hans-Peter Nilsson <hp@axis.com>
  2957. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
  2958. <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
  2959. <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
  2960. 2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
  2961. * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
  2962. (bfd_i386_arch_intel_syntax): Likewise.
  2963. (i8086_arch): Likewise.
  2964. (bfd_x86_64_arch): Likewise.
  2965. 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
  2966. * elf32-cris.c (cris_elf_relocate_section): <case
  2967. R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
  2968. symbols for non-allocated sections. Don't check whether to
  2969. generate R_CRIS_DTPMOD for non-allocated sections.
  2970. (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
  2971. handle relocation GC:ing if applied to non-allocated section.
  2972. (cris_elf_check_relocs): Similar.
  2973. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
  2974. <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
  2975. when emitting a known TP offset in the GOT.
  2976. 2009-03-23 Alan Modra <amodra@bigpond.net.au>
  2977. * elf64-ppc.c (synthetic_opd): Delete.
  2978. (compare_symbols): Look for .opd name rather than section match.
  2979. (ppc64_elf_get_synthetic_symtab): Likewise.
  2980. 2009-03-21 Alan Modra <amodra@bigpond.net.au>
  2981. * elf32-ppc.c (is_pic_glink_stub): Delete.
  2982. (is_nonpic_glink_stub): New function.
  2983. (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
  2984. than first pic one.
  2985. (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
  2986. 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2987. Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  2988. * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
  2989. macros for visibilty and locality checks.
  2990. (elf_s390_adjust_dynamic_symbol): Likewise.
  2991. (allocate_dynrelocs): Likewise.
  2992. (elf_s390_relocate_section): Likewise.
  2993. (elf_s390_finish_dynamic_symbol): Likewise.
  2994. * elf64-s390.c (elf_s390_check_relocs): Likewise.
  2995. (elf_s390_adjust_dynamic_symbol): Likewise.
  2996. (allocate_dynrelocs): Likewise.
  2997. (elf_s390_relocate_section): Likewise.
  2998. (elf_s390_finish_dynamic_symbol): Likewise.
  2999. 2009-03-19 Kai Tietz <kai.tietz@onevision.com>
  3000. * bfd-in2.h: Regenerated.
  3001. * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
  3002. for debugging sections and map memory read/write dependent on
  3003. SEC_COFF_NOREAD.
  3004. (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
  3005. without memory read flags set.
  3006. * section.c: Add SEC_COFF_NOREAD to section flags.
  3007. 2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
  3008. * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
  3009. for format string.
  3010. 2009-03-19 Alan Modra <amodra@bigpond.net.au>
  3011. * elf32-spu.c (spu_elf_find_overlays): Separate error return from
  3012. "no overlays" return. If there are overlays, create overlay
  3013. manager entry symbols here, so that..
  3014. (spu_elf_build_stubs): ..we don't need to set them up here.
  3015. Simplify entry symbol tests.
  3016. * elf32-spu.h (spu_elf_find_overlays): Update prototype.
  3017. 2009-03-18 Mark Kettenis <kettenis@gnu.org>
  3018. * elf.c (elfcore_grok_openbsd_procinfo)
  3019. (elfcore_grok_openbsd_note): New functions.
  3020. (elf_parse_notes): Handle notes from OpenBSD ELF core files.
  3021. 2009-03-18 Alan Modra <amodra@bigpond.net.au>
  3022. * vms-hdr.c: Don't include alloca.h.
  3023. * elf32-m68hc1x.c: Include alloca-conf.h.
  3024. * xsym.c: Likewise.
  3025. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
  3026. * som.c: Likewise.
  3027. * Makefile.am: Run "make dep-am".
  3028. * Makefile.in: Regenerate.
  3029. 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
  3030. * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
  3031. 2009-03-17 Alan Modra <amodra@bigpond.net.au>
  3032. * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
  3033. Add compact_stub.
  3034. (emum _ovly_flavour): Delete ovly_compact, ovly_none.
  3035. * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
  3036. ovly_return fields with ovly_entry[2]. Adjust all users.
  3037. (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
  3038. when soft-icache.
  3039. (spu_elf_build_stubs): Likewise.
  3040. (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
  3041. ovly_flavour changes. Update all callers.
  3042. (ovl_stub_size_log2): New function.
  3043. (build_stub): Handle compact icache stubs. Use different manager
  3044. entry point for stubs in non-icache area.
  3045. (spu_elf_size_stubs): Don't allocate space for indirect branch
  3046. descriptors.
  3047. (spu_elf_build_stubs): And don't built them.
  3048. 2009-03-16 Andrew Stubbs <ams@codesourcery.com>
  3049. * dwarf2.c (read_section): Always use rawsize, if available.
  3050. 2009-03-16 Alan Modra <amodra@bigpond.net.au>
  3051. * simple.c (bfd_simple_get_relocated_section_contents): Use larger
  3052. of rawsize and size for buffer.
  3053. 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  3054. * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
  3055. parameter just because fixed sections fit into local store.
  3056. (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
  3057. generating overlays if fixed sections plus reserved stack
  3058. and heap space fit into local store.
  3059. 2009-03-15 Alan Modra <amodra@bigpond.net.au>
  3060. * elf32-spu.c (build_stub): Correct icache set_id.
  3061. (spu_elf_relocate_section): Likewise.
  3062. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3063. * xcofflink.c (xcoff_link_check_archive_element): Only free the
  3064. symbol table if it was created by the current call.
  3065. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3066. * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
  3067. class XMC_DS rather than XMC_UA.
  3068. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3069. * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
  3070. bfd_boolean export_defineds parameter with an unsigned int
  3071. auto_export_flags parameter.
  3072. * bfd-in2.h: Regenerate.
  3073. * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
  3074. split out from xcoff_build_ldsyms.
  3075. (xcoff_covered_by_expall_p): New function.
  3076. (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
  3077. but with extra code to handle -bexpfull and -bexpall.
  3078. (xcoff_mark_auto_exports): New function.
  3079. (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
  3080. a function should be automatically exported.
  3081. (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
  3082. parameter with an auto_export_flags parameter. Update ldinfo
  3083. accordingly. Use xcoff_mark_auto_exports to mark all automatically-
  3084. exported symbols.
  3085. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3086. * xcofflink.c (xcoff_mark_symbol_by_name): New function.
  3087. (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
  3088. init and fini functions. Do garbage collection for objects
  3089. without an entry point too.
  3090. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3091. * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
  3092. check whether a symbol has csect information.
  3093. (coff_print_aux): Likewise.
  3094. * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxiliary csect
  3095. information for C_AIX_WEAKEXT too.
  3096. (_bfd_xcoff_swap_aux_out): Likewise.
  3097. (xcoff_reloc_type_br): Handle defweak symbols too.
  3098. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxiliary csect
  3099. information for C_AIX_WEAKEXT too.
  3100. (_bfd_xcoff64_swap_aux_out): Likewise.
  3101. (xcoff64_reloc_type_br): Handle defweak symbols too.
  3102. * coffgen.c (coff_print_symbol): Handle auxiliary function
  3103. information for C_AIX_WEAKEXT too.
  3104. * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
  3105. instead of BSF_GLOBAL if the L_WEAK flag is set.
  3106. (xcoff_dynamic_definition_p): New function.
  3107. (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
  3108. defines h. Don't change h if ldsym isn't the definition. Otherwise,
  3109. always take the symbol class from the ldsym. Use weak bfd symbol
  3110. types for weak ldsyms.
  3111. (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
  3112. Fix the check for whether a definition is from a shared object.
  3113. Allow redefinitions of weak symbols.
  3114. (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
  3115. (xcoff_keep_symbol_p): Likewise.
  3116. (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
  3117. (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
  3118. Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
  3119. but mark them as L_WEAK.
  3120. (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
  3121. instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
  3122. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3123. * xcofflink.c (xcoff_mark): When walking the relocations,
  3124. only mark the target symbol or the target section, not both.
  3125. (xcoff_final_definition_p): New function.
  3126. (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
  3127. symbol is a valid definition of the associated output symbol.
  3128. Use XCOFF_ALLOCATED to stop the same hash table entry having
  3129. two output symbols.
  3130. (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
  3131. keeping a symbol.
  3132. (xcoff_link_input_bfd): Use xcoff_final_definition_p.
  3133. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3134. * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
  3135. symbols as XMC_XO.
  3136. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3137. * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
  3138. * libcoff.h: Regenerate.
  3139. * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
  3140. line-number counts in the bfd's lineno_counts field.
  3141. Don't keep per-csect line-number counts.
  3142. (xcoff_sweep): Don't update per-csect line-number counts.
  3143. (bfd_xcoff_size_dynamic_sections): Count the number of line-number
  3144. entries in each output section.
  3145. (xcoff_link_input_bfd): Get the number of line numbers from
  3146. the bfd's lineno_counts field, rather than recalculating it
  3147. from scratch. Fix the range check when updating C_BINCL and
  3148. C_EINCL symbols.
  3149. (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
  3150. here. Don't expect csects to have line-number counts.
  3151. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3152. * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
  3153. * libcoff.h: Regenerate.
  3154. * xcofflink.c (xcoff_keep_symbol_p): New function, using the
  3155. "skip" logic from xcoff_link_input_bfd.
  3156. (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
  3157. objects in a dynamic link, rather than checking whether csectpp
  3158. is null. Always allocate debug_index for other objects,
  3159. and always go through the loop. Update the type of debug_index
  3160. after the change above. Read the auxiliary csect information
  3161. and use xcoff_keep_symbol_p to decide whether a symbol should
  3162. be kept. Set its debug_index to -2 if not.
  3163. (xcoff_link_input_bfd): Update the type of debug_index after
  3164. the change above and always expect it to be nonnull. Use it to
  3165. test whether a symbol should be stripped, rather than making the
  3166. decision here. Postpone all symbol creation to the second pass.
  3167. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3168. * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
  3169. creating a descriptor.
  3170. (xcoff_sweep): Don't mark toc_section unless it's needed.
  3171. (bfd_xcoff_size_dynamic_sections): Skip the toc_section
  3172. when marking every bfd.
  3173. (xcoff_link_input_bfd): Skip all TOC anchors.
  3174. (xcoff_toc_section_p, xcoff_find_tc0): New functions.
  3175. (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
  3176. to -1; call xcoff_find_tc0 instead.
  3177. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3178. * libcoff-in.h (xcoff_section_tdata): Update commentary.
  3179. * libcoff.h: Regenerate.
  3180. * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
  3181. symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
  3182. the previous symbol's csect. Treat last_symndx as an inclusive value
  3183. and simplify its handling.
  3184. (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
  3185. symbols with the right csect. Don't mark rsec when processing
  3186. relocations against undefined or absolute sections.
  3187. (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
  3188. of bfd_und_section_ptr.
  3189. (xcoff_link_input_bfd): Likewise.
  3190. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3191. * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
  3192. against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
  3193. flag is set. Assert that all undefined symbols are either
  3194. imported or defined by a dynamic object.
  3195. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
  3196. * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
  3197. handling to all relocations. Only set XCOFF_CALLED for function
  3198. symbols.
  3199. (xcoff_find_function): New function, split out from...
  3200. (bfd_xcoff_export_symbol) ...here.
  3201. (xcoff_set_import_path): New function, split out from...
  3202. (bfd_xcoff_import_symbol): ...here. Remove assertion for old
  3203. meaning of XCOFF_CALLED.
  3204. (xcoff_mark_symbol): If we mark an undefined and unimported
  3205. symbol, find some way of defining it. If the symbol is a function
  3206. descriptor, fill in its definition automatically. If the symbol
  3207. is a function, mark its descriptor and allocate room for global
  3208. linkage code. Otherwise mark the symbol as implicitly imported.
  3209. Move the code for creating function descriptors from...
  3210. (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
  3211. check for symbols that were implicitly defined.
  3212. (xcoff_mark): Don't count any dynamic relocations against
  3213. function symbols.
  3214. (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
  3215. in the xcoff link info.
  3216. (xcoff_link_input_bfd): Remove handling of undefined and
  3217. unexported symbols.
  3218. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3219. * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
  3220. if the target is absolute. Fix comment typo.
  3221. (xcoff_ppc_relocate_section): Remove FIXME.
  3222. * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
  3223. if the target is absolute.
  3224. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3225. * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
  3226. R_POS and R_NEG relocations against absolute symbols to the
  3227. .loader section.
  3228. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3229. * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
  3230. to 2 for bfd_mach_ppc_620.
  3231. 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
  3232. * config.bfd: Treat AIX 6+ in the same way as AIX 5.
  3233. * configure.in: Likewise.
  3234. * configure: Regenerate.
  3235. 2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
  3236. PR binutils/9945
  3237. * elf.c (assign_section_numbers): Generate symbol table if there
  3238. is any relocation in output.
  3239. (_bfd_elf_compute_section_file_positions): Likewise.
  3240. 2009-03-13 Nick Clifton <nickc@redhat.com>
  3241. PR 9934
  3242. * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
  3243. * elflink.c (elf_link_read_relocs_from_section): Use
  3244. NUM_SHDR_ENTRIES. Gracefully handle the case where there are
  3245. relocs but no symbol table.
  3246. * elf32-arm.c (elf32_arm_check_relocs): Likewise.
  3247. 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
  3248. PR ld/9938
  3249. * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
  3250. to check ___tls_get_addr.
  3251. * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
  3252. strncmp to check __tls_get_addr.
  3253. 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
  3254. * dwarf2.c (read_section): Always check the offset, even when the
  3255. section has been read before.
  3256. 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
  3257. * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
  3258. comments.
  3259. 2009-03-11 Chris Demetriou <cgd@google.com>
  3260. * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
  3261. * bfd-in2.h: Regenerate.
  3262. * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
  3263. flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
  3264. mode.
  3265. (bsd_write_armap): Likewise.
  3266. (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
  3267. flag is set, do nothing.
  3268. (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
  3269. for timestamp.
  3270. 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
  3271. * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
  3272. used to update stack pointer.
  3273. 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3274. PR binutils/9921
  3275. * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
  3276. for unknown symbols in absolute section.
  3277. 2009-03-06 Nick Clifton <nickc@redhat.com>
  3278. * po/es.po: Updated Spanish translation.
  3279. 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
  3280. * elf32-arm.c (group_sections): Take next section size into
  3281. account before accepting to group it.
  3282. 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
  3283. * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
  3284. PLT entries.
  3285. (elf32_arm_final_link_relocate): Likewise.
  3286. 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
  3287. PR 9923
  3288. * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
  3289. 2009-03-04 Alan Modra <amodra@bigpond.net.au>
  3290. * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
  3291. * section.c (struct bfd_section): Add has_tls_get_addr_call.
  3292. (BFD_FAKE_SECTION): Init new flag.
  3293. * ecoff.c (bfd_debug_section): Likewise.
  3294. * bfd-in2.h: Regenerate.
  3295. * libbfd.h: Regenerate.
  3296. * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
  3297. (ppc_elf_reloc_type_lookup): Handle new relocs.
  3298. (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
  3299. without marker relocs.
  3300. (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
  3301. if section has no old-style calls.
  3302. (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
  3303. Don't try to optimize new-style __tls_get_addr call when handling
  3304. arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
  3305. relocs.
  3306. * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
  3307. (ppc64_elf_reloc_type_lookup): Handle new relocs.
  3308. (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
  3309. without marker relocs.
  3310. (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
  3311. if section has no old-style calls. Set toc_ref for new relocs as
  3312. appropriate.
  3313. (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
  3314. Don't try to optimize new-style __tls_get_addr call when handling
  3315. arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
  3316. relocs.
  3317. 2009-03-04 Alan Modra <amodra@bigpond.net.au>
  3318. PR 6768
  3319. * configure.in: Test for ld --as-needed support. Link shared
  3320. libbfd against libm.
  3321. * configure: Regenerate.
  3322. 2009-03-03 Alan Modra <amodra@bigpond.net.au>
  3323. * Makefile.am: Run "make dep-am".
  3324. * Makefile.in: Regenerate.
  3325. 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
  3326. * elf32-score7.c: New file.
  3327. * elf32-score.h: New file.
  3328. * elf32-score.c: Add code to support score 7. Set score7 as the
  3329. default.
  3330. * cpu-score.c: Add score7 architecure.
  3331. (compatibile): New function.
  3332. * Makefile.am: Add rules for building elf32-score7 object.
  3333. * Makefile.in: Regenerate.
  3334. * configure.in: Add elf32-score7 object to score vectors.
  3335. * configure: Regenerate.
  3336. * reloc.c: Add score7 relocs.
  3337. * archures.c: Add score3 and score7 machine numbers.
  3338. * bfd-in2.h: Regenerate.
  3339. * libbfd.h: Regenerate.
  3340. 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  3341. * configure: Regenerate.
  3342. 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3343. * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
  3344. (elf32_hppa_check_relocs): Use it.
  3345. * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
  3346. elf64-hppa.c.
  3347. (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
  3348. (elf_hppa_remark_useless_dynamic_symbols): Likewise.
  3349. (elf_hppa_is_dynamic_loader_symbol): Likewise.
  3350. (elf_hppa_record_segment_addrs): Likewise.
  3351. (elf_hppa_final_link): Likewise.
  3352. (elf_hppa_relocate_insn): Likewise.
  3353. (elf_hppa_final_link_relocate): Likewise.
  3354. (elf64_hppa_relocate_section): Likewise.
  3355. * elf64-hppa.c: Insert above.
  3356. 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3357. * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
  3358. (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
  3359. (elf_hppa_relocate_section): Likewise.
  3360. * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
  3361. from struct elf_link_hash_entry. Add count field.
  3362. (struct elf64_hppa_dyn_hash_table): Delete.
  3363. (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
  3364. (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
  3365. (hppa_elf_hash_entry, eh_name): Define.
  3366. (elf64_hppa_new_dyn_hash_entry): Delete.
  3367. (elf64_hppa_dyn_hash_lookup): Delete.
  3368. (elf64_hppa_dyn_hash_traverse): Delete.
  3369. (get_dyn_name): Delete.
  3370. (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
  3371. of struct elf64_hppa_dyn_hash_entry *.
  3372. (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
  3373. allocate_global_data_plt, allocate_global_data_stub,
  3374. allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
  3375. Likewise.
  3376. (hppa64_link_hash_newfunc): New.
  3377. (elf64_hppa_hash_table_create): Rework.
  3378. (count_dyn_reloc): Likewise.
  3379. (hppa64_elf_local_refcounts): New.
  3380. (elf64_hppa_check_relocs): Rework using standard technique for recording
  3381. local DLT, PLT and OPD reference counts.
  3382. (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
  3383. elf_link_hash_entry *.
  3384. (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
  3385. allocate_global_data_plt, allocate_global_data_stub,
  3386. allocate_global_data_opd, allocate_dynrel_entries,
  3387. elf64_hppa_adjust_dynamic_symbol,
  3388. elf64_hppa_mark_milli_and_exported_functions): Likewise.
  3389. (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
  3390. Use hppa_link_hash_table. Rework.
  3391. (elf64_hppa_link_output_symbol_hook): Rework.
  3392. (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
  3393. elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
  3394. elf64_hppa_finish_dynamic_sections): Likewise.
  3395. 2009-02-26 Christophe Lyon <christophe.lyon@st.com>
  3396. * elf32-arm.c (stub_reloc_type): Removed.
  3397. (insn_sequence): Renamed reloc_type field to r_type.
  3398. (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
  3399. (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
  3400. (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
  3401. (elf32_arm_stub_type): Add new enum entries for the new stubs.
  3402. (arm_stub_is_thumb): Catch new stubs.
  3403. (arm_type_of_stub): Handle new stubs.
  3404. (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
  3405. (bfd_elf32_arm_process_before_allocation): Remove useless
  3406. condition.
  3407. 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
  3408. * elf.c (elf_find_function): Use is_function_type to check
  3409. function symbol.
  3410. 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
  3411. * xtensa-modules.c: Revert to previous version 1.11 due
  3412. to inadvertant commit.
  3413. 2009-02-24 Sterling Augustine <sterling@tensilica.com>
  3414. * elf32-xtensa.c (text_action_add): Separate test for action
  3415. type. Break if saved action is ta_widen_insn at same offset.
  3416. 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
  3417. * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
  3418. to elf32_arm_stub_long_branch_any_arm_pic.
  3419. (elf32_arm_stub_long_branch_any_thumb_pic): New.
  3420. (enum elf32_arm_stub_type, arm_type_of_stub)
  3421. (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
  3422. separately.
  3423. 2009-02-24 Joseph Myers <joseph@codesourcery.com>
  3424. * elf32-arm.c (PREV_SEC): Update comment.
  3425. (group_sections): Rename argument to stubs_always_after_branch.
  3426. Reverse the list and place stubs at the end of input sections.
  3427. Undefine NEXT_SEC.
  3428. (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
  3429. 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  3430. * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
  3431. Fix formatting.
  3432. (arm_size_one_stub): Remove unnecessary break.
  3433. (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
  3434. 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
  3435. * elf32-arm.c (stub_insn_type): New type.
  3436. (stub_reloc_type): Likewise.
  3437. (insn_sequence): Likewise.
  3438. (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
  3439. (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
  3440. (elf32_arm_stub_long_branch_thumb_only): Likewise.
  3441. (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
  3442. (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
  3443. (elf32_arm_stub_long_branch_any_any_pic): Likewise.
  3444. (elf32_arm_stub_hash_entry): Add new helper fields.
  3445. (stub_hash_newfunc): Initialize these new fields.
  3446. (arm_build_one_stub): Encode Arm and Thumb instructions separately
  3447. to take endianness into account.
  3448. (arm_size_one_stub): Compute size of stubs using insn_sequence.
  3449. (arm_map_one_stub): Code is now more generic, thanks to
  3450. insn_sequence.
  3451. 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
  3452. * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
  3453. code.
  3454. (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
  3455. (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
  3456. BLX is not available. Fix typo in warning message. Add comments
  3457. and improve formatting.
  3458. (arm_build_one_stub): Adjust to new
  3459. elf32_arm_stub_long_branch_v4t_thumb_arm stub.
  3460. (arm_map_one_stub): Likewise.
  3461. 2009-02-23 Tristan Gingold <gingold@adacore.com>
  3462. Eric Botcazou <ebotcazou@adacore.com>
  3463. Douglas B Rupp <rupp@gnat.com>
  3464. * vms.h: Update copyright year, fix comments, reorder declarations.
  3465. (_bfd_save_vms_section): Remove the prototype.
  3466. (EGPS_S_V_NO_SHIFT): New constant.
  3467. (bfd_vms_set_section_flags): New prototype.
  3468. (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
  3469. constants.
  3470. (EGSY_S_W_FLAGS): Ditto.
  3471. (EGSY_S_V_QUAD_VAL): Ditto.
  3472. (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
  3473. (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
  3474. EGST_S_B_NAMLNG): Ditto.
  3475. (ESRF_S_B_NAMLNG): Ditto.
  3476. (ETIR_S_C_HEADER_SIZE): Ditto.
  3477. (EGPS_S_V_ALLOC_64BIT): Ditto.
  3478. (DST_S_C_EPILOG): Ditto.
  3479. (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
  3480. (DST_S_C_SRC_INCRLNUM_B): Ditto.
  3481. (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
  3482. (DST_S_L_PCLINE_UNSLONG): Ditto.
  3483. (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
  3484. (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
  3485. (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
  3486. (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
  3487. (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
  3488. (DST_S_B_SRC_UNSBYTE): Ditto.
  3489. (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
  3490. Add prototypes.
  3491. (vms_section, vms_reloc): Remove types.
  3492. (hdr_struc): Replaced by ...
  3493. (hdr_struct): ... new type.
  3494. (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
  3495. (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
  3496. (EMH_DATE_LENGTH): Ditto.
  3497. (eom_struc): Replaced by ...
  3498. (eom_struct): ... new type.
  3499. (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
  3500. (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
  3501. (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
  3502. (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
  3503. (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
  3504. (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
  3505. (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
  3506. (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
  3507. (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
  3508. (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
  3509. (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
  3510. (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
  3511. (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
  3512. (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
  3513. (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
  3514. (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
  3515. (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
  3516. (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
  3517. (DBG_S_C_DMT_PSECT_SIZE): Ditto.
  3518. (enum file_type_enum): New type.
  3519. (struct location_struct): Removed.
  3520. (struct fileinfo, struct srecinfo, struct lineinfo): New types.
  3521. (struct funcinfo, struct module): Ditto.
  3522. (struct vms_private_data_struct): Update fields.
  3523. (struct vms_section_data_struct): New type.
  3524. * vms.c: Update copyright year, fix comments,
  3525. Fix includes for DECC, add prototypes.
  3526. (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
  3527. some initializers.
  3528. Use flavour to set is_vax, location_stack is removed.
  3529. (struct pair): Declare.
  3530. (fill_section_ptr): Initialize variables at declaration.
  3531. Add guard to set SECTION_SYM flag, handlde und section.
  3532. (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
  3533. (_bfd_vms_slurp_object_records): New function, replaces previous
  3534. vms_object_p.
  3535. (vms_slurp_module): New function.
  3536. (vms_slurp_image): Ditto.
  3537. (vms_object_p): Complete rewrite.
  3538. (vms_mkobject): Use is_vax field to slect architecture.
  3539. (free_reloc_stream): New function.
  3540. (vms_convert_to_var): Ditto.
  3541. (vms_convert_to_var_1): Ditto.
  3542. (vms_convert_to_var_unix_filename): Ditto.
  3543. (vms_close_and_cleanup): Call free_reloc_stream, convert file to
  3544. VAR format on VMS.
  3545. (vms_new_section_hook): Set alignment to 0, allocate private data.
  3546. (vms_get_section_contents): Load content.
  3547. (vms_get_symbol_info): Handle undefined section.
  3548. (vms_find_nearest_line): Handle.
  3549. (alloc_reloc_stream): New function.
  3550. (vms_slurp_reloc_table): Ditto.
  3551. (vms_get_reloc_upper_bound): Make it real.
  3552. (vms_canonicalize_reloc): Do the real work.
  3553. (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
  3554. ALPHA_R_BOH.
  3555. (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
  3556. (vms_set_arch_mach): Check arch.
  3557. (vms_set_section_contents): Copy the content after allocation.
  3558. (vms_alpha_vec): Update object flags.
  3559. * vms-tir.c: Update copyright year, fix comments,
  3560. add prototypes for new functions.
  3561. (dst_define_location): New function.
  3562. (dst_restore_location): New function.
  3563. (dst_retrieve_location): New function.
  3564. (dst_check_allocation): New function.
  3565. (image_dump): Call dst_check_allocation.
  3566. (image_write_b): Ditto.
  3567. (image_write_w): Ditto.
  3568. (image_write_l): Ditto.
  3569. (image_write_q): Ditto.
  3570. (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
  3571. STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
  3572. CTL_STKDL.
  3573. Call error handler instead of abort if name is not known.
  3574. (etir_sta): Add quarter_relocs argument and set it.
  3575. Fix cast.
  3576. (etir_sto): Ditto.
  3577. (etir_opr): Ditto, return FALSE in case of error.
  3578. (etir_ctl): Add quarter_relocs argument and set it, fix cast.
  3579. Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
  3580. (etir_stc): Add quarter_relocs argument and set it, fix cast.
  3581. Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
  3582. Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
  3583. Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
  3584. Return FALSE in case of error.
  3585. (tir_sta): Change sign of psect.
  3586. (tir_ctl): Ditto.
  3587. (tir_cmd): Fix cast. Makes tir_table static const.
  3588. (etir_cmd): Add quarter_relocs argument, makes etir_table const,
  3589. add argument to explain.
  3590. (analyze_etir): Initialize maxptr, add quarter_relocs
  3591. declaration, move some declarations into inner scopes.
  3592. Handle quarter_relocs and STO_IMM.
  3593. (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
  3594. (_bfd_vms_slurp_relocs): New function.
  3595. (_bfd_vms_decode_relocs): New function.
  3596. (sto_imm): Rewritten.
  3597. (start_first_etbt_record): New function.
  3598. (start_another_etbt_record): Ditto.
  3599. (etir_output_check): Ditto.
  3600. (defer_reloc_p): Ditto.
  3601. (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
  3602. a for-loop. Correctly deals with contents, deals with .vmsdebug,
  3603. rewritte relocations handling.
  3604. (_bfd_vms_write_tbt): Removed.
  3605. (_bfd_vms_write_dbg): Ditto.
  3606. * vms-misc.c: Update copyright year, Fix comments.
  3607. (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
  3608. (maybe_adjust_record_pointer_for_object): New function.
  3609. (_bfd_vms_get_first_record): New function, replaces ...
  3610. (_bfd_vms_get_record): .. removed.
  3611. (_bfd_vms_get_object_record): New function.
  3612. (_bfd_vms_get_object_record): New function.
  3613. (vms_get_remaining_object_record): New function, replaces ...
  3614. (_bfd_vms_get_next_record): ... removed.
  3615. (add_new_contents): Removed.
  3616. (_bfd_save_vms_section): Removed.
  3617. (_bfd_get_vms_section): Removed.
  3618. (_bfd_vms_output_flush): Write in VAR format.
  3619. (new_symbol): Don't make UND section.
  3620. * vms-hdr.c: Update copyright year, update list of record handled.
  3621. (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
  3622. (_bfd_vms_write_hdr): Strip vms and unix patches,
  3623. add comments, truncate module name at 31 characters,
  3624. use constants instead of hard-coded value,
  3625. write BFD version instead of a fixed string.
  3626. (_bfd_vms_slurp_ihd): New function.
  3627. (_bfd_vms_slurp_isd): Ditto.
  3628. (_bfd_vms_slurp_ihs): Ditto.
  3629. (new_module): Ditto.
  3630. (parse_module): Ditto
  3631. (build_module_list): Ditto.
  3632. (module_find_nearest_line): Ditto.
  3633. (_bfd_vms_find_nearest_dst_line): Ditto.
  3634. (vms_slurp_debug): Ditto.
  3635. (_bfd_vms_slurp_dbg): Ditto.
  3636. (_bfd_vms_slurp_tbt): Ditto.
  3637. (_bfd_vms_write_dbg): Ditto.
  3638. (_bfd_vms_write_tbt): Ditto.
  3639. * vms-gsd.c: Update copyright year, update list of records handled.
  3640. (EVAX_LITERALS_NAME): New macro.
  3641. (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
  3642. (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
  3643. (register_universal_symbol): New function and prototype.
  3644. (_bfd_vms_slurp_gsd): Fix indentations and casts,
  3645. improve debug messages,
  3646. use constants instead of hard-coded value,
  3647. fix missing endianness conversion,
  3648. handle global symbol (SYMG).
  3649. (bfd_vms_set_section_flags): New function.
  3650. (_bfd_vms_write_gsd): Don't write .vmsdebug section,
  3651. handle section literals,
  3652. fix indentation,
  3653. handle section bfd and vms flags,
  3654. don't output LIB$INITIALIZE symbol,
  3655. fix handling of weak symbols,
  3656. fix evax vs vax procedure descriptor,
  3657. handle absolute symbols.
  3658. * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
  3659. BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
  3660. * makefile.vms (DEFS): Fix flags for VMS.
  3661. * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
  3662. * bfd-in2.h: Regenerated.
  3663. * libbfd.h: Regenerated.
  3664. 2009-02-20 Cary Coutant <ccoutant@google.com>
  3665. * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
  3666. in struct stat.
  3667. 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
  3668. PR gas/7059
  3669. * coffcode.h (coff_write_object_contents): Don't let the string
  3670. table offset overflow the s_name field when using long section names.
  3671. 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
  3672. * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
  3673. control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
  3674. * coff-mips.c (mips_ecoff_backend_data): Likewise.
  3675. * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
  3676. control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
  3677. (bfd_pmac_xcoff_backend_data): Likewise.
  3678. * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
  3679. (bfd_xcoff_aix5_backend_data): Likewise.
  3680. (xcoff64_write_object_contents): Delete unused long_section_names
  3681. local variable.
  3682. * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
  3683. name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
  3684. struct non-const.
  3685. * coffcode.h (documentation): Update to describe long section names.
  3686. (COFFLONGSECTIONCATHELPER): New helper macro.
  3687. (BLANKOR1TOODD): Likewise.
  3688. (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
  3689. (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
  3690. (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
  3691. (bfd_coff_set_long_section_names_allowed): New function.
  3692. (bfd_coff_set_long_section_names_disallowed): Likewise.
  3693. (struct bfd_coff_backend_data): Add new backend hook function
  3694. pointer _bfd_coff_set_long_section_names.
  3695. (bfd_coff_set_long_section_names): New backend hook.
  3696. (coff_write_object_contents): Only generate long section names if
  3697. bfd_coff_long_section_names() indicates they are currently enabled.
  3698. (bfd_coff_std_swap_table): Make non-const, and initialise long
  3699. section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
  3700. (ticoff0_swap_table): Likewise to both.
  3701. (ticoff1_swap_table): Again, likewise to both.
  3702. * coffgen.c (make_a_section_from_file): Allow long section names
  3703. as inputs even if not currently allowed for outputs.
  3704. * ecoff.c (_bfd_ecoff_no_long_sections): New function.
  3705. * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
  3706. * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3707. * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3708. * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
  3709. * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3710. * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3711. * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
  3712. * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3713. * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3714. * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
  3715. * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
  3716. * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
  3717. * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
  3718. * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
  3719. * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
  3720. * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
  3721. * libcoff-in.h: Update copyright year to cause updated copyright
  3722. year in generated libcoff.h, and fix typo.
  3723. * libcoff.h: Regenerated.
  3724. * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
  3725. (_bfd_ecoff_no_long_sections): Add prototype.
  3726. * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
  3727. * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
  3728. defined by an including .c file.
  3729. * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
  3730. long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
  3731. (ticoff1_swap_table): Likewise to both.
  3732. 2009-02-18 Christophe Lyon <christophe.lyon@st.com>
  3733. * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
  3734. stub. Catch default case error.
  3735. (arm_map_one_stub): Add missing Thumb mapping symbol.
  3736. 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
  3737. PR 9841
  3738. * elf32-avr.c: Handle case where no local symbos exist correctly.
  3739. 2009-02-16 Christophe Lyon <christophe.lyon@st.com>
  3740. bfd/
  3741. * elf32-arm.c (arm_long_branch_stub,
  3742. arm_thumb_v4t_long_branch_stub,
  3743. arm_thumb_thumb_long_branch_stub,
  3744. arm_thumb_arm_v4t_long_branch_stub,
  3745. arm_thumb_arm_v4t_short_branch_stub,
  3746. arm_pic_long_branch_stub):
  3747. Renamed to elf32_arm_stub_long_branch_any_any,
  3748. elf32_arm_stub_long_branch_v4t_arm_thumb,
  3749. elf32_arm_stub_long_branch_thumb_only,
  3750. elf32_arm_stub_long_branch_v4t_thumb_arm,
  3751. elf32_arm_stub_short_branch_v4t_thumb_arm,
  3752. elf32_arm_stub_long_branch_any_any_pic.
  3753. (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
  3754. arm_thumb_thumb_stub_long_branch,
  3755. arm_thumb_arm_v4t_stub_long_branch,
  3756. arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
  3757. Renamed to arm_stub_long_branch_any_any,
  3758. arm_stub_long_branch_v4t_arm_thumb,
  3759. arm_stub_long_branch_thumb_only,
  3760. arm_stub_long_branch_v4t_thumb_arm,
  3761. arm_stub_short_branch_v4t_thumb_arm,
  3762. arm_stub_long_branch_any_any_pic.
  3763. 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3764. * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
  3765. in branch offset check.
  3766. 2009-02-15 Alan Modra <amodra@bigpond.net.au>
  3767. * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
  3768. add toc.symndx and toc.add.
  3769. (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
  3770. Set up toc.add.
  3771. (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
  3772. callers.
  3773. (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
  3774. (branch_reloc_hash_match): New function, extracted from..
  3775. (ppc64_elf_tls_optimize): ..here.
  3776. (ppc64_elf_relocate_section): Properly set addends when optimizing
  3777. tls sequences. Avoid unnecessary reading and writing of insns.
  3778. Only redo reloc when symbol changed. Bypass symbol checks when
  3779. using tlsld_got.
  3780. * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
  3781. (branch_reloc_hash_match): New function, extracted from..
  3782. (ppc_elf_tls_optimize): ..here.
  3783. (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
  3784. Don't clear addend on zapped __tls_get_addr reloc.
  3785. 2009-02-12 Nick Clifton <nickc@redhat.com>
  3786. PR 9827
  3787. * elflink.c (bfd_elf_final_link): When counting the relocations,
  3788. if the header size has not been set yet then assume that it will
  3789. match the output section's reloc type.
  3790. 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
  3791. * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
  3792. relocatable link.
  3793. 2009-02-09 Alan Modra <amodra@bigpond.net.au>
  3794. * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
  3795. (find_function): Likewise.
  3796. (pasted_function): Don't error if no prior function found.
  3797. (discover_functions): Revert 2008-12-10 change. Extend first
  3798. function range to start of section.
  3799. 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3800. * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
  3801. functions to C90.
  3802. * elf64-hppa.h: Likewise.
  3803. 2009-02-06 Joseph Myers <joseph@codesourcery.com>
  3804. * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
  3805. .sbss handling.
  3806. 2009-02-04 Alan Modra <amodra@bigpond.net.au>
  3807. * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
  3808. Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
  3809. 2009-02-03 Sandip Matte <sandip@rmicorp.com>
  3810. * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
  3811. * archures.c (bfd_mach_mips_xlr): Define.
  3812. * bfd-in2.h: Regenerate.
  3813. * cpu-mips.c (I_xlr): Define.
  3814. (arch_info_struct): Add XLR entry.
  3815. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
  3816. (mips_set_isa_flags): Handle bfd_mach_mips_xlr
  3817. (mips_mach_extensions): Add XLR entry.
  3818. 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
  3819. * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
  3820. 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
  3821. * configure.in: AC_SUBST pdfdir.
  3822. * Makefile.am: Add install-pdf, install-pdf-am
  3823. and install-pdf-recursive targets. Define pdfdir.
  3824. * doc/Makefile.am: Define pdf__strip_dir. Add
  3825. install-pdf and install-pdf-am targets.
  3826. * po/Make-in: Add install-pdf target.
  3827. * configure: Regenerate.
  3828. * Makefile.in: Regenerate
  3829. * doc/Makefile.in: Regenerate.
  3830. 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
  3831. * bfd-in2.h: Regenerate.
  3832. * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
  3833. fields from n_entries to n_slots where appropriate, update comments.
  3834. (HOWTO): Add TLS relocations.
  3835. (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
  3836. (enum elf_m68k_got_offset_size): New enum.
  3837. (struct elf_m68k_got_entry.type): Move field to ...
  3838. (struct elf_m68k_got_entry_key): ... here. Update all uses.
  3839. (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
  3840. functions.
  3841. (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
  3842. functions.
  3843. (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
  3844. fields into n_entries array. Update comments.
  3845. (elf_m68k_init_got): Simplify, update all uses.
  3846. (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
  3847. (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
  3848. GOT entries; update name, update all uses.
  3849. (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
  3850. (elf_m68k_get_got_entry): Update.
  3851. (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
  3852. simplify.
  3853. (elf_m68k_remove_got_entry_type): Simplify.
  3854. (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
  3855. (elf_m68k_can_merge_gots): Update.
  3856. (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
  3857. (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
  3858. GOT entries, simplify.
  3859. (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
  3860. (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
  3861. field, remove obsoleted local_n_entries field.
  3862. (elf_m68k_partition_multi_got_2): New static function.
  3863. (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
  3864. update.
  3865. (elf_m68k_remove_got_entry_type): Update.
  3866. (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
  3867. (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
  3868. update of sgot->size and srelgot->size.
  3869. (elf_m68k_gc_sweep_hook): Update.
  3870. (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
  3871. (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
  3872. TLS relocations.
  3873. * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
  3874. * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
  3875. 2009-02-02 DJ Delorie <dj@redhat.com>
  3876. * elf32-mep.c (config_names): Regenerate configuration.
  3877. 2009-02-02 Alan Modra <amodra@bigpond.net.au>
  3878. * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
  3879. (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
  3880. * elf.c (bfd_elf_get_str_section): Make static.
  3881. (bfd_elf_find_section): Delete.
  3882. * libbfd.h: Regenerate.
  3883. 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  3884. * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
  3885. (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
  3886. 2009-01-31 Alan Modra <amodra@bigpond.net.au>
  3887. * elflink.c (on_needed_list): New function.
  3888. (elf_link_add_object_symbols): Link in --as-needed libs if they
  3889. satisfy undefined symbols in other libs.
  3890. 2009-01-30 Julian Brown <julian@codesourcery.com>
  3891. * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
  3892. EXEC_P or DYNAMIC flags, and skip sections which are being linked
  3893. with --just-symbols (-R).
  3894. 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
  3895. * dwarf2.c (read_rangelist): Use read_address to read low_pc and
  3896. high_pc in order to properly sign-extend VMAs.
  3897. 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  3898. Mark Shinwell <shinwell@codesourcery.com>
  3899. Catherine Moore <clm@codesourcery.com>
  3900. * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
  3901. 2009-01-28 Catherine Moore <clm@codesourcery.com>
  3902. * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
  3903. SEC_LOAD for dynamic relocation sections.
  3904. 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
  3905. * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
  3906. (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
  3907. the size of local TLS data.
  3908. 2009-01-27 Andreas Schwab <schwab@suse.de>
  3909. * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
  3910. architectures in the archive.
  3911. 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
  3912. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
  3913. <R_CRIS_32_DTPREL>: Correct relocation value.
  3914. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
  3915. <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
  3916. symbols with non-default visibility.
  3917. 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
  3918. * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
  3919. describing the trampolines.
  3920. (ppc_elf_relocate_section): Update relocs to describe the
  3921. trampolines.
  3922. 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  3923. * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
  3924. branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
  3925. and R_PARISC_PCREL12F relocations.
  3926. 2009-01-24 Alan Modra <amodra@bigpond.net.au>
  3927. PR 6022
  3928. * elflink.c (find_version_for_sym): New function split out from,
  3929. but without export_dynamic test, ..
  3930. (_bfd_elf_link_assign_sym_version): ..here.
  3931. (_bfd_elf_export_symbol): Use it.
  3932. 2009-01-23 Alan Modra <amodra@bigpond.net.au>
  3933. * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
  3934. (struct elf_info_failed, struct elf_find_verdep_info): Move to..
  3935. * elflink.c: ..here, somewhat modified.
  3936. * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
  3937. _bfd_elf_link_find_version_dependencies,
  3938. _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
  3939. _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
  3940. _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
  3941. declare..
  3942. * elflink.c: ..and make static here.
  3943. (_bfd_elf_link_find_version_dependencies): Adjust for removal
  3944. of output_bfd from struct elf_find_verdep_info.
  3945. (_bfd_elf_link_assign_sym_version): Similarly adjust to use
  3946. struct elf_info_failed.
  3947. (bfd_elf_size_dynamic_sections): Adjust.
  3948. 2009-01-22 Alan Modra <amodra@bigpond.net.au>
  3949. PR 6832
  3950. * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
  3951. after comp_unit_find_line call.
  3952. 2009-01-21 Nick Clifton <nickc@redhat.com>
  3953. PR 9769
  3954. * vmsutil.c (vms_file_stats_name): Remove use of unsupported
  3955. tm_gmtoff field in struct tm.
  3956. 2009-01-21 Alan Modra <amodra@bigpond.net.au>
  3957. * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
  3958. * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
  3959. sections in soft-icache lines unless non_ia_text. Don't add
  3960. rodata if doing so would exceed line size.
  3961. 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
  3962. * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
  3963. types than bfd_link_hash_indirect, before early return, call
  3964. _bfd_elf_link_hash_copy_indirect.
  3965. 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
  3966. * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
  3967. * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
  3968. * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
  3969. (elf_backend_obj_attrs_order): New define.
  3970. * elfxx-target.h (elf_backend_obj_attrs_order): New define.
  3971. (elfNN_bed): Add elf_backend_obj_attrs_order.
  3972. 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
  3973. * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
  3974. (obj_attr_size): Likewise.
  3975. (write_obj_attribute): Likewise.
  3976. (_bfd_elf_copy_obj_attributes): Likewise.
  3977. (_bfd_elf_parse_attributes): Likewise.
  3978. * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
  3979. (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
  3980. (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
  3981. (ATTR_TYPE_HAS_NO_DEFAULT): New define.
  3982. * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
  3983. with macros.
  3984. 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
  3985. * elf-attrs.c (is_default_attr): Support defaultless attributes.
  3986. (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
  3987. (bfd_elf_add_obj_attr_string): Likewise.
  3988. (bfd_elf_add_obj_attr_int_string): Likewise.
  3989. (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
  3990. * elf-bfd.h (struct obj_attribute): Document new flag bit.
  3991. * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
  3992. Tag_nodefaults has no default value.
  3993. (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
  3994. comment to reflect the new state.
  3995. 2009-01-19 Alan Modra <amodra@bigpond.net.au>
  3996. PR 9695
  3997. * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
  3998. (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
  3999. (adjust_z_magix): Delete dead code handling QMAGIC.
  4000. 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
  4001. * coffcode.h (styp_to_sec_flags): Correct interpretation of
  4002. IMAGE_SCN_MEM_DISCARDABLE.
  4003. 2009-01-16 Alan Modra <amodra@bigpond.net.au>
  4004. * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
  4005. SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
  4006. * configure.in (commonbfdlib): Delete.
  4007. (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
  4008. (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
  4009. is available, not just for linux.
  4010. * po/SRC-POTFILES.in: Regenerate.
  4011. * Makefile.in: Regenerate.
  4012. * configure: Regenerate.
  4013. 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
  4014. Julian Brown <julian@codesourcery.com>
  4015. * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
  4016. ARM attributes in ABI 2.07.
  4017. * elf32-arm.c (get_secondary_compatible_arch): New function.
  4018. (set_secondary_compatible_arch): New function.
  4019. (tag_cpu_arch_combine): New function.
  4020. (elf32_arm_copy_one_eabi_other_attribute): Delete function.
  4021. (elf32_arm_copy_eabi_other_attribute_list): Delete function.
  4022. (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
  4023. make it fit with order_01243.
  4024. Add support for Tag_also_compatible_with,
  4025. Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
  4026. Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
  4027. Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
  4028. Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
  4029. Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
  4030. Tag_VFP_arch and Tag_ABI_FP_16bit_format.
  4031. Rework the way unknown attributes are handled.
  4032. Defer errors until all attributes have been processed.
  4033. 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
  4034. * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
  4035. bfd_elf_add_obj_attr_int_string.
  4036. Read Tag_compatibility from its new location in the attribute array,
  4037. rather than the attribute list.
  4038. (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
  4039. bfd_elf_add_obj_attr_int_string.
  4040. (_bfd_elf_parse_attributes): Likewise.
  4041. (_bfd_elf_merge_object_attributes): There's now only one
  4042. Tag_compatibility, and it's in the array, not the list.
  4043. * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
  4044. Tag_compatibility.
  4045. (bfd_elf_add_obj_attr_compat): Rename to
  4046. bfd_elf_add_obj_attr_int_string.
  4047. (bfd_elf_add_proc_attr_compat): Rename to
  4048. bfd_elf_add_proc_attr_int_string.
  4049. * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
  4050. Tag_compatibility.
  4051. 2009-01-15 Douglas B Rupp <rupp@gnat.com>
  4052. * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
  4053. (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
  4054. (vmsutil.lo): Add dependency rule.
  4055. * Makefile.in: Regenerate.
  4056. * config.bfd (ia64*-*-*vms*): Add case.
  4057. * configure.in (bfd_elf64_ia64_vms_vec): Add case.
  4058. * configure: Regenerate.
  4059. * vmsutil.c: New file.
  4060. * vmsutil.h: New file.
  4061. * elf-bfd.h (struct bfd_elf_special_section): Change type of
  4062. attr to bfd_vma.
  4063. * elfxx-ia64.c (elfNN_vms_post_process_headers,
  4064. elfNN_vms_section_processing, elfNN_vms_final_write_processing,
  4065. elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
  4066. elfNN_vms_object_p): New functions
  4067. * targets.c (bfd_elf64_ia64_vms_vec): New target.
  4068. 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
  4069. PR ld/9727
  4070. * elflink.c (elf_gc_sweep): Exclude the group section if the
  4071. first member of the section group is excluded.
  4072. 2009-01-14 Alan Modra <amodra@bigpond.net.au>
  4073. PR 9735
  4074. * syms.c (_bfd_stab_section_find_nearest_line): Don't free
  4075. saved filename, use bfd_alloc rather than bfd_malloc for it.
  4076. 2009-01-13 Alan Modra <amodra@bigpond.net.au>
  4077. * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
  4078. 2009-01-13 Alan Modra <amodra@bigpond.net.au>
  4079. * elf32-spu.c (remove_cycles): Always set call->max_depth.
  4080. 2009-01-12 Alan Modra <amodra@bigpond.net.au>
  4081. * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
  4082. 2009-01-12 Alan Modra <amodra@bigpond.net.au>
  4083. * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
  4084. num_lines_log2.
  4085. (struct got_entry): Add br_addr.
  4086. (struct call_info): Add priority.
  4087. (struct function_info): Add lr_store and sp_adjust.
  4088. (spu_elf_setup): Init line_size_log2 and num_lines_log2.
  4089. (spu_elf_find_overlays): For soft-icache, mark any section within cache
  4090. area as an overlay, and check that no other overlays exist. Look up
  4091. icache overlay manager entry sym.
  4092. (BRA_STUBS, BRA, BRASL): Define.
  4093. (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
  4094. (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
  4095. in branch insn.
  4096. (count_stub, build_stub): Support soft-icache.
  4097. (build_spuear_stubs, process_stubs): Adjust build_stub call.
  4098. (spu_elf_size_stubs): Size soft-icache stubs.
  4099. (overlay_index): New function.
  4100. (spu_elf_build_stubs): Make static. Support soft-icache.
  4101. (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
  4102. (find_function_stack_adjust): Save lr store and stack adjust insn
  4103. offsets.
  4104. (maybe_insert_function): Adjust find_function_stack_adjust call.
  4105. (mark_functions_via_relocs): Retrieve priority.
  4106. (remove_cycles): Only warn about pruned arcs when stack_analysis.
  4107. (sort_calls): Sort by priority first.
  4108. (mark_overlay_section): Ignore .ovl.init.
  4109. (sum_stack): Only print when stack_analysis.
  4110. (print_one_overlay_section): New function, extracted from..
  4111. (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
  4112. (spu_elf_stack_analysis): Only print when htab->stack_analysis.
  4113. (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
  4114. analysis. Call spu_elf_build_stubs.
  4115. (spu_elf_relocate_section): For soft-icache encode overlay index
  4116. into addresses.
  4117. (spu_elf_output_symbol_hook): Support soft-icache.
  4118. (spu_elf_modify_program_headers: Likewise.
  4119. * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
  4120. num_regions to num_lines. Add line_size and max_branch.
  4121. (enum _ovly_flavour): Add ovly_soft_icache.
  4122. (spu_elf_build_stubs): Delete.
  4123. 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  4124. * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
  4125. relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
  4126. 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
  4127. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
  4128. <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
  4129. the program, the known offset starts at the negative size of the
  4130. TLS section.
  4131. <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
  4132. Similar.
  4133. 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
  4134. * config.bfd: Add lm32-*-rtems*.
  4135. 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
  4136. * coff-ppc.c: Add 2009 to Copyright.
  4137. * elf32-cris.c: Likewise.
  4138. * elflink.c: Likewise.
  4139. 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
  4140. * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
  4141. gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
  4142. 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
  4143. PR ld/9679
  4144. * elflink.c (elf_merge_st_other): New.
  4145. (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
  4146. hide them if needed.
  4147. (elf_link_add_object_symbols): Updated.
  4148. 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
  4149. PR ld/9676
  4150. * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
  4151. ref_dynamic and dynamic_def fields when setting def_regular
  4152. to 1.
  4153. 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
  4154. PR 9682
  4155. * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
  4156. literal.
  4157. For older changes see ChangeLog-2008
  4158. Copyright (C) 2009 Free Software Foundation, Inc.
  4159. Copying and distribution of this file, with or without modification,
  4160. are permitted in any medium without royalty provided the copyright
  4161. notice and this notice are preserved.
  4162. Local Variables:
  4163. mode: change-log
  4164. left-margin: 8
  4165. fill-column: 74
  4166. version-control: never
  4167. End: