ChangeLog-2005 190 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275
  1. 2005-12-31 Valeriy E. Ushakov <uwe@NetBSD.org>
  2. Kaz Kojima <kkojima@rr.iij4u.or.jp>
  3. * elf32-sh.c (sh_elf_relocate_section): Don't reset relocation
  4. for R_SH_REL32 in shared objects if the symbol is locally called.
  5. 2005-12-31 Alan Modra <amodra@bigpond.net.au>
  6. * elf64-ppc.c (ppc64_elf_relocate_section): Adjust relocs against
  7. opd section sym when opd has been edited. Use correct addend
  8. when determining branch 'y' bit and branch overflow. Adjust and
  9. save opd relocs for ld -r too.
  10. 2005-12-30 Eric Christopher <echristo@apple.com>
  11. * elfxx-mips.c (mips_elf_record_global_got_symbol): Add assert
  12. to verify we have a got.
  13. (_bfd_mips_elf_check_relocs): Add R_MIPS_TLS_GOTTPREL to relocs
  14. needing a GOT.
  15. 2005-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  16. * configure.host (hppa*64*-*-hpux*): Set host64 to true.
  17. 2005-12-29 Nick Clifton <nickc@redhat.com>
  18. * hash.c (bfd_hash_set_default_size): Add more entries to the
  19. hash_size_primes table.
  20. * stabs.c (_bfd_link_section_stabs): Use bfd_hash_table_init
  21. rather than bfd_hash_table_init_n(...,251) so that the size of the
  22. hash table can be controlled by the user.
  23. 2005-12-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  24. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
  25. instead of !info->shared.
  26. 2005-12-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
  27. * vaxlinux.h: New file. (TRAD_CORE_EXTRA_SIZE_ALLOWED): Define.
  28. (HOST_MACHINE_ARCH): Define. This allows cross-building vax-linux
  29. hosted binutils.
  30. 2005-12-27 Nathan Sidwell <nathan@codesourcery.com>
  31. * elf32-mt.c (mt_elf_merge_private_bfd_data): Do not allow mixing
  32. object files from different mt variants.
  33. 2005-12-27 Leif Ekblad <leif@rdos.net>
  34. * config.bfd: Add support for RDOS targets.
  35. 2005-12-27 Marty Leisner <leisner@rochester.rr.com>
  36. * dwarf2.c (lookup_symbol_in_function_table): Check for a function
  37. name before passing it to strcmp.
  38. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  39. * elf.c (elf_find_function): Don't ignore section syms.
  40. Simplify filename logic.
  41. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  42. * elf32-ppc.c (add_stub_sym): Pass info rather than htab.
  43. Use different names for pic vs non-pic, '.' instead of '_'.
  44. (allocate_dynrelocs): Adjust add_stub_sym call.
  45. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  46. * elf.c (bfd_section_from_shdr): Treat invalid reloc sections as
  47. normal sections rather than returning false.
  48. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  49. * coff-h8300.c (h8300_reloc16_extra_cases): Use input section
  50. "output_offset" instead of link order "offset".
  51. * coff-h8500.c (extra_case): Likewise.
  52. * coff-w65.c (w65_reloc16_extra_cases): Likewise.
  53. * coff-z80.c (extra_case): Likewise.
  54. * coff-z8k.c (extra_case): Likewise.
  55. * linker.c (default_indirect_link_order): Likewise, "size" too.
  56. * ecoff.c (ecoff_indirect_link_order): Likewise.
  57. 2005-12-27 Alan Modra <amodra@bigpond.net.au>
  58. * Makefile.am: Run "make dep-am".
  59. * Makefile.in: Regenerate.
  60. * po/SRC-POTFILES.in: Regenerate.
  61. 2005-12-24 Alan Modra <amodra@bigpond.net.au>
  62. * aix5ppc-core.c: Remove duplicate prototypes.
  63. (xcoff64_core_file_matches_executable_p): Provide implementation
  64. for !AIX_5_CORE.
  65. * corefile.c (generic_core_file_matches_executable_p): Correct
  66. syntax error in prototype.
  67. * libbfd-in.h (generic_core_file_matches_executable_p): Delete.
  68. * libbfd.h: Regenerate.
  69. * bfd-in2.h: Regenerate.
  70. 2005-12-23 Michael Weiser <michael@weiser.dinsnail.net>
  71. PR 1150
  72. * elf-bfd.h (struct elf_backend_data): New field
  73. 'elf_backend_ignore_undef_symbol'.
  74. * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL
  75. if not already defined.
  76. (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field.
  77. * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function.
  78. * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and
  79. prototype.
  80. * elflink.c (elf_link_output_extsym): Check
  81. elf_backend_ignore_undef_symbol before reporting an undefined
  82. symbol in a shared library.
  83. 2005-12-23 Joel Brobecker <brobecker@adacore.com>
  84. * corefile.c (generic_core_file_matches_executable_p): New function.
  85. * libbfd-in.h (generic_core_file_matches_executable_p): Add
  86. declaration.
  87. * libbfd.h: Regenerate.
  88. * hpux-core.c: ANSIfy function declarations and prototypes.
  89. (thread_section_p): Manually expand bfd_section_name macro
  90. to make it clear that parameter ABFD is not used.
  91. (hpux_core_core_file_matches_executable_p): Delete, replaced
  92. by macro pointing to generic_core_file_matches_executable_p.
  93. * aix386-core.c: Replace core_file_matches_executable_p null
  94. implementation by generic_core_file_matches_executable_p by
  95. using a macro.
  96. * aix5ppc-core.c: Likewise.
  97. * cisco-core.c: Likewise.
  98. * hppabsd-core.c: Likewise.
  99. * irix-core.c: Likewise.
  100. * lynx-core.c: Likewise.
  101. * mach-o.c: Likewise.
  102. * netbsd-core.c: Likewise.
  103. * osf-core.c: Likewise.
  104. * ptrace-core.c: Likewise.
  105. * sco5-core.c: Likewise.
  106. * trad-core.c: Likewise.
  107. 2005-12-19 David Heine <dlheine@tensilica.com>
  108. * elf32-xtensa.c (action_list_count, xlate_map_entry, xlate_map,
  109. xlate_offset_with_removed_text, build_xlate_map, free_xlate_map): New.
  110. (check_section_ebb_pcrels_fit): Build new xlate_map, use it and free it
  111. when finished.
  112. 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
  113. Second part of ms1 to mt renaming.
  114. * archures.c (bfd_arch_mt): Renamed.
  115. (bfd_mt_arch): Renamed.
  116. (bfd_archures_list): Adjusted.
  117. * bfd-in2.h: Rebuilt.
  118. * config.bfd (mt): Remove special case targ_archs.
  119. (mt-*-elf): Rename bfd_elf32_mt_vec.
  120. * configure: Rebuilt.
  121. * configure.in (bfd_elf32_mt_vec): Renamed.
  122. (selarchs) Remove mt special case.
  123. * cpu-mt.c (arch_info_struct): Adjust.
  124. (bfd_mt_arch): Renamed, adjust.
  125. * elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
  126. mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
  127. mt_elf_howto_table): Renamed, adjusted.
  128. (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
  129. elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
  130. mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
  131. mt_elf_print_private_bfd_data): Renamed, adjusted.
  132. (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
  133. ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
  134. bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
  135. elf_backend_gc_sweep_hook, elf_backend_check_relocs,
  136. eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
  137. bfd_elf32_bfd_copy_private_bfd_data,
  138. bfd_elf32_bfd_merge_private_bfd_data,
  139. bfd_elf32_bfd_print_private_bfd_data): Adjusted.
  140. * libbfd.h: Regenerated.
  141. * reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
  142. BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
  143. BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
  144. * targets.c (bfd_elf32_mt_vec): Renamed.
  145. (_bfd_target_vector): Adjusted.
  146. 2005-12-13 H.J. Lu <hongjiu.lu@intel.com>
  147. PR ld/2008
  148. * elf.c (_bfd_elf_setup_sections): Return FALSE if
  149. elf_linked_to_section will be set to NULL.
  150. * format.c (bfd_check_format_matches): Don't check the default
  151. target twice.
  152. 2005-12-13 Alan Modra <amodra@bigpond.net.au>
  153. * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in
  154. shared libs to resolve locally.
  155. 2005-12-12 Paul Brook <paul@codesourcery.com>
  156. * bfd-in2.h: Regenerate.
  157. * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and
  158. BFD_RELOC_ARM_PCREL_JUMP.
  159. (check_use_blx): New function.
  160. (bfd_elf32_arm_process_before_allocation): Don't allocate glue if
  161. using BLX.
  162. (elf32_arm_final_link_relocate): Perform bl<->blx conversion for
  163. R_ARM_CALL and R_ARM_THM.
  164. (elf32_arm_get_eabi_attr_int): New function.
  165. (elf32_arm_size_dynamic_sections): Call check_use_blx.
  166. * libbfd.h: Regenerate.
  167. * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP.
  168. 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
  169. * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
  170. BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
  171. (cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
  172. * Makefile.in: Rebuilt.
  173. * config.bfd: Replace ms1 arch with mt.
  174. * configure.in: Replace ms1 files with mt files.
  175. * configure: Rebuilt.
  176. * elf32-mt.c: Renamed from elf32-ms1.c. Update include files.
  177. * cpu-mt.c: Renamed from cpu-ms1.c.
  178. 2005-12-12 Alan Modra <amodra@bigpond.net.au>
  179. * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
  180. 2005-12-10 Alan Modra <amodra@bigpond.net.au>
  181. * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
  182. to test for linking shared libs, not info->shared.
  183. 2005-12-08 Alan Modra <amodra@bigpond.net.au>
  184. * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
  185. (ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
  186. (add_stub_sym): New function.
  187. (allocate_dynrelocs): Call add_stub_sym.
  188. (ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
  189. when emit_stub_syms.
  190. * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
  191. 2005-12-08 Alan Modra <amodra@bigpond.net.au>
  192. * reloc.c (enum complain_overflow): Correct comments.
  193. (bfd_check_overflow): Combine complain_overflow_bitfield and
  194. complain_overflow_signed code.
  195. (_bfd_relocate_contents): Likewise.
  196. (bfd_howto_32): Use complain_overflow_dont.
  197. * elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change.
  198. * bfd-in2.h: Regenerate.
  199. 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
  200. * elf.c (assign_section_numbers): Remove extra code in the last
  201. change.
  202. 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
  203. Andreas Schwab <schwab@suse.de>
  204. PR binutils/1991
  205. * elf.c (assign_section_numbers): Always use the output section
  206. when setting up sh_link for SHF_LINK_ORDER.
  207. 2005-12-07 Thiemo Seufer <ths@networkno.de>
  208. H.J. Lu <hongjiu.lu@intel.com>
  209. PR ld/1932
  210. * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
  211. and hidden arguments.
  212. * bfd.c (bfd_hide_symbol): Removed.
  213. * bfd-in2.h: Regenerated.
  214. * elflink.c (bfd_elf_record_link_assignment): Handle hidden
  215. symbols which were provided by a linker script.
  216. 2005-12-06 Paul Gilliam <pgilliam@us.ibm.com>
  217. * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
  218. 2005-11-18 Mark Kettenis <kettenis@gnu.org>
  219. * elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel
  220. pseudo-section. Make sure .reg section comes after the proc
  221. section it's generated from.
  222. 2005-12-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  223. * elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check.
  224. (m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug.
  225. (m32r_elf_gc_sweep_hook): Likewise.
  226. (m32r_elf_check_relocs): Likewise.
  227. 2005-11-24 Alan Modra <amodra@bigpond.net.au>
  228. * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
  229. * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
  230. * libbfd.c (_bfd_generic_match_sections_by_type): Delete.
  231. * targets.c (bfd_match_sections_by_type): Don't define.
  232. (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
  233. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
  234. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
  235. * bfd-in2.h: Regenerate.
  236. * libbfd.h: Regenerate.
  237. 2005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
  238. Thiemo Seufer <ths@networkno.de>
  239. * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
  240. R_MIPS_PC16.
  241. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  242. (bfd_elf32_bfd_reloc_type_lookup): Don't handle
  243. BFD_RELOC_16_PCREL_S2.
  244. * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
  245. R_MIPS_PC16.
  246. (mips_elf64_howto_table_rela): Likewise.
  247. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  248. (bfd_elf64_bfd_reloc_type_lookup): Don't handle
  249. BFD_RELOC_16_PCREL_S2.
  250. * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
  251. R_MIPS_PC16.
  252. (elf_mips_howto_table_rela): Likewise.
  253. (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
  254. (bfd_elf32_bfd_reloc_type_lookup): Don't handle
  255. BFD_RELOC_16_PCREL_S2.
  256. * elfxx-mips.c: Formatting fixes.
  257. (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
  258. and R_MIPS_PC16 identically.
  259. 2005-11-23 Frederic Riss <frederic.riss@st.com>
  260. * elfcode.h (elf_object_p): Delay the setting of start_address
  261. until we're sure the backend matches the binary.
  262. 2005-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  263. * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
  264. manner as bfd_decode_symclass.
  265. 2005-11-18 Alan Modra <amodra@bigpond.net.au>
  266. * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
  267. on branches to same section.
  268. 2005-11-17 Randolph Chung <tausq@debian.org>
  269. * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
  270. hppa64-hp-hpux11.11.
  271. (elf64_hppa_section_from_phdr): New function.
  272. (elf_backend_section_from_phdr): Define.
  273. 2005-11-11 Nick Clifton <nickc@redhat.com>
  274. PR 1150
  275. * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an
  276. undefined symbol if it is optional.
  277. (_bfd_mips_elf_merge_symbol_attribute): Make sure that the
  278. optional flag is merged as well as the visibility.
  279. * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype.
  280. (elf_backend_merge_symbol_attribute): Define.
  281. 2005-11-08 Nathan Sidwell <nathan@codesourcery.com>
  282. Add ms2 support
  283. * archures.c (bfd_mach_ms2): Define.
  284. * cpu-ms1.c (arch_info_struct): Add ms2 stanza.
  285. * elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
  286. (ms1_elf_merge_private_bfd_data): Remove unused variables. Add
  287. correct merging logic, with workaround.
  288. (ms1_elf_print_private_bfd_data): Add ms2 case.
  289. * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
  290. * libbfd.h: Regenerated.
  291. * bfd-in2.h: Regenerated.
  292. 2005-11-07 Steve Ellcey <sje@cup.hp.com>
  293. * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
  294. if compiler is not GCC.
  295. * configure: Regenerate
  296. 2005-11-07 Steve Ellcey <sje@cup.hp.com>
  297. * configure: Regenerate after modifying bfd/warning.m4.
  298. 2005-11-07 Steve Ellcey <sje@cup.hp.com>
  299. * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
  300. 2005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
  301. * configure.in: Check for fopen64.
  302. * libbfd-in.h (real_fopen): New prototype.
  303. * configure, config.in, libbfd.h: Regenerated.
  304. * bfdio.c (real_fopen): New function.
  305. * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
  306. * cache.c (bfd_open_file): Likewise.
  307. 2005-11-03 Thiemo Seufer <ths@networkno.de>
  308. * elfxx-mips.c (mips_elf_calculate_relocation): Handle only
  309. forced local symbols here.
  310. (mips_elf_create_dynamic_relocation): Likewise.
  311. (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
  312. 2005-11-03 Alan Modra <amodra@bigpond.net.au>
  313. * elf.c (elf_fake_sections): When calculating tbss size, just use
  314. the last link_order.
  315. (assign_file_positions_for_segments): Likewise.
  316. * elflink.c (bfd_elf_final_link): Likewise.
  317. (elf_reloc_link_order): Correct comment.
  318. 2005-11-02 Alan Modra <amodra@bigpond.net.au>
  319. PR ld/1775
  320. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
  321. parentheses.
  322. 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
  323. * Makefile.am: Run "make dep-am".
  324. * Makefile.in: Regenerated.
  325. * dep-in.sed: Replace " ./" with " ".
  326. 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
  327. * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
  328. define.
  329. * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
  330. * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
  331. if SCO5_CORE is defined.
  332. 2005-10-29 Mark Kettenis <kettenis@gnu.org>
  333. * Makefile.am: Run "make dep-am".
  334. * Makefile.in: Regenerate.
  335. 2005-10-28 Joel Brobecker <brobecker@adacore.com>
  336. From Eric Botcazou <botcazou@adacore.com>
  337. * coffcode.h (coff_compute_section_file_positions): Fix small
  338. error in preprocessor directives.
  339. 2005-10-28 Joel Brobecker <brobecker@adacore.com>
  340. Mostly from Eric Botcazou <botcazou@adacore.com>
  341. * rs6000-core.c: ANSIfy all function definitions.
  342. Add missing function prototypes.
  343. (ptr_to_uint): New type.
  344. (rs6000coff_core_p): Use it as intermediate step in casts.
  345. (rs6000coff_core_file_matches_executable_p): Likewise.
  346. * xcoff-target.h (rs6000coff_core_p): Fix prototype.
  347. (rs6000coff_core_file_matches_executable_p): Likewise.
  348. 2005-10-28 H.J. Lu <hongjiu.lu@intel.com>
  349. PR binutils/1472
  350. * aoutx.h (NAME (aout, machine_type)): Handle
  351. bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa,
  352. bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a
  353. and bfd_mach_sparc_v9b.
  354. 2005-10-28 Hans-Peter Nilsson <hp@axis.com>
  355. PR ld/1567
  356. * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
  357. complain_on_overflow field to complain_overflow_dont.
  358. 2005-10-27 Alan Modra <amodra@bigpond.net.au>
  359. PR 973
  360. * cache.c (enum cache_flag): New.
  361. (close_one): Save file mtime.
  362. (bfd_cache_lookup): Add flag arg, adjust all users.
  363. (bfd_cache_lookup_worker): Likewise.
  364. (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
  365. not open.
  366. (cache_bflush): Similarly, and return success of file not open.
  367. (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
  368. (cache_bstat): Use CACHE_NO_SEEK_ERROR.
  369. * bfdwin.c (bfd_get_file_window): Seek into file in place of
  370. using bfd_cache_lookup.
  371. * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
  372. (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise.
  373. * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete.
  374. * libbfd.h: Regenerate.
  375. * hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat.
  376. * sco5-core.c (sco5_core_file_p): Likewise.
  377. * trad-core.c (trad_unix_core_file_p): Likewise.
  378. * cache.c: Reorganize file to avoid forward reference.
  379. 2005-10-26 Alan Modra <amodra@bigpond.net.au>
  380. * cache.c (bfd_cache_lookup_worker): Don't abort on failing to
  381. reopen file.
  382. (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on
  383. bfd_cache_lookup failure.
  384. (cache_bread, cache_bwrite): Return 0 on the same.
  385. * bfdwin.c (bfd_get_file_window): Likewise.
  386. * hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
  387. * sco5-core.c (sco5_core_file_p): Likewise.
  388. * trad-core.c (trad_unix_core_file_p): Likewise.
  389. 2005-10-26 Alan Modra <amodra@bigpond.net.au>
  390. * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
  391. rather than bfd_perror. Print file name. Internationalise.
  392. 2005-10-26 Alan Modra <amodra@bigpond.net.au>
  393. * cache.c (bfd_open_file): Set bfd_error_system_call on failure
  394. to open file.
  395. (bfd_cache_lookup_worker): Remove check that file pos is in
  396. unsigned long range. Print system error before aborting.
  397. 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
  398. * Makefile.am: Add rules for coff-z80 and cpu-z80.
  399. * Makefile.in: Regenerated.
  400. * archures.c: Add bfd_arch_z80 and support for it.
  401. * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC.
  402. (coff_set_flags): Add case bfd_arch_z80.
  403. * config.bfd: Add z80coff_vec.
  404. * configure.in: Add z80coff_vec.
  405. * reloc.c: Add BFD_RELOC_Z80_DISP8
  406. * targets.c: Add z80coff_vec.
  407. * coff-z80.c: New file
  408. * cpu-z80.c: New file
  409. * configure: Regenerated.
  410. * libbfd.h: Regenerated.
  411. * bfd-in2.h: Regenerated.
  412. 2005-10-26 Alan Modra <amodra@bigpond.net.au>
  413. PR ld/1540
  414. * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to
  415. elf_backend_data with pointer to bfd_link_info.
  416. (_bfd_elf_link_hash_copy_indirect): Likewise.
  417. * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle
  418. direct and indirect symbols both having dynamic link info.
  419. * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise.
  420. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
  421. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  422. * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise.
  423. * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
  424. * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  425. * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
  426. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  427. * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  428. * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
  429. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  430. * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  431. * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
  432. * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol.
  433. * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype.
  434. * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
  435. 2005-10-25 Alan Modra <amodra@bigpond.net.au>
  436. * po/SRC-POTFILES.in: Regenerate.
  437. * po/bfd.pot: Regenerate.
  438. 2005-10-24 Jie Zhang <jie.zhang@analog.com>
  439. * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
  440. warning.
  441. 2005-10-24 Bernd Schmidt <bernd.schmidt@analog.com>
  442. * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
  443. (bfin_imm16_reloc): Always add in the addend. Don't fetch existing
  444. contents from section.
  445. (bfin_relocate_section): Rework so as to not call special_functions.
  446. Handle the relocation stack here. Treat pcrel24 relocs specially.
  447. 2005-10-24 Alan Modra <amodra@bigpond.net.au>
  448. * elflink.c (elf_link_input_bfd): Don't use linker_mark and
  449. SEC_EXCLUDE to test for sections dropped from output. Instead,
  450. use bfd_section_removed_from_list on normal sections. Don't
  451. attempt to handle symbols with unknown reserved section indices.
  452. * linker.c (_bfd_generic_link_output_symbols): Don't use
  453. linker_mark to test for symbols belonging to dropped sections.
  454. Do allow absolute symbols.
  455. 2005-10-24 Alan Modra <amodra@bigpond.net.au>
  456. * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
  457. group sections.
  458. 2005-10-24 Jan Beulich <jbeulich@novell.com>
  459. * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
  460. set of indirect operands.
  461. 2005-10-24 Alan Modra <amodra@bigpond.net.au>
  462. * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
  463. group sections.
  464. 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
  465. * coff-rs6000.c (rs6000coff_vec): Initialize
  466. _bfd_init_private_section_data with
  467. _bfd_generic_init_private_section_data.
  468. (pmac_xcoff_vec): Likewise.
  469. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  470. (aix5coff64_vec): Likewise.
  471. 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
  472. PR ld/1487
  473. * elf-bfd.h (_bfd_generic_init_private_section_data): New.
  474. (_bfd_elf_init_private_section_data): New.
  475. * elf.c (elf_fake_sections): Don't set SHF_GROUP for
  476. relocatable link.
  477. (bfd_elf_set_group_contents): Don't handle relocatable link
  478. specially.
  479. (assign_section_numbers): If it isn't called by assembler,
  480. use the output section of elf_linked_to_section for
  481. SHF_LINK_ORDER.
  482. (_bfd_elf_init_private_section_data): New.
  483. (_bfd_elf_copy_private_section_data): Call it.
  484. * libbfd-in.h (_bfd_generic_init_private_section_data): New.
  485. * libbfd.c (_bfd_generic_init_private_section_data): New.
  486. * targets.c (BFD_JUMP_TABLE_COPY): Add
  487. _bfd_generic_init_private_section_data.
  488. (bfd_init_private_section_data): Likewise.
  489. * bfd-in2.h: Regenerated.
  490. * libbfd.h: Likewise.
  491. 2005-10-23 Alan Modra <amodra@bigpond.net.au>
  492. * elf64-ppc.c (dec_dynrel_count): Don't report errors for local
  493. syms in gc'd sections.
  494. (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS.
  495. (elf_backend_action_discarded): Define.
  496. (ppc64_elf_action_discarded): New function.
  497. 2005-10-19 Paul Brook <paul@codesourcery.com>
  498. * elf32-arm.c (find_arm_elf_section_entry): New function.
  499. (get_arm_elf_section_data): Use it.
  500. (unrecord_section_with_arm_elf_section_data): Use it.
  501. 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
  502. * coff-rs6000.c (rs6000coff_vec): Initialize
  503. _bfd_match_sections_by_type with
  504. _bfd_generic_match_sections_by_type.
  505. (pmac_xcoff_vec): Likewise.
  506. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  507. (aix5coff64_vec): Likewise.
  508. 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
  509. PR ld/1467
  510. * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
  511. (_bfd_generic_match_sections_by_type): New. Defined.
  512. * elf.c (_bfd_elf_match_sections_by_type): New.
  513. * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
  514. * bfd-in2.h: Regenerated.
  515. * libbfd.h: Likewise.
  516. * libbfd.c (_bfd_generic_match_sections_by_type): New.
  517. * targets.c (BFD_JUMP_TABLE_LINK): Initialize
  518. _bfd_match_sections_by_type with
  519. _bfd_generic_match_sections_by_type.
  520. (bfd_target): Add _bfd_match_sections_by_type.
  521. 2005-10-08 Paul Brook <paul@codesourcery.com>
  522. * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h.
  523. (NUM_KNOWN_ATTRIBUTES): Define.
  524. (aeabi_attribute, aeabi_attribute_list): Define.
  525. (elf32_arm_obj_tdata): Add known_eabi_attributes and
  526. other_eabi_attributes.
  527. (uleb128_size, is_default_attr, eabi_attr_size,
  528. elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
  529. elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
  530. elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int,
  531. elf32_arm_add_eabi_attr_compat, copy_eabi_attributes,
  532. elf32_arm_merge_eabi_attributes): New functions.
  533. (elf32_arm_copy_private_bfd_data): Copy EABI object attributes.
  534. (elf32_arm_fake_sections): Handle .ARM.attributes.
  535. (elf32_arm_parse_attributes): New function.
  536. (elf32_arm_section_from_shdr): Use it.
  537. (bfd_elf32_bfd_final_link): Define.
  538. 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
  539. * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
  540. GCC.
  541. (elf32_arm_size_dynamic_sections): Likewise.
  542. * ecofflink.c (bfd_ecoff_debug_one_external): Likewise.
  543. * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
  544. * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
  545. * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  546. * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
  547. * elf32-s390.c (elf_s390_check_relocs): Likewise.
  548. (elf_s390_size_dynamic_sections): Likewise.
  549. * elf32-sh.c (sh_elf_check_relocs): Likewise.
  550. * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count)
  551. (ppc64_elf_size_dynamic_sections): Likewise.
  552. * elf64-s390.c (elf_s390_check_relocs): Likewise.
  553. (elf_s390_size_dynamic_sections): Likewise.
  554. * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
  555. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
  556. (_bfd_sparc_elf_size_dynamic_sections): Likewise.
  557. * ieee.c (ieee_slurp_section_data): Likewise.
  558. * oasys.c (oasys_slurp_section_data): Likewise.
  559. 2005-10-04 Bob Wilson <bob.wilson@acm.org>
  560. * archive.c: Add missing SUBSECTION for documentation.
  561. * bfd.c: Likewise.
  562. * cache.c: Likewise.
  563. * corefile.c: Likewise.
  564. * format.c: Likewise.
  565. * init.c: Likewise.
  566. * libbfd.c: Likewise.
  567. * opncls.c: Likewise.
  568. * elf.c: Remove blank line after SECTION heading.
  569. * reloc.c: Change "howto manager" SECTION to a SUBSECTION.
  570. 2005-10-04 Nick Clifton <nickc@redhat.com>
  571. * elf32-arm.c (get_arm_elf_section_data): Cache the last pointer
  572. matched so that the typical case of scanning for the previous
  573. section to last one can be handled quickly.
  574. 2005-10-03 David Heine <dlheine@tensilica.com>
  575. * elf32-xtensa.c (relocations_reach): Skip range check for
  576. absolute literals.
  577. 2005-10-03 Alan Modra <amodra@bigpond.net.au>
  578. * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
  579. synthetic syms.
  580. 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
  581. * Makefile.am: Run "make dep-am".
  582. * Makefile.in: Regenerated.
  583. * aclocal.m4: Likewise.
  584. 2005-09-30 Catherine Moore <clm@cm00re.com>
  585. * Makefile.am: Bfin support.
  586. * Makefile.in: Regenerated.
  587. * aclocal.m4: Regenerated.
  588. * archures.c (bfd_mach_bfin): New.
  589. (bfd_arch_bfin): New.
  590. bfd-in.h (bfd_bfin_elf32_create_embedded_relocs): New.
  591. * bfd-in2.h: Regenerated.
  592. * config.bfd: Bfin support.
  593. * configure: Regenerated.
  594. * configure.in: Bfin support.
  595. * libbfd.h: Regenerated.
  596. * reloc.c: Add BFD relocations for Bfin.
  597. * targets.c (bfd_elf32_bfin_vec): New.
  598. * cpu-bfin.c: New file.
  599. * elf32-bfin.c: New file.
  600. 2005-09-30 Alan Modra <amodra@bigpond.net.au>
  601. * elf64-ppc.c (ppc_type_of_stub): Check both func desc and func
  602. entry sym before deciding no stub is needed.
  603. (ppc64_elf_size_stubs): When calculating branch destination,
  604. don't use func desc sym for old ABI objects unless func entry
  605. is undefined.
  606. 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
  607. PR binutils/1321
  608. * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ...
  609. (_bfd_elf_setup_sections): This.
  610. * elf.c: Likewise.
  611. * elfcode.h (elf_object_p): Likewise.
  612. * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER.
  613. (_bfd_elf_copy_private_section_data): Likewise.
  614. 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
  615. * elflink.c (elf_fixup_link_order): Report locations for mixed
  616. ordered and unordered input sections.
  617. 2005-09-22 James E. Wilson <wilson@specifix.com>
  618. * dwarf2.c (struct funcinfo): Delete nesting_level field.
  619. (lookup_address_in_function_table): Delete code to set funcinfo
  620. caller_func field. Delete local curr_func.
  621. (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size.
  622. Delete code setting funcinfo nesting_level field. Add code to set
  623. funcinfo caller_func field.
  624. 2005-09-20 James E. Wilson <wilson@specifix.com>
  625. * dwarf2.c (find_abstract_instance_name): Don't early exit when name
  626. set. For DW_AT_name case, only set name if not already set. Handle
  627. DW_AT_MIPS_linkage_name.
  628. 2005-09-20 Alan Modra <amodra@bigpond.net.au>
  629. * elflink.c (_bfd_elf_merge_symbol): Simplify.
  630. 2005-09-19 Alan Modra <amodra@bigpond.net.au>
  631. * elf64-ppc.c (ppc_build_one_stub): Replace assertion that long
  632. branch offset is in range with an error. Print full stub name on
  633. errors.
  634. (ppc_size_one_stub): Print full stub name on errors.
  635. (group_sections): Warn if section size exceeds group size.
  636. (ppc64_elf_size_stubs): Continue relaxing when stub types change.
  637. 2005-09-09 Kevin Buettner <kevinb@redhat.com>
  638. * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h):
  639. Include.
  640. (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New
  641. functions.
  642. (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
  643. 2005-09-09 Richard Earnshaw <richard.earnshaw@arm.com>
  644. * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP
  645. and SHT_ARM_ATTRIBUTES.
  646. 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
  647. * elflink.c (elf_get_linked_section_vma): Fix a typo in comment.
  648. * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise.
  649. 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
  650. PR ld/1263
  651. * elflink.c (elf_link_add_object_symbols): Abort for
  652. --just-symbols on DSO.
  653. 2005-09-08 Paul Brook <paul@codesourcery.com>
  654. * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC.
  655. * bfd-in2.h: Regenerate.
  656. * libbfd.h: Regenerate.
  657. 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
  658. PR ld/1301
  659. * elflink.c (_bfd_elf_merge_symbol): Don't check undefined
  660. symbol introduced by "ld -u" for TLS.
  661. 2005-09-02 Paul Brook <paul@codesourcery.com>
  662. * libbdf.h: Regenerate.
  663. * bfd-in2.h: Regenerate.
  664. * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and
  665. BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
  666. 2005-09-01 Dmitry Diky <diwil@spec.ru>
  667. * elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust
  668. local symbols and move it to
  669. (msp430_elf_relax_adjust_locals): New function - walk over the
  670. sections in the bfd and adjust relocations as necessary.
  671. 2005-08-31 DJ Delorie <dj@redhat.com>
  672. * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary &
  673. address operator, as that breaks GCC's strict aliasing rules.
  674. (elf_i386_size_dynamic_sections): Avoid the need for type
  675. punning.
  676. * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary
  677. & address operator, as that breaks GCC's strict aliasing
  678. rules.
  679. (elf_x86_64_size_dynamic_sections): Avoid the need for type
  680. punning.
  681. 2005-08-30 Phil Edwards <phil@codesourcery.com>
  682. * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead.
  683. 2005-08-29 H.J. Lu <hongjiu.lu@intel.com>
  684. PR ld/1247
  685. * elfxx-ia64.c (allocate_fptr): Check undefined symbol.
  686. 2005-08-29 Steven J. Hill <sjhill@realitydiluted.com>
  687. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise
  688. 'value' to avoid compile time warning message.
  689. 2005-08-26 Christian Groessler <chris@groessler.org>
  690. * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask
  691. of HOWTO.
  692. (coff_z8k_select_reloc): Remove.
  693. (SELECT_RELOC): Remove.
  694. (coff_z8k_reloc_type_lookup): New function.
  695. (coff_bfd_reloc_type_lookup): Define.
  696. * configure.in: Add cofflink.lo to z8kcoff_vec.
  697. * configure: Regenerate.
  698. * reloc.c: (bfd_reloc_code_type): Add z8k relocations.
  699. (bfd_install_relocation): Don't clear reloc_entry->addend for
  700. coff-z8k target.
  701. * bfd-in2.h: Regenerate.
  702. * libbfd.h: Regenerate.
  703. 2005-08-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  704. * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
  705. 2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
  706. PR ld/1208
  707. * elf-hppa.h (elf_hppa_relocate_section): Print out the name
  708. of unresolvable relocation.
  709. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  710. * elf32-arm.c (elf32_arm_relocate_section): Likewise.
  711. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  712. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  713. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  714. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  715. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  716. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  717. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  718. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  719. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  720. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
  721. 2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  722. * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
  723. to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
  724. 2005-08-18 Alan Modra <amodra@bigpond.net.au>
  725. * coff-a29k.c: Delete.
  726. * cpu-a29k.c: Delete.
  727. * Makefile.am: Remove mention of a29k files.
  728. * aoutf1.h: Remove a29k support.
  729. * aoutx.h: Likewise.
  730. * archures.c: Likewise.
  731. * coffcode.h: Likewise.
  732. * config.bfd: Likewise.
  733. * configure.in: Likewise.
  734. * ieee.c: Likewise.
  735. * mipsbsd.c: Likewise.
  736. * pdp11.c: Likewise.
  737. * sparclynx.c: Likewise.
  738. * targets.c: Likewise.
  739. * Makefile.in: Regenerate.
  740. * configure: Regenerate.
  741. * bfd-in2.h: Regenerate.
  742. * po/SRC-POTFILES.in: Regenerate.
  743. 2005-08-18 Alan Modra <amodra@bigpond.net.au>
  744. * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
  745. zero size dynamic variables.
  746. * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
  747. * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
  748. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
  749. * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
  750. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
  751. * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
  752. * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
  753. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
  754. * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  755. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
  756. * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
  757. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
  758. * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  759. * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
  760. * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  761. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
  762. 2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
  763. PR binutils/1179
  764. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
  765. instead of vma.
  766. (_bfd_dwarf2_find_line): Likewise.
  767. 2005-08-17 Alan Modra <amodra@bigpond.net.au>
  768. * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
  769. SEC_LINKER_CREATED.
  770. (mmix_elf_final_link): Check that section hasn't already been
  771. removed before removing.
  772. * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED.
  773. (mmo_canonicalize_symtab): Likewise for reg section.
  774. 2005-08-17 Alan Modra <amodra@bigpond.net.au>
  775. * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later.
  776. * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called
  777. without any got section.
  778. 2005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
  779. * cofflink.c (_bfd_coff_generic_relocate_section): Correct
  780. comment.
  781. 2005-08-17 Alan Modra <amodra@bigpond.net.au>
  782. * elflink.c (_bfd_elf_define_linkage_sym): Don't call
  783. bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol.
  784. (_bfd_elf_link_renumber_dynsyms): Formatting.
  785. (struct elf_gc_sweep_symbol_info): New.
  786. (elf_gc_sweep_symbol): Rewrite.
  787. (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call.
  788. Call _bfd_elf_link_renumber_dynsyms.
  789. (bfd_elf_gc_sections): Adjust elf_gc_sweep call.
  790. 2005-08-16 Alan Modra <amodra@bigpond.net.au>
  791. * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
  792. when relocatable.
  793. 2005-08-15 Bob Wilson <bob.wilson@acm.org>
  794. * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
  795. of EM_XTENSA and EM_XTENSA_OLD.
  796. 2005-08-16 Alan Modra <amodra@bigpond.net.au>
  797. * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
  798. * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
  799. from..
  800. (_bfd_elf_create_got_section): ..here.
  801. (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC.
  802. (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_.
  803. * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use
  804. _bfd_elf_define_linkage_sym.
  805. * elf32-frv.c (_frv_create_got_section): Likewise.
  806. * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
  807. 2005-08-15 Paul Brook <paul@codesourcery.com>
  808. * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
  809. R_ARM_PC24.
  810. 2005-08-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  811. PR ld/1135
  812. * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
  813. .plt, .dlt, .sdata, .sbss and .tbss.
  814. 2005-08-12 Dmitry Diky <diwil@spec.ru>
  815. * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
  816. referenced by .section + DISPLACEMENT.
  817. 2005-08-10 James E. Wilson <wilson@specifix.com>
  818. * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
  819. DW_OP_addr is only opcode in location before using it.
  820. 2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
  821. * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
  822. 2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
  823. Nick Clifton <nickc@redhat.com>
  824. * aix5ppc-core.c (xcoff64_core_p): Constify return_value
  825. variable. Also, do not use core_hdr macro as it evaluates to a
  826. cast of an lvalue which is no longer supported by GCC 4.0.
  827. 2005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
  828. * archures.c (bfd_mach_msp21): New MSP430 machine number.
  829. * bfd-in2.h: Regenerate.
  830. * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx
  831. variants.
  832. 2005-08-07 Nick Clifton <nickc@redhat.com>
  833. Paul Brook <paul@codesourcery.com>
  834. PR 1147
  835. * elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
  836. (elf32_arm_close_and_cleanup): New function - walk over the
  837. sections in the bfd that is being closed removing them from the
  838. list of recorded sections.
  839. (unrecord_section_via_map_over_sections): New helper function.
  840. (record_section_with_arm_elf_section_data): Call bfd_malloc
  841. instead of bfd_alloc. Remove unneeded abfd parameter.
  842. (elf32_arm_new_section_hook): Do not pass bfd to
  843. record_section_with_arm_elf_section_data.
  844. * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not
  845. already defined by the target.
  846. 2005-08-05 Fred Fish <fnf@specifix.com>
  847. * dwarf2.c (read_rangelist): Use addr_size instead of offset_size
  848. to determine how many bytes to read from each rangelist entry.
  849. 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
  850. * bfd.c (bfd_hide_symbol): New.
  851. * bfd-in2.h: Regenerated.
  852. 2005-08-04 H.J. Lu <hongjiu.lu@intel.com>
  853. * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
  854. large common symbol and a normal common symbol, always turn
  855. the large common symbol into a normal one.
  856. 2005-08-04 Alan Modra <amodra@bigpond.net.au>
  857. * elf32-ppc.c (struct elf_linker_section): Replace sym_val field
  858. with sym.
  859. (ppc_elf_relocate_section): Adjust for above.
  860. (create_sdata_sym): New function.
  861. (ppc_elf_create_linker_section): Call it.
  862. (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs.
  863. Create sdata syms for all SDA relocs.
  864. (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_
  865. and _SDA2_BASE_.
  866. (ppc_elf_set_sdata_syms): Delete.
  867. * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT
  868. and DT_FINI tags unless associated section has input.
  869. (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete.
  870. (_bfd_elf_provide_section_bound_symbols): Delete.
  871. * bfd-in.h (_bfd_elf_provide_symbol): Delete.
  872. (_bfd_elf_provide_section_bound_symbols): Delete.
  873. * bfd-in2.h: Regenerate.
  874. 2005-08-04 Alan Modra <amodra@bigpond.net.au>
  875. * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to..
  876. * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here.
  877. * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename.
  878. * bfd-in2.h: Regenerate.
  879. 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
  880. * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
  881. only if it isn't NULL.
  882. 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
  883. * elf32-i386.c (elf_howto_table): Undo the overflow change for
  884. R_386_PC16 made on 2005-07-18.
  885. * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow
  886. change for R_X86_64_PC16 made on 2005-07-18.
  887. 2005-08-03 Alan Modra <amodra@bigpond.net.au>
  888. * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
  889. elf.hgot throughout file.
  890. 2005-08-03 Alan Modra <amodra@bigpond.net.au>
  891. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
  892. _GLOBAL_OFFSET_TABLE_ for > 32k GOT.
  893. 2005-08-02 Andreas Schwab <schwab@suse.de>
  894. * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
  895. (elfNN_ia64_relax_section): Reallocate .rela.got when .got has
  896. changed.
  897. (allocate_dynrel_entries): Look only at GOT relocations when
  898. only_got is true.
  899. (elfNN_ia64_size_dynamic_sections): Set only_got to false before
  900. calling allocate_dynrel_entries.
  901. 2005-08-02 Nick Clifton <nickc@redhat.com>
  902. PR 1147
  903. * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef
  904. and make the mapcount field unsigned.
  905. (struct section_list): New: Used to keep track of which sections
  906. have an _arm_elf_section_data structure.
  907. (record_section_with_arm_elf_section_data): New function.
  908. (get_arm_elf_section_data): New function.
  909. (unrecord_section_with_arm_elf_section_data): New function.
  910. (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data.
  911. (elf32_arm_new_section_hook): Call
  912. record_section_with_arm_elf_section_data.
  913. (elf32_arm_write_section): Use get_arm_elf_section_data and
  914. unrecord_section_with_arm_elf_section_data.
  915. 2005-08-01 Richard Sandiford <richard@codesourcery.com>
  916. * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
  917. of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
  918. 2005-07-30 David Daney <ddaney@avtrex.com>
  919. * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
  920. 2005-07-29 David Daney <ddaney@avtrex.com>
  921. * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
  922. if it is in the *ABS* section.
  923. 2005-07-29 Paul Brook <paul@codesourcery.com>
  924. * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
  925. * bfd-in2.h: Regenerate.
  926. * libbfd.h: Regenerate.
  927. 2005-07-29 Paul Brook <paul@codesourcery.com>
  928. * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
  929. * bfd-in2.h: Regeenrate.
  930. * libbfd.h: Regenerate.
  931. 2005-07-29 Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
  932. * peXXigen.c (pe_print_edata): Compute the size of the export
  933. table from the size field in the DataDictionary and not the size
  934. of the section. Some linkers embed the export table inside a
  935. larger section.
  936. 2005-07-29 Alan Modra <amodra@bigpond.net.au>
  937. * elf-bfd.h (struct elf_backend_data): Add action_discarded.
  938. (enum action_discarded): Move from..
  939. * elflink.c (enum action_discarded): ..here.
  940. (_bfd_elf_default_action_discarded): Rename from elf_action_discarded.
  941. Remove target specific section checks.
  942. (elf_link_input_bfd): Adjust.
  943. * elfxx-target.h (elf_backend_action_discarded): Define.
  944. (elfNN_bed): Init new field.
  945. * bfd-in.h (_bfd_elf_default_action_discarded): Declare.
  946. * bfd-in2.h: Regenerate.
  947. * elf-hppa.h (elf_hppa_action_discarded): New function.
  948. * elf32-hppa.c (elf_backend_action_discarded): Define.
  949. * elf64-hppa.c (elf_backend_action_discarded): Define.
  950. * elf32-ppc.c (ppc_elf_action_discarded): New function.
  951. (elf_backend_action_discarded): Define.
  952. 2005-07-27 Alan Modra <amodra@bigpond.net.au>
  953. * elflink.c (fix_syms): Handle symbols defined in input sections.
  954. 2005-07-27 Jan Beulich <jbeulich@novell.com>
  955. * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
  956. (elf64_x86_64_info_to_howto): Use them.
  957. 2005-07-27 Alan Modra <amodra@bigpond.net.au>
  958. * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
  959. regardless of strength of previous definition.
  960. 2005-07-26 Alan Modra <amodra@bigpond.net.au>
  961. * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
  962. (bfd_elf_gc_sections): Allow -gc-sections when -shared.
  963. * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
  964. 2005-07-26 Alan Modra <amodra@bigpond.net.au>
  965. * elflink.c (elf_gc_sweep): Move gcc_except_table code..
  966. (bfd_elf_gc_sections): ..to here.
  967. 2005-07-25 DJ Delorie <dj@redhat.com>
  968. * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
  969. * libbfd.h: Regenerate.
  970. * bfd-in2.h: Regenerate.
  971. * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
  972. R_M32C_HI8, R_M32C_HI16.
  973. (m32c_reloc_map): Likewise.
  974. (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
  975. 2005-07-25 Jan Hubicka <jh@suse.cz>
  976. H.J. Lu <hongjiu.lu@intel.com>
  977. * elf-bfd.h (_bfd_elf_large_com_section): New.
  978. * elf.c (_bfd_elf_large_com_section): New. Defined.
  979. * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
  980. (elf64_x86_64_elf_section_from_bfd_section): New.
  981. (elf64_x86_64_symbol_processing): New.
  982. (elf64_x86_64_common_definition): New.
  983. (elf64_x86_64_common_section_index): New.
  984. (elf64_x86_64_common_section): New.
  985. (elf64_x86_64_merge_symbol): New.
  986. (elf64_x86_64_additional_program_headers): New.
  987. (elf64_x86_64_special_sections): New.
  988. (elf_backend_section_from_bfd_section): New. Defined.
  989. (elf_backend_add_symbol_hook): Likewise.
  990. (elf_backend_common_section_index): Likewise.
  991. (elf_backend_common_section): Likewise.
  992. (elf_backend_common_definition): Likewise.
  993. (elf_backend_merge_symbol): Likewise.
  994. (elf_backend_special_sections): Likewise.
  995. (elf_backend_additional_program_headers): Likewise.
  996. 2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
  997. * elf-bfd.h (elf_backend_data): Add common_definition,
  998. common_section_index, common_section, and merge_symbol.
  999. (_bfd_elf_common_definition): New.
  1000. (_bfd_elf_common_section_index): New.
  1001. (_bfd_elf_common_section): New.
  1002. * elf.c (elf_fake_sections): Don't clear sh_flags.
  1003. * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
  1004. if it is available.
  1005. (is_global_data_symbol_definition): Call backend
  1006. common_definition instead of checking SHN_COMMON.
  1007. (elf_link_add_object_symbols): Likewise.
  1008. (elf_link_output_extsym): Call backend common_section_index
  1009. for common section index.
  1010. (_bfd_elf_common_definition): New.
  1011. (_bfd_elf_common_section_index): New.
  1012. (_bfd_elf_common_section): New.
  1013. * elfxx-target.h (elf_backend_common_definition): New.
  1014. (elf_backend_common_section_index): New.
  1015. (elf_backend_common_section): New.
  1016. (elf_backend_merge_symbol): New.
  1017. (elfNN_bed): Initialize common_definition, common_section_index,
  1018. common_section, and merge_symbol.
  1019. * section.c (BFD_FAKE_SECTION): New.
  1020. (STD_SECTION): Use it.
  1021. * bfd-in2.h: Regenerated.
  1022. 2005-07-23 Olaf Hering <olh@suse.de>
  1023. * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
  1024. callback.
  1025. 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
  1026. * config.bfd: Remove i[3-7]86-*-rtemself*.
  1027. Remove sparc-*-rtemself*.
  1028. 2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  1029. * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
  1030. R_M32R_REL32.
  1031. 2005-07-21 Ben Elliston <bje@gnu.org>
  1032. * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
  1033. (BFD32_BACKENDS): Likewise, remove m68klynx.lo.
  1034. (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c.
  1035. (cf-m68klynx.lo, m68klynx.lo): Remove targets.
  1036. * Makefile.in: Regenerate.
  1037. * cf-m68klynx.c: Remove.
  1038. * m68klynx.c: Likewise.
  1039. * configure.in (m68klynx_aout_vec): Remove vector.
  1040. (m68klynx_coff_vec): Likewise.
  1041. * configure: Regenerate.
  1042. * targets.c (m68klynx_aout_vec): Remove extern.
  1043. (m68klynx_coff_vec): Likewise.
  1044. (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec.
  1045. * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c.
  1046. 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  1047. * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32.
  1048. (m32r_reloc_map): Likewise.
  1049. (m32r_elf_relocate_section): Likewise.
  1050. (m32r_elf_gc_sweep_hook): Likewise.
  1051. (m32r_elf_check_relocs): Likewise.
  1052. 2005-07-18 Nick Clifton <nickc@redhat.com>
  1053. * reloc.c: Add M32C and MS1 relocs.
  1054. * bfd-in2.h: Regenerate.
  1055. * libbfd.h: Regenerate.
  1056. 2005-07-18 Nick Clifton <nickc@redhat.com>
  1057. * config.bfd: Move m32c entry to correct location.
  1058. * archures.c: Likewise.
  1059. * configure.in: Likewise.
  1060. * configure: Regenerate.
  1061. * targets.c: Move ms1 vector to correct location.
  1062. 2005-07-18 Jan Beulich <jbeulich@novell.com>
  1063. * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
  1064. for R_386_PC16.
  1065. * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
  1066. handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
  1067. 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
  1068. PR ld/1021
  1069. PR ld/1031
  1070. * elflink.c (elf_link_add_object_symbols): Also append the version
  1071. name to non-hidden absolute symbols that are functions.
  1072. 2005-07-16 Alan Modra <amodra@bigpond.net.au>
  1073. * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
  1074. for zero size sections. Don't set .sbss syms here.
  1075. * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
  1076. 2005-07-16 Alan Modra <amodra@bigpond.net.au>
  1077. * Makefile.am: Run "make dep-am".
  1078. * Makefile.in: Regenerate.
  1079. 2005-07-15 Bob Wilson <bob.wilson@acm.org>
  1080. * elf32-xtensa.c (vsprint_msg): Add prototype.
  1081. (build_encoding_error_message): Delete. Code moved into....
  1082. (elf_xtensa_do_reloc): ....here, and changed to give better
  1083. error messages for out of range literals.
  1084. 2005-07-15 Alan Modra <amodra@bigpond.net.au>
  1085. * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param.
  1086. (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those
  1087. defined in output sections. Call bfd_elf_record_link_assignment.
  1088. * bfd-in.h (bfd_elf_record_link_assignment): Update prototype.
  1089. * bfd-in2.h: Regenerate.
  1090. 2005-07-14 Jim Blandy <jimb@redhat.com>
  1091. Add support for m32c-*-elf (Renesas m32c and m16c).
  1092. * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
  1093. (ALL_MACHINES_CFILES): Add cpu-m32c.c.
  1094. (BFD32_BACKENDS): Add elf32-m32c.lo.
  1095. (BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
  1096. (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
  1097. * Makefile.in: Regenerated.
  1098. * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
  1099. arch and mach codes.
  1100. (bfd_m32c_arch): New arch info object.
  1101. (bfd_archures_list): List bfd_m32c_arch.
  1102. * bfd-in2.h: Regenerated.
  1103. * config.bfd: Add case for the m32c.
  1104. * configure.in: Add case for the m32c.
  1105. * configure: Regenerated.
  1106. * cpu-m32c.c, elf32-m32c.c: New files.
  1107. * libbfd.h: Regenerated.
  1108. * targets.c (bfd_elf32_m32c_vec): Declare.
  1109. (_bfd_target_vector): List bfd_elf32_m32c_vec.
  1110. 2005-07-14 Alan Modra <amodra@bigpond.net.au>
  1111. * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
  1112. (_bfd_elf_provide_section_bound_symbols): Remove param name.
  1113. Formatting.
  1114. * bfd-in2.h: Regenerate.
  1115. * elflink.c (bfd_elf_gc_sections): Don't call generic function.
  1116. (_bfd_elf_provide_symbol): Formatting.
  1117. (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just
  1118. create section relative syms.
  1119. (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions.
  1120. * elf32-ppc.c (ppc_elf_set_sdata_syms): Use
  1121. _bfd_elf_provide_section_bound_symbols.
  1122. * reloc.c (bfd_mark_used_section): Delete.
  1123. (bfd_generic_gc_sections): Don't call the above.
  1124. 2005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
  1125. PR 1063
  1126. * cache.c (bfd_last_cache): Initialise to NULL.
  1127. 2005-07-14 Daniel Marques <marques@cs.cornell.edu>
  1128. Nick Clifton <nickc@redhat.com>
  1129. * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
  1130. Alpha binaries and issue a helpful error message.
  1131. (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
  1132. symbol index to 15 to allow for binaries produced by DEC
  1133. compilers.
  1134. 2005-07-13 Steve Ellcey <sje@cup.hp.com>
  1135. * bfd.m4 (BFD_NEED_DECLARATION): Remove.
  1136. 2005-07-12 Alan Modra <amodra@bigpond.net.au>
  1137. * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
  1138. when !can_plt_call.
  1139. 2005-07-12 Alan Modra <amodra@bigpond.net.au>
  1140. * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
  1141. 2005-07-12 Alan Modra <amodra@bigpond.net.au>
  1142. * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
  1143. 2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
  1144. * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
  1145. change.
  1146. 2005-07-08 Paul Koning <pkoning@equallogic.com>
  1147. * dwarf2.c (read_address): Check sign_extend_vma to handle targets
  1148. where addresses are sign extended.
  1149. 2005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
  1150. * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
  1151. Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
  1152. i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
  1153. sparc*-*-rtemsaout* as removed
  1154. 2005-07-08 Alan Modra <amodra@bigpond.net.au>
  1155. * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
  1156. of the usual sections are found.
  1157. * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
  1158. Strip .dynbss if it is zero size.
  1159. * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
  1160. * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
  1161. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
  1162. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
  1163. .dynsbss.
  1164. (i370_elf_finish_dynamic_sections): Don't attempt to write .got
  1165. when it is zero size.
  1166. * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
  1167. of .dynbss and zero size sections.
  1168. * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
  1169. it is zero size.
  1170. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
  1171. .dynbss if zero size.
  1172. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
  1173. too.
  1174. * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
  1175. * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
  1176. * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
  1177. * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
  1178. .plt.* and .got.plt.* if zero size.
  1179. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
  1180. .got* and .dynbss if zero size.
  1181. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
  1182. * elf64-ppc.c (create_linkage_sections): Create branch lookup table
  1183. in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
  1184. reloc section.
  1185. (create_got_section): Always create new .got and .rela.got sections.
  1186. (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
  1187. * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
  1188. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
  1189. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
  1190. dynamic bss sections correctly.
  1191. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
  1192. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
  1193. .dynbss if zero size.
  1194. 2005-07-08 Ben Elliston <bje@au.ibm.com>
  1195. * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
  1196. when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
  1197. 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
  1198. * elf-bfd.h (elf_backend_data): Add special_sections.
  1199. * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
  1200. first.
  1201. * elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
  1202. (elf_backend_special_sections): New. Defined.
  1203. * elf32-m32r.c: Likewise.
  1204. * elf32-m68hc11.c: Likewise.
  1205. * elf32-m68hc12.c: Likewise.
  1206. * elf32-mcore.c: Likewise.
  1207. * elf32-sh64.c: Likewise.
  1208. * elf32-v850.c: Likewise.
  1209. * elf32-xtensa.c: Likewise.
  1210. * elf64-alpha.c: Likewise.
  1211. * elf64-hppa.c: Likewise.
  1212. * elf64-ppc.c: Likewise.
  1213. * elf64-sh64.c: Likewise.
  1214. * elfxx-ia64.c: Likewise.
  1215. * elfxx-mips.c: Likewise.
  1216. * elfxx-mips.h: Likewise.
  1217. * elfxx-target.h (elf_backend_special_sections): New.
  1218. (elfNN_bed): Initialize special_sections.
  1219. 2005-07-07 Bob Wilson <bob.wilson@acm.org>
  1220. * xtensa-modules.c: Update tables with Xtensa MMU features.
  1221. 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  1222. * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
  1223. format bugs.
  1224. * vms.h (_bfd_vms_debug): Add format attribute.
  1225. (_bfd_vms_debug, _bfd_hexdump): Fix typos.
  1226. 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
  1227. PR 975
  1228. * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
  1229. symbol with default visibility is local.
  1230. 2005-07-07 Ben Elliston <bje@gnu.org>
  1231. * config.bfd: Mark m68*-*-rtemscoff as obsolete.
  1232. 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
  1233. * dwarf2.c (varinfo): Add addr.
  1234. (lookup_symbol_in_variable_table): Also check addr.
  1235. (scan_unit_for_symbols): Set addr for variable.
  1236. (comp_unit_find_line): Updated.
  1237. 2005-07-06 Nick Clifton <nickc@redhat.com>
  1238. * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
  1239. message if an unknown reloc is encountered.
  1240. (alpha_relocate_section): Likewise.
  1241. * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
  1242. with a missing howto field.
  1243. 2005-07-06 Alan Modra <amodra@bigpond.net.au>
  1244. * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
  1245. elfxx-sparc.c.
  1246. 2005-07-05 Paul Brook <paul@codesourcery.com>
  1247. * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
  1248. (ppc_elf_vxworks_get_sec_type_attr): New function.
  1249. (elf_backend_special_sections): Remove vxwords definition.
  1250. (elf_backend_get_sec_type_attr): Define for vxworks.
  1251. 2005-07-05 Nick Clifton <nickc@redhat.com>
  1252. * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
  1253. 2005-07-05 Paul Brook <paul@codesourcery.com>
  1254. * config.bfd: Add separate case for ppc-vxworks.
  1255. * configure: Regenerate.
  1256. * configure.in: Include elf-vxworks.lo on ppc targets.
  1257. * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
  1258. .rela.plt.unloaded.
  1259. * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
  1260. (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
  1261. (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
  1262. ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
  1263. ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
  1264. VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
  1265. VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
  1266. (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
  1267. is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
  1268. (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
  1269. (ppc_elf_create_got): Create .got.plt for VxWorks.
  1270. (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
  1271. section for VxWorks.
  1272. (ppc_elf_select_plt_layout): Handle VxWorks plt format.
  1273. (allocate_got): VxWorks does not need a got header.
  1274. (allocate_dynrelocs): Handle VxWorks plt format.
  1275. (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
  1276. VxWorks. Handle VxWorks plt/got.
  1277. (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
  1278. (ppc_elf_vxworks_special_sections): New.
  1279. (ppc_elf_vxworks_link_hash_table_create,
  1280. ppc_elf_vxworks_add_symbol_hook,
  1281. elf_i386_vxworks_link_output_symbol_hook,
  1282. ppc_elf_vxworks_final_write_processing): New functions.
  1283. * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
  1284. (_bfd_target_vector): Use it.
  1285. 2005-07-05 Jakub Jelinek <jakub@redhat.com>
  1286. * libbfd-in.h (struct artdata): Add extended_names_size field.
  1287. * libbfd.h: Rebuilt.
  1288. * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
  1289. allocated object by bfd_zalloc.
  1290. * coff64-rs6000.c (xcoff64_archive_p): Likewise.
  1291. * ecoff.c (_bfd_ecoff_archive_p): Likewise.
  1292. * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
  1293. (get_extended_arelt_filename): Fail if index is bigger or equal to
  1294. extended_names_size.
  1295. (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
  1296. get_extended_arelt_filename already did that.
  1297. (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
  1298. Allocate one extra byte and clear it, in case extended names table
  1299. is not terminated.
  1300. * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
  1301. bfd_zalloc2): New prototypes.
  1302. * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
  1303. * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
  1304. * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
  1305. * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
  1306. elf_map_symbols, map_sections_to_segments,
  1307. assign_file_positions_for_segments, copy_private_bfd_data,
  1308. swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
  1309. where appropriate.
  1310. * bfd-in2.h: Rebuilt.
  1311. * libbfd.h: Rebuilt.
  1312. * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
  1313. verdef or verneed section.
  1314. (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
  1315. verneed sections gracefully.
  1316. * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
  1317. bogus relocation values.
  1318. * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
  1319. * elf64-s390.c (elf_s390_info_to_howto): Likewise.
  1320. * elf32-s390.c (elf_s390_info_to_howto): Likewise.
  1321. * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
  1322. * elfxx-ia64.c (lookup_howto): Likewise.
  1323. * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
  1324. the end of strtab and clear it.
  1325. (elf_read): Remove.
  1326. 2005-07-05 Nick Clifton <nickc@redhat.com>
  1327. * po/vi.po: New Vietnamese translation.
  1328. * configure.in (ALL_LINGUAS): Add vi.
  1329. * configure: Regenerate.
  1330. 2005-07-05 Peter S. Mazinger <ps.m@gmx.net>
  1331. * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
  1332. touchup logic like i386/ppc.
  1333. 2005-07-05 Alan Modra <amodra@bigpond.net.au>
  1334. * elf.c (special_sections): Move const qualifier.
  1335. (special_sections_b..special_sections_t): Likewise.
  1336. * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
  1337. const.
  1338. (elf32_arm_symbian_special_sections): Move const qualifier.
  1339. * elf32-m32r.c: Similarly.
  1340. * elf32-m68hc11.c: Similarly.
  1341. * elf32-m68hc12.c: Similarly.
  1342. * elf32-mcore.c: Similarly.
  1343. * elf32-ppc.c: Similarly.
  1344. * elf32-sh64.c: Similarly.
  1345. * elf32-v850.c: Similarly.
  1346. * elf32-xtensa.c: Similarly.
  1347. * elf64-alpha.c: Similarly.
  1348. * elf64-hppa.c: Similarly.
  1349. * elf64-ppc.c: Similarly.
  1350. * elf64-sh64.c: Similarly.
  1351. * elfxx-ia64.c: Similarly.
  1352. * elfxx-mips.c: Similarly.
  1353. 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  1354. * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
  1355. info->executable instead of !info->shared where appropriate.
  1356. 2005-07-04 Alan Modra <amodra@bigpond.net.au>
  1357. PR 1042
  1358. * elf.c (assign_file_positions_for_segments): Remove excluded
  1359. sections from the segment map.
  1360. 2005-07-04 Alan Modra <amodra@bigpond.net.au>
  1361. PR 1004
  1362. * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
  1363. special_sections.
  1364. (_bfd_elf_get_special_section): Declare.
  1365. (bfd_elf_special_section): Update prototype.
  1366. * elf.c (special_sections): Remove unused outer entries.
  1367. (get_special_section): Delete.
  1368. (_bfd_elf_get_special_section): New function.
  1369. (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
  1370. special_sections indexing.
  1371. (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
  1372. * elf32-arm.c (symbian_special_sections_d): Delete.
  1373. (symbian_special_sections_g, symbian_special_sections_h): Delete.
  1374. (symbian_special_sections_i, symbian_special_sections_f): Delete.
  1375. (symbian_special_sections_p): Delete.
  1376. (elf32_arm_symbian_special_sections): Merge above to here.
  1377. (elf32_arm_symbian_get_sec_type_attr): New function.
  1378. (elf_backend_special_sections): Don't define.
  1379. (elf_backend_get_sec_type_attr): Define.
  1380. * elf32-m32r.c: Similarly to elf32-arm.c.
  1381. * elf32-m68hc11.c: Likewise.
  1382. * elf32-m68hc12.c: Likewise.
  1383. * elf32-mcore.c: Likewise.
  1384. * elf32-sh64.c: Likewise.
  1385. * elf32-v850.c: Likewise.
  1386. * elf32-xtensa.c: Likewise.
  1387. * elf64-alpha.c: Likewise.
  1388. * elf64-hppa.c: Likewise.
  1389. * elf64-ppc.c: Likewise.
  1390. * elf64-sh64.c: Likewise.
  1391. * elfxx-ia64.c: Likewise.
  1392. * elfxx-mips.c: Likewise.
  1393. * elf32-ppc.c: Likewise.
  1394. (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
  1395. * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
  1396. (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
  1397. (elf_backend_get_sec_type_attr): Define.
  1398. * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
  1399. (elf_backend_special_sections): Don't define.
  1400. (elfNN_bed): Update.
  1401. 2005-07-01 Nick Clifton <nickc@redhat.com>
  1402. * cpu-d10v.c: Update to ISO C90 style function declarations and
  1403. fix formatting.
  1404. * cpu-d30v.c: Likewsie.
  1405. * cpu-i370.c: Likewsie.
  1406. * cpu-xstormy16.c: Likewsie.
  1407. * elf32-arc.c: Likewsie.
  1408. * elf32-d10v.c: Likewsie.
  1409. * elf32-d30v.c: Likewsie.
  1410. * elf32-dlx.c: Likewsie.
  1411. * elf32-i370.c: Likewsie.
  1412. * elf32-i960.c: Likewsie.
  1413. * elf32-ip2k.c: Likewsie.
  1414. * elf32-m32r.c: Likewsie.
  1415. * elf32-mcore.c: Likewsie.
  1416. * elf32-openrisc.c: Likewsie.
  1417. * elf32-or32.c: Likewsie.
  1418. * elf32-pj.c: Likewsie.
  1419. * elf32-v850.c: Likewsie.
  1420. * elf32-xstormy16.c: Likewsie.
  1421. 2005-07-01 Alan Modra <amodra@bigpond.net.au>
  1422. * elf64-alpha.c (elf64_alpha_create_got_section): Always create
  1423. a new .got section.
  1424. (elf64_alpha_create_dynamic_sections): Always make new sections
  1425. by using bfd_make_section_anyway_with_flags. Check that .got not
  1426. already created.
  1427. (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
  1428. instead.
  1429. 2005-06-30 Alan Modra <amodra@bigpond.net.au>
  1430. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
  1431. _SDA_BASE_ and _SDA2_BASE_ symbols.
  1432. * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
  1433. sym if not def_regular.
  1434. (_bfd_elf_provide_section_bound_symbols): Similarly.
  1435. 2005-06-30 Ben Elliston <bje@gnu.org>
  1436. * config.bfd: Mark as obsolete:
  1437. m68*-apollo-*
  1438. m68*-apple-aux*
  1439. m68*-bull-sysv*
  1440. 2005-06-29 Alan Modra <amodra@bigpond.net.au>
  1441. * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
  1442. .eh_frame specially..
  1443. (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
  1444. Don't recheck sections we have already marked.
  1445. (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
  1446. * section.c (struct bfd_section): Add gc_mark_from_eh.
  1447. (STD_SECTION): Adjust.
  1448. * ecoff.c (bfd_debug_section): Adjust.
  1449. * bfd-in2.h: Regenerate.
  1450. 2005-06-29 Alan Modra <amodra@bigpond.net.au>
  1451. * elflink.c (elf_gc_sweep): Do not refcount on sections that have
  1452. not been processed by check_relocs.
  1453. 2005-06-29 Paul Brook <paul@codesourcery.com>
  1454. * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
  1455. * bfd-in2.h: Regenerate.
  1456. * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
  1457. relative.
  1458. * elflink.c (bfd_elf_set_symbol): Add section argument.
  1459. (_bfd_elf_provide_symbol): Ditto.
  1460. (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
  1461. 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
  1462. * elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
  1463. Use bh_root, and hh.
  1464. (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
  1465. (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
  1466. (struct elf32_hppa_link_hash_table): Use etab and bstab.
  1467. (stub_hash_newfunc): Use hh.
  1468. (hppa_link_hash_newfunc): Use hsh_cache.
  1469. (elf32_hppa_link_hash_table_create): Use etab, and bstab.
  1470. (elf32_hppa_link_hash_table_free): Use bstab.
  1471. (hppa_stub_name): Use eh.
  1472. (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
  1473. (hppa_add_stub): Use bstab.
  1474. (hppa_type_of_stub): Use eh.
  1475. (hppa_build_one_stub): Use hh and bh_root.
  1476. (elf32_hppa_copy_indirect_symbol): Use hdh_next.
  1477. (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
  1478. (elf32_hppa_gc_sweep_hook): Use hdh_next.
  1479. (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
  1480. (allocate_plt_static): Use etab.
  1481. (allocate_dynrelocs): Use etab, and hdh_next.
  1482. (readonly_dynrelocs): Use hdh_next.
  1483. (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
  1484. (get_local_syms): Use eh, bstab, and hh.
  1485. (elf32_hppa_size_stubs): Use eh, bstab, and hh.
  1486. (elf32_hppa_set_gp): Use etab.
  1487. (elf32_hppa_build_stubs): Use bstab.
  1488. (final_link_relocate): Use eh, bh_root.
  1489. (elf32_hppa_relocate_section): Use elf, etab.
  1490. (elf32_hppa_finish_dynamic_sections): Use etab.
  1491. 2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
  1492. * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
  1493. the extra `;'.
  1494. 2005-06-21 Carlos O'Donell <carlos@systemhalted.org>
  1495. * elf32-hppa.c (hppa_elf_hash_entry): Define.
  1496. (hppa_stub_hash_entry): Define.
  1497. (stub_hash_newfunc): Rename variables.
  1498. (hppa_link_hash_newfunc): Likewise.
  1499. (elf32_hppa_link_hash_table_free): Likewise.
  1500. (hppa_stub_name): Likewise.
  1501. (hppa_get_stub_entry): Likewise.
  1502. (hppa_add_stub): Likewise.
  1503. (hppa_type_of_stub): Likewise.
  1504. (hppa_build_one_stub): Likewise.
  1505. (hppa_size_one_stub): Likewise.
  1506. (elf32_hppa_create_dynamic_sections): Likewise.
  1507. (elf32_hppa_copy_indirect_symbol): Likewise.
  1508. (elf32_hppa_check_relocs): Likewise.
  1509. (elf32_hppa_gc_mark_hook): Likewise.
  1510. (elf32_hppa_gc_sweep_hook): Likewise.
  1511. (elf32_hppa_grok_psinfo): Likewise.
  1512. (elf32_hppa_hide_symbol): Likewise.
  1513. (elf32_hppa_adjust_dynamic_symbol): Likewise.
  1514. (allocate_dynrelocs): Likewise.
  1515. (clobber_millicode_symbols): Likewise.
  1516. (readonly_dynrelocs): Likewise.
  1517. (elf32_hppa_size_dynamic_sections): Likewise.
  1518. (get_local_syms): Likewise.
  1519. (elf32_hppa_size_stubs): Likewise.
  1520. (hppa_record_segment_addr): Likewise.
  1521. (final_link_relocate): Likewise.
  1522. (elf32_hppa_relocate_section): Likewise.
  1523. (elf32_hppa_finish_dynamic_symbol): Likewise.
  1524. 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
  1525. PR 1025
  1526. * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
  1527. symbol.
  1528. * elf32-arm.c (elf32_arm_check_relocs): Likewise.
  1529. * elf32-avr.c (elf32_avr_check_relocs): Likewise.
  1530. * elf32-cris.c (cris_elf_check_relocs): Likewise.
  1531. * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
  1532. * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
  1533. * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
  1534. * elf32-frv.c (elf32_frv_check_relocs): Likewise.
  1535. * elf32-i370.c (i370_elf_check_relocs): Likewise.
  1536. * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
  1537. * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
  1538. * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
  1539. * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  1540. * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
  1541. * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
  1542. * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
  1543. * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
  1544. * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
  1545. * elf32-s390.c (elf_s390_check_relocs): Likewise.
  1546. * elf32-sh.c (sh_elf_check_relocs): Likewise.
  1547. * elf32-v850.c (v850_elf_check_relocs): Likewise.
  1548. * elf32-vax.c (elf_vax_check_relocs): Likewise.
  1549. * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
  1550. * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
  1551. * elf64-s390.c (elf_s390_check_relocs): Likewise.
  1552. * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
  1553. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
  1554. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
  1555. 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
  1556. PR 1022
  1557. * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
  1558. symbol.
  1559. 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
  1560. PR 1025
  1561. * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
  1562. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
  1563. 2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
  1564. * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
  1565. BFD_RELOC_X86_64_GOTPC32.
  1566. * bfd-in2.h: Regenerated.
  1567. 2005-06-17 Jakub Jelinek <jakub@redhat.com>
  1568. * elf.c (bfd_section_from_shdr): Kill bogus warning.
  1569. * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
  1570. symbol, relocation, group or versym sections.
  1571. * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
  1572. is NULL.
  1573. * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
  1574. doesn't point into the section.
  1575. 2005-06-17 Jan Beulich <jbeulich@novell.com>
  1576. * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
  1577. and BFD_RELOC_X86_64_GOTPC32.
  1578. * libbfd.h (bfd_reloc_code_real_names): Likewise.
  1579. * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
  1580. R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
  1581. (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
  1582. and R_X86_64_GOTPC32.
  1583. (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
  1584. (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
  1585. R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
  1586. (elf64_x86_64_relocate_section): Likewise.
  1587. (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
  1588. 2005-06-15 Mark Kettenis <kettenis@gnu.org>
  1589. * archive.c: Include "libiberty.h".
  1590. 2005-06-15 Nick Clifton <nickc@redhat.com>
  1591. * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
  1592. produced by the GreenHills toolchain can be assimilated.
  1593. 2005-06-14 Steve Ellcey <sje@cup.hp.com>
  1594. * som.c (som_find_inliner_info): New.
  1595. 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
  1596. * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
  1597. 2005-06-14 Jakub Jelinek <jakub@redhat.com>
  1598. * elf.c (bfd_section_from_shdr): Fail if name is NULL.
  1599. Prevent endless recursion on broken objects.
  1600. * archive.c (do_slurp_coff_armap): Check for overflows.
  1601. 2005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
  1602. * elfcode.h (elf_write_relocs): Do nothing if there are no
  1603. relocations.
  1604. 2005-06-10 Alan Modra <amodra@bigpond.net.au>
  1605. * dwarf2.c (decode_line_info): Revert last change. Instead set
  1606. initial low_pc to -1 to avoid need to test whether loc_pc has
  1607. been set.
  1608. 2005-06-09 Christopher Faylor <cgf@timesys.com>
  1609. * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
  1610. either SEC_ALLOC OR SEC_LOAD.
  1611. 2005-06-09 Christopher Faylor <cgf@timesys.com>
  1612. * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
  1613. section header. Do not add STYP_NOLOAD since it does not appear to be
  1614. a valid PE flag.
  1615. 2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
  1616. PR 1000
  1617. * dwarf2.c (lookup_address_in_line_info_table): Restore code
  1618. handling NULL function info, removed with 2005-04-03 change.
  1619. 2005-06-08 Mark Mitchell <mark@codesourcery.com>
  1620. * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
  1621. 2005-06-09 Alan Modra <amodra@bigpond.net.au>
  1622. * elflink.c (elf_mark_used_section): Delete.
  1623. (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
  1624. * reloc.c (bfd_mark_used_section): New function.
  1625. (bfd_generic_gc_sections): Call bfd_mark_used_section.
  1626. 2005-06-08 Alan Modra <amodra@bigpond.net.au>
  1627. * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
  1628. (bfd_fdopenr): Same.
  1629. 2005-06-07 Mark Mitchell <mark@codesourcery.com>
  1630. * opncls.c (bfd_fdopenr): Add missing break statements.
  1631. 2005-06-07 Mark Mitchell <mark@codesourcery.com>
  1632. * opncls.c (bfd_fopen): New API.
  1633. (bfd_openr): Use it.
  1634. (bfd_fdopenr): Likewise.
  1635. * bfd-in2.h: Regenerated.
  1636. 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
  1637. Michael Snyder <msnyder@redhat.com>
  1638. Stan Cox <scox@redhat.com>
  1639. * Makefile.am (ALL_MACHINES): Add ms1 support.
  1640. (ALL_MACHINES_CFILES): Same.
  1641. (BFD32_BACKENDS): Same.
  1642. (BFD32_BACKENDS_CFILES): Same.
  1643. * Makefile.in: Regenerate.
  1644. * archures.c (bfd_architecture): Add ms1 entries.
  1645. Externalize bfd_ms1_arch.
  1646. (bfd_archures_list): Add bfd_ms1_arch.
  1647. * bfd-in2.h: Regenerate.
  1648. * cpu-ms1.c: New file.
  1649. * elf32-ms1.c: New file.
  1650. * targets.c: Define extern of bfd_elf32_ms1_vec.
  1651. Add bfd_elf32_ms1_vec to _bfd_target_vector.
  1652. * configure.in: Add bfd_elf32_ms1_vec case.
  1653. * configure: Regenerate.
  1654. * config.bfd: Add ms1-*-elf to table.
  1655. 2005-06-07 Zack Weinberg <zack@codesourcery.com>
  1656. * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
  1657. 2005-06-07 Alan Modra <amodra@bigpond.net.au>
  1658. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
  1659. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
  1660. 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
  1661. PR 990
  1662. * bfd.c (bfd_find_line): New.
  1663. * dwarf2.c (comp_unit): Add variable_table.
  1664. (funcinfo): Add file, line, and sec.
  1665. (varinfo): New.
  1666. (lookup_symbol_in_function_table): New.
  1667. (lookup_symbol_in_variable_table): New.
  1668. (scan_unit_for_functions): Renamed to ...
  1669. (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
  1670. DW_TAG_variable.
  1671. (comp_unit_find_nearest_line): Updated.
  1672. (comp_unit_find_line): New.
  1673. (_bfd_dwarf2_find_line): New.
  1674. * elf-bfd.h (_bfd_elf_find_line): New.
  1675. (_bfd_generic_find_line): New. Defined.
  1676. * elf.c (_bfd_elf_find_line): New.
  1677. * libbfd-in.h (_bfd_dwarf2_find_line): New.
  1678. (_bfd_generic_find_line): New.
  1679. * bfd-in2.h: Regenerated.
  1680. * libbfd.h: Likewise.
  1681. * libbfd.c (_bfd_generic_find_line): New.
  1682. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
  1683. with _bfd_generic_find_line.
  1684. (bfd_target): Add _bfd_find_line.
  1685. 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
  1686. * dwarf2.c (decode_line_info): Properly set low_pc.
  1687. 2005-06-06 Alan Modra <amodra@bigpond.net.au>
  1688. * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
  1689. case, include addend when indexing .opd section map.
  1690. (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
  1691. clear opd_adjust array if no_opd_opt set. Tidy code.
  1692. Ignore zero size .opd. Check bfd_alloc return value.
  1693. (ppc_stub_name): Return immediately on bfd_malloc fail.
  1694. * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
  1695. 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
  1696. * dwarf2.c (comp_unit): Fix a typo in comment.
  1697. 2005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
  1698. * elf32-vax.c (rtype_to_howto): Remove PARAMS.
  1699. (reloc_type_lookup): Dito.
  1700. (elf_vax_discard_copies): Dito.
  1701. (elf_vax_instantiate_got_entries): Dito.
  1702. (elf_vax_link_hash_traverse): Dito.
  1703. (elf_vax_link_hash_newfunc): Dito.
  1704. (elf_vax_link_hash_table_create): Dito.
  1705. (elf32_vax_set_private_flags): Dito.
  1706. (elf32_vax_merge_private_bfd_data): Dito.
  1707. (elf32_vax_print_private_bfd_data): Dito.
  1708. (elf_vax_check_relocs): Dito.
  1709. (elf_vax_gc_mark_hook): Dito.
  1710. (elf_vax_gc_sweep_hook): Dito.
  1711. (elf_vax_size_dynamic_sections): Dito.
  1712. (elf_vax_discard_copies): Dito.
  1713. (elf_vax_instantiate_got_entries): Dito.
  1714. (elf_vax_relocate_section): Dito.
  1715. (elf_vax_finish_dynamic_symbol): Dito.
  1716. (elf_vax_finish_dynamic_sections): Dito.
  1717. (elf_vax_hash_table): Break-up of line isn't needed.
  1718. (elf_vax_check_relocs): Remove leading whitespace
  1719. (elf_vax_relocate_section): Remove redundant whitespace
  1720. (elf_vax_link_hash_newfunc): Don't cast NULL.
  1721. (elf_vax_link_hash_table_create): Dito.
  1722. * cpu-vax.c (bfd_vax_arch) Remove a trailing space.
  1723. 2005-06-03 Alan Modra <amodra@bigpond.net.au>
  1724. PR 568
  1725. * configure.in: Bump version
  1726. * configure: Regenerate.
  1727. * elflink.c (elf_link_input_bfd): Use einfo linker callback to print
  1728. discarded section sym refs and kill linker output.
  1729. * simple.c (simple_dummy_einfo): New function.
  1730. (bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
  1731. * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
  1732. for all reloc types.
  1733. 2005-06-02 Alan Modra <amodra@bigpond.net.au>
  1734. * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
  1735. restrictive of func code and func descr for undefined syms as well
  1736. as defined.
  1737. 2005-05-31 Jim Blandy <jimb@redhat.com>
  1738. * Makefile.am: Regenerate dependencies with 'make dep-am'.
  1739. * Makefile.in: Regenerate.
  1740. 2005-05-31 Richard Henderson <rth@redhat.com>
  1741. * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
  1742. (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
  1743. (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
  1744. (elf64_alpha_want_plt): Update to match.
  1745. (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
  1746. (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
  1747. 2005-05-31 Zack Weinberg <zack@codesourcery.com>
  1748. * elf32-arm.c (elf32_arm_reloc_type_lookup)
  1749. (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
  1750. Use ISO C90 function declaration style.
  1751. 2005-05-31 James E Wilson <wilson@specifixinc.com>
  1752. * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
  1753. header PF_R flag on PT_LOAD segments.
  1754. 2005-05-30 Richard Henderson <rth@redhat.com>
  1755. * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
  1756. the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
  1757. 2005-05-29 Richard Henderson <rth@redhat.com>
  1758. * configure.in (--enable-secureplt): New.
  1759. * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
  1760. (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
  1761. (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
  1762. (elf64_alpha_use_secureplt): New.
  1763. (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
  1764. (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
  1765. (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
  1766. (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
  1767. (struct alpha_elf_link_hash_entry): Add plt_offset.
  1768. (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
  1769. (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
  1770. (PLT_ENTRY_WORD3): Remove.
  1771. (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
  1772. on .plt and create .got.plt.
  1773. (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
  1774. (get_got_entry): Initialize plt_offset.
  1775. (elf64_alpha_want_plt): New.
  1776. (elf64_alpha_check_relocs): Use it.
  1777. (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
  1778. plt entries here.
  1779. (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
  1780. error as user error.
  1781. (elf64_alpha_size_plt_section_1): Allocate one plt entry per
  1782. got subsection.
  1783. (elf64_alpha_size_plt_section): Size .got.plt section.
  1784. (elf64_alpha_size_rela_got_1): Don't allocate relocations if
  1785. plt entries used.
  1786. (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
  1787. Add PLTRO DYNAMIC entry.
  1788. (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
  1789. (elf64_alpha_finish_dynamic_sections): Likewise.
  1790. 2005-05-28 David Daney <ddaney@avtrex.com>
  1791. * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
  1792. calculation of DT_RELSZ to occur after all dynamic relocations
  1793. are created.
  1794. 2005-05-28 Eli Zaretskii <eliz@gnu.org>
  1795. * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
  1796. * config.in, configure: Regenerate.
  1797. 2005-05-26 Mark Kettenis <kettenis@gnu.org>
  1798. Maciej W. Rozycki <macro@linux-mips.org>
  1799. * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
  1800. stop processing of options if one of invalid size is
  1801. encountered.
  1802. (_bfd_mips_elf_section_from_shdr): Likewise.
  1803. (_bfd_mips_elf_fake_sections): Reset the type of empty special
  1804. sections.
  1805. 2005-05-26 Richard Henderson <rth@redhat.com>
  1806. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
  1807. plt_old_section, plt_old_value.
  1808. (elf64_alpha_adjust_dynamic_symbol): Don't set it.
  1809. (elf64_alpha_size_plt_section_1): Don't use it.
  1810. 2005-05-26 Jakub Jelinek <jakub@redhat.com>
  1811. * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
  1812. first shdr has sh_size == 0. Fail if e_shnum is large to cause
  1813. arithmetic overflow when allocating the i_shdr array.
  1814. Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
  1815. 2005-05-25 Richard Henderson <rth@redhat.com>
  1816. * elf64-alpha.c: Update all function definitions to ISO C. Remove
  1817. all function prototypes; rearrange functions into def-use order.
  1818. 2005-05-25 Richard Henderson <rth@redhat.com>
  1819. * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
  1820. in the presence of deleting elements.
  1821. (elf64_alpha_size_got_sections): Zero dead got section size.
  1822. 2005-05-23 Fred Fish <fnf@specifixinc.com>
  1823. * dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
  1824. (struct funcinfo): Add caller_func, caller_file, caller_line.
  1825. tag, and nesting_level members.
  1826. (lookup_address_in_function_table): Change first passed parameter
  1827. from "struct funcinfo *" to "struct comp_unit *".
  1828. (lookup_address_in_function_table): Dereference unit to find function
  1829. table.
  1830. (lookup_address_in_function_table): Traverse the function list to
  1831. create a chain of inlined functions back to the first non inlined
  1832. function.
  1833. (scan_unit_for_functions): Remember tag and nesting level. Handle
  1834. DW_AT_call_file and DW_AT_call_line.
  1835. (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
  1836. call to pass unit pointer instead of function table pointer. For
  1837. inlined functions, save pointer to the inliner chain.
  1838. (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
  1839. (_bfd_dwarf2_find_inliner_info): New function that returns information
  1840. from the inliner chain after a call to bfd_find_nearest_line.
  1841. * bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
  1842. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
  1843. NAME##_find_inliner_info.
  1844. (bfd_target): Add _bfd_find_inliner_info.
  1845. * bfd-in2.h: Regenerate.
  1846. * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
  1847. macro that always returns bfd_false.
  1848. (_bfd_dwarf2_find_inliner_info): Declare.
  1849. * libbfd.h: Regenerate.
  1850. * elf32-arm.c (elf32_arm_find_inliner_info): New function
  1851. that calls _bfd_dwarf2_find_inliner_info.
  1852. (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.
  1853. * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
  1854. that calls _bfd_dwarf2_find_inliner_info.
  1855. * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
  1856. * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
  1857. _bfd_mips_elf_find_inliner_info.
  1858. * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
  1859. * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.
  1860. * elf.c (_bfd_elf_find_inliner_info): New function that calls
  1861. _bfd_dwarf2_find_inliner_info.
  1862. * elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
  1863. * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
  1864. _bfd_elf_find_inliner_info.
  1865. * coffgen.c (coff_find_inliner_info): New function that
  1866. calls _bfd_dwarf2_find_inliner_info.
  1867. * libcoff-in.h (coff_find_inliner_info): Declare.
  1868. * libcoff.h: Regenerate.
  1869. * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
  1870. (pmac_xcoff_vec) Ditto.
  1871. * coff64-rs6000.c (rs6000coff64_vec): Ditto.
  1872. (aix5coff64_vec): Ditto.
  1873. * aout-target.h (MY_find_inliner_info): Define as
  1874. _bfd_nosymbols_find_inliner_info.
  1875. * aout-tic30.c (MY_find_inliner_info): Ditto.
  1876. * binary.c (binary_find_inliner_info): Ditto.
  1877. * i386msdos.c (msdos_find_inliner_info): Ditto.
  1878. * ihex.c (ihex_find_inliner_info): Ditto.
  1879. * libaout.h (aout_32_find_inliner_info): Ditto.
  1880. * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
  1881. * mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
  1882. * mmo.c (mmo_find_inliner_info): Ditto.
  1883. * nlm-target.h (nlm_find_inliner_info): Ditto.
  1884. * pef.c (bfd_pef_find_inliner_info): Ditto.
  1885. * ppcboot.c (ppcboot_find_inliner_info): Ditto.
  1886. * srec.c (srec_find_inliner_info): Ditto.
  1887. * tekhex.c (tekhex_find_inliner_info): Ditto.
  1888. * versados.c (versados_find_inliner_info): Ditto.
  1889. * xsym.c (bfd_sym_find_inliner_info): Ditto.
  1890. * ieee.c (ieee_find_inliner_info): New function that always
  1891. returns FALSE.
  1892. * oasys.c (oasys_find_inliner_info): Ditto.
  1893. * vms.c (vms_find_inliner_info): Ditto.
  1894. 2005-05-24 Alan Modra <amodra@bigpond.net.au>
  1895. * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
  1896. force old plt layout.
  1897. 2005-05-22 Richard Henderson <rth@redhat.com>
  1898. * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
  1899. sections.
  1900. (elf64_alpha_check_relocs): Likewise.
  1901. (elf64_alpha_relocate_section): Don't emit dynamic relocations to
  1902. non-allocated sections.
  1903. 2005-05-22 Richard Henderson <rth@redhat.com>
  1904. * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
  1905. undefweak to use zero register. Call elf64_alpha_relax_got_load
  1906. if not all uses removed.
  1907. (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
  1908. (elf64_alpha_relax_section): Handle undefweak symbols.
  1909. (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
  1910. (elf64_alpha_size_rela_got_1): Likewise.
  1911. (elf64_alpha_relocate_section): Likewise.
  1912. 2005-05-22 Richard Henderson <rth@redhat.com>
  1913. * elf64-alpha.c (elf64_alpha_relax_section): Only operate
  1914. on SEC_CODE sections.
  1915. 2005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  1916. * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
  1917. unsigned int *.
  1918. (som_write_space_strings): Change type of tmp_space and p to char *.
  1919. (som_write_symbol_strings): Likewise. Also change type of comp to
  1920. char *comp[4].
  1921. (som_begin_writing): Change type of strings_size to unsigned int.
  1922. (som_finish_writing): Likewise.
  1923. (som_slurp_reloc_table): Change type of external_relocs to unsigned
  1924. char *.
  1925. * som.h (struct som_section_data_struct): Change type of reloc_stream
  1926. field to unsigned char *.
  1927. 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
  1928. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
  1929. copy relocations for VxWorks.
  1930. 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
  1931. * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
  1932. has_sda_refs.
  1933. (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
  1934. (ppc_elf_check_relocs): Set has_sda_refs.
  1935. (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
  1936. copy relocations. Use has_sda_refs to place variables in .sbss.
  1937. (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
  1938. .sbss.
  1939. 2005-05-20 Bob Wilson <bob.wilson@acm.org>
  1940. * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
  1941. xtensa_default_isa is initialized.
  1942. 2005-05-20 Alan Modra <amodra@bigpond.net.au>
  1943. * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
  1944. for second and subsequent list entries. Only allocate multiple
  1945. glink stubs when shared or pie.
  1946. (ppc_elf_finish_dynamic_symbol): Break out early when only one
  1947. glink stub is needed.
  1948. 2005-05-19 Zack Weinberg <zack@codesourcery.com>
  1949. * Makefile.am: Have 'all' depend on 'info'.
  1950. * Makefile.in: Regenerate.
  1951. 2005-05-19 Alan Modra <amodra@bigpond.net.au>
  1952. * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
  1953. init_offset. Add init_got_refcount, init_plt_refcount,
  1954. init_got_offset and init_plt_offset.
  1955. * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
  1956. (_bfd_elf_link_hash_hide_symbol): Likewise.
  1957. (_bfd_elf_link_hash_table_init): Likewise.
  1958. * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
  1959. * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
  1960. * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
  1961. (bfd_elf_size_dynamic_sections): Likewise.
  1962. * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
  1963. (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
  1964. LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
  1965. (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
  1966. LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
  1967. (struct plt_entry): New.
  1968. (ppc_elf_link_hash_table_create): Set new init_plt fields.
  1969. (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't
  1970. use _bfd_elf_link_hash_copy_indirect.
  1971. (update_plt_info, find_plt_ent): New functions.
  1972. (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
  1973. and adjust for use of plt list rather than refcount.
  1974. (ppc_elf_gc_sweep_hook): Likewise.
  1975. (ppc_elf_tls_optimize): Likewise.
  1976. (ppc_elf_adjust_dynamic_symbol): Likewise.
  1977. (allocate_dynrelocs): Likewise.
  1978. (ppc_elf_relax_section): Likewise.
  1979. (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends
  1980. when performing a relocatable link.
  1981. (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here..
  1982. (ppc_elf_finish_dynamic_sections): ..rather than here. Use new
  1983. pic resolver stub.
  1984. 2005-05-19 Alan Modra <amodra@bigpond.net.au>
  1985. * elf.c (assign_file_positions_for_segments): Use maximum of
  1986. maxpagesize and section alignment when adjusting initial
  1987. segment offset and section offsets.
  1988. 2005-05-18 Zack Weinberg <zack@codesourcery.com>
  1989. * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
  1990. unconditional.
  1991. 2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
  1992. * elf.c (group_signature): Undo the last change. Check if the
  1993. symbol table section is correct.
  1994. 2005-05-17 Zack Weinberg <zack@codesourcery.com>
  1995. * elf32-arm.c: Wherever possible, use official reloc names
  1996. from AAELF.
  1997. (elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
  1998. (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
  1999. (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
  2000. (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
  2001. (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
  2002. (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
  2003. elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
  2004. Add many new relocations from AAELF.
  2005. (elf32_arm_howto_from_type): Update to match.
  2006. (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
  2007. R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
  2008. R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
  2009. (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
  2010. (elf32_arm_final_link_relocate): Add support for
  2011. R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
  2012. case entries redundant with default.
  2013. * reloc.c: Reorganize ARM relocations. Add Thumb
  2014. assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
  2015. BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
  2016. Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
  2017. BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
  2018. Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
  2019. * bfd-in2.h, libbfd.h: Regenerate.
  2020. 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
  2021. * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
  2022. elf_shstrtab.
  2023. * format.c (bfd_check_format_matches): Set output_has_begun
  2024. for both_direction.
  2025. * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
  2026. special case for both_direction.
  2027. 2005-05-17 Nick Clifton <nickc@redhat.com>
  2028. * elf.c (group_signature): Check for a group section which is
  2029. actually a (corrupt) symbol table section in disguise and prevent
  2030. an infinite loop from occurring.
  2031. 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
  2032. * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
  2033. 2005-02-16.
  2034. 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
  2035. * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
  2036. predicate on slot 0 only if slot 0 isn't br.
  2037. 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
  2038. PR 797
  2039. * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
  2040. empty sdynbss section.
  2041. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
  2042. 2005-05-17 Tavis Ormandy <taviso@gentoo.org>
  2043. * elf.c (bfd_section_from_shdr): Add sanity check when parsing
  2044. dynamic sections.
  2045. 2005-05-17 Alan Modra <amodra@bigpond.net.au>
  2046. * elf32-ppc.c (LIS_11. LIS_12): Define.
  2047. (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
  2048. (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
  2049. for --data-plt when building non-pie executables.
  2050. 2005-05-17 Nick Clifton <nickc@redhat.com>
  2051. * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
  2052. the situation where a symbols's section is not known but a section
  2053. relative R_ARM_RELATIVE reloc has to be generated for the Symbian
  2054. OS.
  2055. * elf32-v850.c (v850_elf_relocate_section): Move code to test for
  2056. the presence of a symbol table to just before the symbol table is
  2057. actually used.
  2058. 2005-05-16 H.J. Lu <hongjiu.lu@intel.com>
  2059. PR 834
  2060. * elfxx-ia64.c (elfNN_ia64_relax_br): New.
  2061. (elfNN_ia64_relax_section): Use it.
  2062. 2005-05-14 Mark Kettenis <kettenis@gnu.org>
  2063. * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
  2064. of basename.
  2065. 2005-05-14 Alan Modra <amodra@bigpond.net.au>
  2066. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
  2067. not DT_PPC_GLINK.
  2068. (ppc_elf_finish_dynamic_sections): Likewise.
  2069. 2005-05-13 Fred Fish <fnf@specifixinc.com>
  2070. * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
  2071. * libbfd.h: Rebuilt.
  2072. 2005-05-13 Bob Wilson <bob.wilson@acm.org>
  2073. * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
  2074. periods in linkonce_kind values.
  2075. 2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
  2076. * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
  2077. against protected function when building executable.
  2078. 2005-05-12 Alan Modra <amodra@bigpond.net.au>
  2079. * elf32-ppc.c (LWZU_0_X_11): Delete.
  2080. (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
  2081. (ppc_elf_select_plt_layout): Set .got flags too. Formatting.
  2082. (ppc_elf_size_dynamic_sections): Allocate space for .glink branch
  2083. table.
  2084. (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
  2085. table.
  2086. (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
  2087. Generate .glink branch table and updated stubs.
  2088. 2005-05-11 Alan Modra <amodra@bigpond.net.au>
  2089. * reloc.c (BFD_RELOC_HI16_PCREL): Define.
  2090. (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
  2091. * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
  2092. (CROR_151515, CROR_313131): Delete.
  2093. (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
  2094. LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
  2095. LWZU_0_X_11): Define.
  2096. (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
  2097. and R_PPC_REL16_HA entries.
  2098. (ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
  2099. (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
  2100. (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
  2101. new_plt, and old_plt.
  2102. (ppc_elf_create_dynamic_sections): Create .glink section.
  2103. (ppc_elf_check_relocs): Set new_plt and old_plt.
  2104. (ppc_elf_select_plt_layout): New function.
  2105. (ppc_elf_tls_setup): Set plt output section elf type and flags.
  2106. (allocate_got): Handle differences between old and new got layout.
  2107. (allocate_dynrelocs): Likewise for plt.
  2108. (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for
  2109. .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK.
  2110. (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink
  2111. destination of R_PPC_PLTREL24 relocs.
  2112. (ppc_elf_relocate_section): Handle new relocs and changed destination
  2113. of R_PPC_PLTREL24.
  2114. (ppc_elf_finish_dynamic_symbol): Init new style plt and handle
  2115. differences in layout.
  2116. (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't
  2117. put a blrl in new got. Write glink contents.
  2118. * elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
  2119. * libbfd.h: Regenerate.
  2120. * bfd-in2.h: Regenerate.
  2121. 2005-05-11 Andreas Schwab <schwab@suse.de>
  2122. * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
  2123. warning.
  2124. 2005-05-10 H.J. Lu <hongjiu.lu@intel.com>
  2125. * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
  2126. section if SEC_ALLOC isn't set.
  2127. 2005-05-09 Kelley Cook <kcook@gcc.gnu.org>
  2128. * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
  2129. * acinclude.m4: Don't sinclude accross.m4.
  2130. * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.
  2131. 2005-05-09 Alan Modra <amodra@bigpond.net.au>
  2132. * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
  2133. (ppc64_elf_add_symbol_hook): Set has_dotsym.
  2134. (ppc64_elf_check_directives): Only process syms when has_dotsym.
  2135. (func_desc_adjust): Hide fake function descriptors when function
  2136. code entry is defined.
  2137. (adjust_opd_syms): Adjust for deleted_section becoming union field.
  2138. 2005-05-09 Alan Modra <amodra@bigpond.net.au>
  2139. * elfcode.h (elf_object_p): Add more sanity checks on elf header.
  2140. 2005-05-08 Dave Korn <dave.korn@artimi.com>
  2141. * coff-tic80.c: Undefine _CONST after system headers to prevent
  2142. clash with tic80-specific definition in include/coff/tic80.h
  2143. 2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
  2144. PR 939
  2145. * elflink.c (elf_link_output_extsym): Use output_bfd if
  2146. h->root.u.def.section is bfd_abs_section_ptr when reporting
  2147. error.
  2148. 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
  2149. * elf-bfd.h (elf_backend_data): Update special_sections to
  2150. array of pointer to bfd_elf_special_section.
  2151. * elf.c (special_sections): Likewise.
  2152. * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise.
  2153. * elf32-m32r.c (m32r_elf_special_sections): Likewise.
  2154. * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
  2155. * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
  2156. * elf32-mcore.c (mcore_elf_special_sections): Likewise.
  2157. * elf32-ppc.c (ppc_elf_special_sections): Likewise.
  2158. * elf32-sh64.c (sh64_elf_special_sections): Likewise.
  2159. * elf32-v850.c (v850_elf_special_sections): Likewise.
  2160. * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
  2161. * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
  2162. * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
  2163. * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
  2164. * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
  2165. * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
  2166. * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
  2167. * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise.
  2168. * elf.c (get_special_section): Updated.
  2169. 2005-05-07 Alan Modra <amodra@bigpond.net.au>
  2170. * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset.
  2171. * elfxx-target.h (elf_backend_got_symbol_offset): Delete.
  2172. * elflink.c (_bfd_elf_create_got_section): Use zero in place of
  2173. got_symbol_offset.
  2174. * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
  2175. * elf32-frv.c (_frv_create_got_section): Likewise.
  2176. * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code.
  2177. (elf_backend_got_symbol_offset): Don't define.
  2178. * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define.
  2179. * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size
  2180. and got_gap.
  2181. (ppc_elf_create_got): Tidy.
  2182. (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt.
  2183. (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot.
  2184. (ppc_elf_gc_sweep_hook): Likewise.
  2185. (ppc_elf_relocate_section): Likewise.
  2186. (ppc_elf_finish_dynamic_symbol): Likewise.
  2187. (allocate_got): New function.
  2188. (allocate_dynrelocs): Use allocate_got.
  2189. (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation
  2190. so that local got can refcount it. Set got_header_size.
  2191. (ppc_elf_relocate_section): Use value of elf.hgot rather than hard-
  2192. coded 4.
  2193. (ppc_elf_finish_dynamic_sections): Likewise.
  2194. (elf_backend_got_symbol_offset): Don't define.
  2195. (elf_backend_got_header_size): Ditto.
  2196. 2005-05-05 Steve Ellcey <sje@cup.hp.com>
  2197. * configure.in (ACX_HEADER_STRING): New.
  2198. * configure: Regenerate.
  2199. * config.in: Regenerate.
  2200. * sysdep.h (STRING_WITH_STRINGS): Use.
  2201. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  2202. * elf.c (_bfd_elf_close_and_cleanup): Only call
  2203. _bfd_dwarf2_cleanup_debug_info on bfd_object.
  2204. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  2205. * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
  2206. "__bss_start" instead of "_edata" as fallback.
  2207. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  2208. * bfd-in2.h: Regenerated.
  2209. 2005-05-05 Paul Brook <paul@codesourcery.com>
  2210. * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks.
  2211. * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need
  2212. elf-vxworks.lo.
  2213. * configure: Regenerate.
  2214. * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo.
  2215. (BFD32_BACKENDS_CFILES): Add elf-vxworks.c.
  2216. (elf32-i386.lo): Depend on elf-vxworks.h.
  2217. (elf-vxworks.lo): New rule.
  2218. * Makefile.in: Regenerate.
  2219. * elf-bfd.h (elf_backend_data): Update type of
  2220. elf_backend_emit_relocs.
  2221. (_bfd_elf_link_output_relocs): Update prototype.
  2222. * elflink.c (_bfd_elf_link_output_relocs): Always use
  2223. bed->elf_backend_emit_relocs when outputting relocations.
  2224. * elfxx-target.h (elf_backend_emit_relocs): Default to
  2225. _bfd_elf_link_output_relocs.
  2226. * targets.c (bfd_elf32_i386_vxworks_vec): Declare.
  2227. (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec.
  2228. * elf32-i386.c: Add elf32-i386-vxworks target BFD.
  2229. (elf_i386_plt0_entry): Remove padding.
  2230. (elf_i386_pic_plt0_entry): Ditto.
  2231. (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define.
  2232. (PLT_NON_JUMP_SLOT_RELOCS): Define.
  2233. (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and
  2234. plt0_pad_byte fields.
  2235. (elf_i386_link_hash_table_create): Zero them.
  2236. (elf_i386_create_dynamic_sections): Create static relocation section.
  2237. (allocate_dynrelocs): Allocate space for static PLT relocations.
  2238. (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT
  2239. symbols. Give PLT symbols function type. Don't strip PLT sections
  2240. if we have exported symbols from them.
  2241. (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
  2242. relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
  2243. VxWorks.
  2244. (elf_i386_finish_dynamic_sections): Allow different pad bytes.
  2245. Add relocation for GOT location. Fill in PLT static relocations.
  2246. (elf_i386_vxworks_link_hash_table_create): New function.
  2247. (elf_i386_vxworks_link_output_symbol_hook): New function.
  2248. * elf-vxworks.h: New file.
  2249. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  2250. * section.c (bfd_make_section_anyway_with_flags): New.
  2251. (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags,
  2252. (bfd_make_section_with_flags): New.
  2253. (bfd_make_section): Call bfd_make_section_with_flags.
  2254. * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call
  2255. bfd_make_section_with_flags/bfd_make_section_anyway_with_flags
  2256. instead of bfd_make_section/bfd_make_section and don't call
  2257. bfd_set_section_flags.
  2258. (mn10300_elf_check_relocs): Likewise.
  2259. (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
  2260. * elf32-arm.c (create_got_section): Likewise.
  2261. (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise.
  2262. (elf32_arm_check_relocs): Likewise.
  2263. * elf32-cris.c (cris_elf_check_relocs): Likewise.
  2264. * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise.
  2265. (_frv_create_got_section): Likewise.
  2266. (elf32_frvfdpic_create_dynamic_sections): Likewise.
  2267. * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
  2268. (elf32_hppa_check_relocs): Likewise.
  2269. * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise.
  2270. (i370_elf_check_relocs): Likewise.
  2271. * elf32-i386.c (create_got_section): Likewise.
  2272. (elf_i386_check_relocs): Likewise.
  2273. * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
  2274. (create_got_section): Likewise.
  2275. (m32r_elf_create_dynamic_sections): Likewise.
  2276. (m32r_elf_check_relocs): Likewise.
  2277. * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
  2278. * elf32-ppc.c (ppc_elf_create_got): Likewise.
  2279. (ppc_elf_create_dynamic_sections): Likewise.
  2280. (ppc_elf_add_symbol_hook): Likewise.
  2281. (ppc_elf_check_relocs): Likewise.
  2282. * elf32-s390.c (create_got_section): Likewise.
  2283. (elf_s390_check_relocs): Likewise.
  2284. * elf32-sh.c (create_got_section): Likewise.
  2285. (sh_elf_create_dynamic_sections): Likewise.
  2286. (sh_elf_check_relocs): Likewise.
  2287. * elf32-vax.c (elf_vax_check_relocs): Likewise.
  2288. * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
  2289. * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
  2290. (add_extra_plt_sections): Likewise.
  2291. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
  2292. (elf64_alpha_create_got_section): Likewise.
  2293. (elf64_alpha_create_dynamic_sections): Likewise.
  2294. (elf64_alpha_check_relocs): Likewise.
  2295. * elf64-hppa.c (get_reloc_section): Likewise.
  2296. (get_opd): Likewise.
  2297. (get_plt): Likewise.
  2298. (get_dlt): Likewise.
  2299. (get_stub): Likewise.
  2300. (elf64_hppa_create_dynamic_sectionso): Likewise.
  2301. * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise.
  2302. * elf64-ppc.c (create_linkage_sections): Likewise.
  2303. (ppc64_elf_check_relocs): Likewise.
  2304. * elf64-s390.c (create_got_section): Likewise.
  2305. (elf_s390_check_relocs): Likewise.
  2306. * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
  2307. (sh64_elf64_create_dynamic_sections): Likewise.
  2308. * elf64-x86-64.c (create_got_section): Likewise.
  2309. (elf64_x86_64_check_relocs): Likewise.
  2310. * elflink.c (_bfd_elf_create_got_section): Likewise.
  2311. (_bfd_elf_link_create_dynamic_sections): Likewise.
  2312. (elf_link_add_object_symbols): Likewise.
  2313. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
  2314. (elfNN_ia64_create_dynamic_sections): Likewise.
  2315. (get_fptr): Likewise.
  2316. (get_pltoff): Likewise.
  2317. (get_reloc_section): Likewise.
  2318. (elfNN_ia64_object_p): Likewise.
  2319. * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise.
  2320. (mips_elf_create_compact_rel_section): Likewise.
  2321. (mips_elf_create_got_section): Likewise.
  2322. (_bfd_mips_elf_create_dynamic_sections): Likewise.
  2323. * elfxx-sparc.c (create_got_section): Likewise.
  2324. (_bfd_sparc_elf_check_relocs): Likewise.
  2325. * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
  2326. on linker created sections.
  2327. 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
  2328. PR 882
  2329. * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
  2330. script on executable.
  2331. 2005-05-05 John Levon <levon@movementarian.org>
  2332. * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
  2333. allocated memory before returning.
  2334. (decode_line_info): Likewise.
  2335. (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
  2336. allocated by functions in this file.
  2337. * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
  2338. * elf.c (_bfd_elf_close_and_cleanup): Call
  2339. _bfd_dwarf2_cleanup_debug_info.
  2340. 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
  2341. * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
  2342. * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
  2343. * configure, config.in, Makefile.in: Regenerate.
  2344. * sysdep.h (stpcpy): Revert last change.
  2345. 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
  2346. * sysdep.h (stpcpy): Wrap declaration in parentheses.
  2347. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
  2348. * elfxx-ia64.c (ARCH_SIZE): New.
  2349. (LOG_SECTION_ALIGN): Likewise.
  2350. (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to
  2351. align relocation sections.
  2352. (get_fptr): Likewise.
  2353. (get_reloc_section): Likewise.
  2354. (elfNN_ia64_tprel_base): Likewise.
  2355. (elfNN_ia64_check_relocs): Support 32bit relocations.
  2356. (allocate_global_fptr_got): Likewise.
  2357. (allocate_dynrel_entries): Likewise.
  2358. (set_got_entry): Likewise.
  2359. (set_pltoff_entry): Likewise.
  2360. (elfNN_ia64_relocate_section): Likewise.
  2361. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
  2362. * configure.in: Add AC_CHECK_DECLS(stpcpy).
  2363. * configure: Regenerate.
  2364. * config.in: Likewise.
  2365. * sysdep.h (stpcpy): New.
  2366. 2005-05-04 Nick Clifton <nickc@redhat.com>
  2367. * Update the address and phone number of the FSF organization in
  2368. the GPL notices in the following files:
  2369. aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c,
  2370. aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h,
  2371. aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h,
  2372. archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h,
  2373. bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c,
  2374. cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c,
  2375. coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c,
  2376. coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c,
  2377. coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
  2378. coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
  2379. coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
  2380. coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c,
  2381. coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c,
  2382. coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h,
  2383. corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c,
  2384. cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
  2385. cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
  2386. cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
  2387. cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c,
  2388. cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c,
  2389. cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
  2390. cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c,
  2391. cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c,
  2392. cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c,
  2393. cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c,
  2394. cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c,
  2395. dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h,
  2396. efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c,
  2397. elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c,
  2398. elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
  2399. elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c,
  2400. elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
  2401. elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
  2402. elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
  2403. elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c,
  2404. elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c,
  2405. elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c,
  2406. elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c,
  2407. elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c,
  2408. elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
  2409. elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c,
  2410. elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c,
  2411. elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
  2412. elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h,
  2413. elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c,
  2414. elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h,
  2415. epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c,
  2416. genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c,
  2417. hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
  2418. i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
  2419. i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
  2420. libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h,
  2421. libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h,
  2422. libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c,
  2423. m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c,
  2424. mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c,
  2425. netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c,
  2426. nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c,
  2427. nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c,
  2428. opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c,
  2429. pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c,
  2430. pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c,
  2431. pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c,
  2432. ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c,
  2433. sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c,
  2434. sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c,
  2435. syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c,
  2436. vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c,
  2437. vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h,
  2438. xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c,
  2439. hosts/alphavms.h
  2440. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
  2441. * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
  2442. * bfd-in2.h: Regenerated.
  2443. * elflink.c (bfd_elf_set_symbol): New.
  2444. (_bfd_elf_provide_symbol): Call it.
  2445. (_bfd_elf_provide_section_bound_symbols): New.
  2446. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
  2447. * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
  2448. at the end, if a strong definition has already been seen.
  2449. 2005-05-04 Alan Modra <amodra@bigpond.net.au>
  2450. * section.c (struct bfd_section): Replace link_order_head and
  2451. link_order_tail with map_head and map_tail union.
  2452. (STD_SECTION): Update.
  2453. (_bfd_strip_section_from_output): Delete.
  2454. * aoutx.h: Update throughout for above changes.
  2455. * coff-ppc.c: Likewise.
  2456. * cofflink.c: Likewise.
  2457. * ecoff.c: Likewise.
  2458. * elf-eh-frame.c: Likewise.
  2459. * elf-m10300.c: Likewise.
  2460. * elf.c: Likewise.
  2461. * elf32-arm.c: Likewise.
  2462. * elf32-cris.c: Likewise.
  2463. * elf32-hppa.c: Likewise.
  2464. * elf32-i386.c: Likewise.
  2465. * elf32-m32r.c: Likewise.
  2466. * elf32-m68hc1x.c: Likewise.
  2467. * elf32-m68k.c: Likewise.
  2468. * elf32-ppc.c: Likewise.
  2469. * elf32-s390.c: Likewise.
  2470. * elf32-sh.c: Likewise.
  2471. * elf32-vax.c: Likewise.
  2472. * elf32-xtensa.c: Likewise.
  2473. * elf64-alpha.c: Likewise.
  2474. * elf64-hppa.c: Likewise.
  2475. * elf64-ppc.c: Likewise.
  2476. * elf64-s390.c: Likewise.
  2477. * elf64-sh64.c: Likewise.
  2478. * elf64-x86-64.c: Likewise.
  2479. * elflink.c: Likewise.
  2480. * elfxx-ia64.c: Likewise.
  2481. * elfxx-mips.c: Likewise.
  2482. * elfxx-sparc.c: Likewise.
  2483. * linker.c: Likewise.
  2484. * merge.c: Likewise.
  2485. * pdp11.c: Likewise.
  2486. * xcofflink.c: Likewise.
  2487. * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split
  2488. out from bfd_elf_size_dynamic_sections.
  2489. * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare.
  2490. * bfd-in2.h: Regenerate.
  2491. 2005-05-04 Alan Modra <amodra@bigpond.net.au>
  2492. * section.c (bfd_section_list_remove): Don't clear s->next.
  2493. (bfd_section_list_append): Always init s->prev.
  2494. (bfd_section_list_prepend): Define.
  2495. (bfd_section_list_insert_after): Minor optimization.
  2496. (bfd_section_removed_from_list): Rewrite.
  2497. * elf.c (assign_section_numbers): Simplify list traversal now that
  2498. bfd_section_list_remove doesn't destroy removed section next ptr.
  2499. * sunos.c (sunos_add_dynamic_symbols): Likewise.
  2500. * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
  2501. * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
  2502. * bfd-in2.h: Regenerate.
  2503. 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2504. * bfd.c (bfd): Remove section_tail and add section_last.
  2505. (bfd_preserve): Likewise.
  2506. (bfd_preserve_save): Likewise.
  2507. (bfd_preserve_restore): Likewise.
  2508. * opncls.c (_bfd_new_bfd): Likewise.
  2509. * coffcode.h (coff_compute_section_file_positions): Updated.
  2510. (coff_compute_section_file_positions): Likewise.
  2511. * elf.c (assign_section_numbers): Likewise.
  2512. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
  2513. * elf64-mmix.c (mmix_elf_final_link): Likewise.
  2514. * elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
  2515. * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
  2516. * sunos.c (sunos_add_dynamic_symbols): Likewise.
  2517. * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
  2518. * ecoff.c (bfd_debug_section): Initialize prev.
  2519. * section.c (bfd_section): Add prev.
  2520. (bfd_section_list_remove): Updated.
  2521. (bfd_section_list_append): New.
  2522. (bfd_section_list_insert_after): New.
  2523. (bfd_section_list_insert_before): New.
  2524. (bfd_section_list_insert): Removed.
  2525. (bfd_section_removed_from_list): Updated.
  2526. (STD_SECTION): Initialize prev.
  2527. (bfd_section_init): Updated.
  2528. (bfd_section_list_clear): Updated.
  2529. * bfd-in2.h: Regenerated.
  2530. 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2531. * elf.c (_bfd_elf_new_section_hook): Don't call
  2532. _bfd_elf_get_sec_type_attr on sections from input files.
  2533. 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
  2534. * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
  2535. hash table size 16699 instead of bfd_hash_table_init.
  2536. 2005-05-01 Paul Brook <paul@codesourcery.com>
  2537. * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
  2538. definition has already been seen.
  2539. 2005-05-01 Paul Brook <paul@codesourcery.com>
  2540. * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
  2541. R_ARM_PLT32 the same as R_ARM_PC24.
  2542. (arm_add_to_rel): Ditto.
  2543. 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
  2544. * config.bfd: Add h8300*-*-rtemscoff.
  2545. Switch h8300*-*-rtems* to elf.
  2546. 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
  2547. * aclocal.m4, Makefile.in: Regnerated.
  2548. 2005-04-28 Paul Brook <paul@codesourcery.com>
  2549. Merge changes only applied to Makefile.in.
  2550. * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
  2551. (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
  2552. (elfxx-sparc.lo): New rule.
  2553. (elf32-sparc.lo): Add elfxx-sparc.h dependency.
  2554. (elf64-sparc.lo): Likewise.
  2555. 2005-04-28 Julian Brown <julian@codesourcery.com>
  2556. * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
  2557. import.
  2558. 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
  2559. * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
  2560. * elf.c (bfd_elf_sym_name): Updated.
  2561. (group_signature): Likewise.
  2562. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  2563. * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
  2564. (ppc64_elf_edit_toc): Likewise.
  2565. (ppc64_elf_relocate_section): Likewise.
  2566. * elfcode.h (elf_slurp_symbol_table): Likewise.
  2567. * elflink.c (elf_link_input_bfd): Likewise.
  2568. * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
  2569. bfd_elf_sym_name to get local symbol name when reporting errors.
  2570. 2005-04-27 Nick Clifton <nickc@redhat.com>
  2571. * elflink.c (elf_link_input_bfd): Handle the case where a badly
  2572. formatted input file results in a reloc which has no associated
  2573. global symbol.
  2574. 2005-04-26 Jerome Guitton <guitton@gnat.com>
  2575. * bfd.m4 (BFD_NEED_DECLARATION): Restore.
  2576. 2005-04-25 David S. Miller <davem@davemloft.net>
  2577. * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
  2578. (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
  2579. sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
  2580. Likewise.
  2581. 2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
  2582. PR 858
  2583. * elflink.c (elf_link_input_bfd): Make non-debugging reference
  2584. to discarded section an error.
  2585. 2005-04-21 Jerome Guitton <guitton@gnat.com>
  2586. * configure.in: Replace BFD_NEED_DECLARATION checks by the
  2587. corresponding AC_CHECK_DECLS.
  2588. * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
  2589. HAVE_DECL_*.
  2590. * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
  2591. * configure: Regenerate.
  2592. * config.in: Ditto.
  2593. 2005-04-21 Andreas Schwab <schwab@suse.de>
  2594. * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
  2595. unsigned from type of dynamic_interpreter.
  2596. * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
  2597. casts again.
  2598. * elf.c (assign_section_numbers): Fix comment.
  2599. 2005-04-21 Jerome Guitton <guitton@gnat.com>
  2600. * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
  2601. for struct som_exec_auxhdr fields.
  2602. 2005-04-21 Nick Clifton <nickc@redhat.com>
  2603. * aout-adobe.c: Convert to ISO C and fix formatting.
  2604. * aout-arm.c: Convert to ISO C and fix formatting.
  2605. * aout-cris.c: Convert to ISO C and fix formatting.
  2606. * aout-ns32k.c: Convert to ISO C and fix formatting.
  2607. * aout-tic30.c: Convert to ISO C and fix formatting.
  2608. * coffcode.h: Convert to ISO C and fix formatting.
  2609. * coffswap.h: Convert to ISO C and fix formatting.
  2610. * i386aout.c: Convert to ISO C and fix formatting.
  2611. * libaout.h: Convert to ISO C and fix formatting.
  2612. * libcoff-in.h: Convert to ISO C and fix formatting.
  2613. * libcoff.h: Convert to ISO C and fix formatting.
  2614. * libecoff.h: Convert to ISO C and fix formatting.
  2615. * libnlm.h: Convert to ISO C and fix formatting.
  2616. * libpei.h: Convert to ISO C and fix formatting.
  2617. * libxcoff.h: Convert to ISO C and fix formatting.
  2618. * nlm-target.h: Convert to ISO C and fix formatting.
  2619. * nlm.c: Convert to ISO C and fix formatting.
  2620. * nlm32-alpha.c: Convert to ISO C and fix formatting.
  2621. * nlm32-i386.c: Convert to ISO C and fix formatting.
  2622. * nlm32-ppc.c: Convert to ISO C and fix formatting.
  2623. * nlm32-sparc.c: Convert to ISO C and fix formatting.
  2624. * nlmcode.h: Convert to ISO C and fix formatting.
  2625. * nlmswap.h: Convert to ISO C and fix formatting.
  2626. * pe-mips.c: Convert to ISO C and fix formatting.
  2627. * peXXigen.c: Convert to ISO C and fix formatting.
  2628. * peicode.h: Convert to ISO C and fix formatting.
  2629. * vms-gsd.c: Convert to ISO C and fix formatting.
  2630. * vms-hdr.c: Convert to ISO C and fix formatting.
  2631. * vms-misc.c: Convert to ISO C and fix formatting.
  2632. * vms-tir.c: Convert to ISO C and fix formatting.
  2633. * vms.c: Convert to ISO C and fix formatting.
  2634. * vms.h: Convert to ISO C and fix formatting.
  2635. * coffgen.c (coff_print_symbol): Restore correct formatting of
  2636. output.
  2637. 2005-04-20 David S. Miller <davem@davemloft.net>
  2638. * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
  2639. (_bfd_sparc_elf_link_hash_table_create): Likewise.
  2640. (allocate_dynrelocs): Likewise.
  2641. 2005-04-20 Jerome Guitton <guitton@gnat.com>
  2642. * configure.in: Fix the check for basename declaration. Add check
  2643. for declarations of ftello, ftello64, fseeko, fseeko64.
  2644. * configure: Regenerate.
  2645. * config.in: Ditto.
  2646. * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
  2647. 2005-04-19 David S. Miller <davem@davemloft.net>
  2648. * elfxx-sparc.c: New file.
  2649. * elfxx-sparc.h: New file.
  2650. * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
  2651. (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
  2652. (elfxx-sparc.lo): New rule.
  2653. (elf32-sparc.lo): Add elfxx-sparc.h dependency.
  2654. (elf64-sparc.lo): Likewise.
  2655. * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
  2656. (bfd_elf64_sparc_vec): Likewise.
  2657. * configure: Regenerate.
  2658. * elf32-sparc.c: Remove common code now in elfxx-sparc.c
  2659. * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
  2660. which is more consistent with elf32-sparc.c
  2661. 2005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
  2662. * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
  2663. (mips_elf_create_local_got_entry): Check h->root.forced_local.
  2664. 2005-04-19 Alan Modra <amodra@bigpond.net.au>
  2665. * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
  2666. dynamic relocs in non-SEC_ALLOC sections.
  2667. (ppc_elf_gc_sweep_hook): Likewise.
  2668. (ppc_elf_relax_section): Likewise.
  2669. (ppc_elf_relocate_section): Likewise.
  2670. 2005-04-18 Nick Clifton <nickc@redhat.com>
  2671. * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
  2672. assigning a value to return_value.
  2673. 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2674. PR 855
  2675. * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
  2676. created group data.
  2677. 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
  2678. PR 855
  2679. * elf.c (setup_group): Properly handle zero group count.
  2680. 2005-04-17 Mark Kettenis <kettenis@gnu.org>
  2681. * som.c (hppa_som_reloc, som_mkobject, som_is_space)
  2682. (som_is_subspace, compare_subspaces, som_compute_checksum)
  2683. (som_build_and_write_symbol_table, som_slurp_symbol_table): New
  2684. protoypes.
  2685. (hppa_som_reloc, compare_syms, compare_subspaces)
  2686. (som_print_symbol, som_get_section_contents)
  2687. (som_set_section_contents): Remove space after 'void *'.
  2688. (som_bfd_print_private_bfd_data): Use %lx to print longs.
  2689. (som_bfd_merge_private_bfd_data)
  2690. (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
  2691. defines.
  2692. 2005-04-15 Julian Brown <julian@codesourcery.com>
  2693. * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
  2694. * bfd-in2.h: Regenerate.
  2695. * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
  2696. (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
  2697. (bfd_elf32_arm_set_target_relocs): Handle use_blx.
  2698. (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
  2699. relocations if requested to.
  2700. (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
  2701. use_blx rather than symbian_p.
  2702. (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
  2703. use_blx is in effect.
  2704. (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
  2705. for SymbianOS.
  2706. 2005-04-15 Nick Clifton <nickc@redhat.com>
  2707. * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
  2708. values.
  2709. 2005-04-15 Alan Modra <amodra@bigpond.net.au>
  2710. PR ld/815
  2711. * elflink.c (elf_smash_syms): Clear undef.next if it's not being
  2712. used as a list pointer.
  2713. 2005-04-14 Alan Modra <amodra@bigpond.net.au>
  2714. * Makefile.am (NO_WERROR): Define.
  2715. * warning.m4: New file
  2716. * acinclude.m4: Include warning.m4.
  2717. * configure.in: Invoke AM_BINUTILS_WARNINGS.
  2718. * Makefile.in: Regenerate.
  2719. * configure: Regenerate.
  2720. 2005-04-14 Alan Modra <amodra@bigpond.net.au>
  2721. * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
  2722. Write trailing padding.
  2723. * merge.c (merge_strings): Round up section size for alignment.
  2724. 2005-04-14 David S. Miller <davem@davemloft.net>
  2725. Add TLS support for 64-bit Sparc ELF.
  2726. * elf64-sparc.c (sparc64_elf_dyn_relocs,
  2727. sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
  2728. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
  2729. sparc64_elf_hash_entry, sparc64_elf_tdata,
  2730. sparc64_elf_local_got_tls_type): New defines.
  2731. (sparc64_elf_mkobject): New function.
  2732. (sparc64_elf_link_hash_table): Add members for dynamic linker
  2733. sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
  2734. uion to track TLS GOT references. Add sym_sec to cache
  2735. mappings from local sym to section.
  2736. (link_hash_newfunc): New function.
  2737. (sparc64_elf_bfd_link_hash_table_create): Rename to
  2738. sparc64_elf_link_hash_table_create for consistency.
  2739. Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
  2740. (sparc64_elf_create_dynamic_sections): Initialize new section
  2741. members of sparc64_elf_link_hash_table. Only init srelbss
  2742. if not-shared.
  2743. (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
  2744. New functions.
  2745. (SPARC_NOP): Define.
  2746. (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
  2747. sparc64_elf_plt_ptr_offset): Delete.
  2748. (sparc64_plt_entry_build): New function to build PLT entries
  2749. gradually instread of all at once at the end of linking.
  2750. (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
  2751. local vars. Get them from sparc64_elf_hash_table instead.
  2752. Check early on if r_symndx is in bounds. Handle TLS transitions.
  2753. Account for TLS GOT references and DF_STATIC_TLS, as needed.
  2754. For TLS relocs, record the tls_type in either
  2755. sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
  2756. appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
  2757. to the __tls_get_addr symbol. For PLT relocs, track references
  2758. via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
  2759. PC_LM22} and h not-NULL, set h->non_got_ref. For global data
  2760. symbol references, count the number of relocations needed for
  2761. that symbol. For default switch case, don't error, this lets
  2762. the TLS relocs not explicitly handled by this function get
  2763. accepted.
  2764. (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
  2765. (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
  2766. it from sparc64_elf_hash_table. Store the real PLT offset
  2767. in h->plt.offset, and build PLT entries one at a time. Also
  2768. get .dynbss section pointer from htab.
  2769. (allocate_dynrelocs, readonly_dynrelocs,
  2770. sparc64_omit_section_dynsym): New functions.
  2771. (sparc64_elf_omit_section_dynsym): Use these new functions as
  2772. helpers.
  2773. (dtpoff_base, tpoff): New functions.
  2774. (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
  2775. locals, get them from sparc64_elf_hash_table. Handle TLS
  2776. relocations and refcounting in main relocation loop.
  2777. (sparc64_elf_finish_dynamic_symbol): Use
  2778. sparc64_elf_link_hash_table. Build PLT entries as we see
  2779. them. Handle TLS GOT relocations.
  2780. (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
  2781. from sparc64_elf_hash_table. Initialize only PLT header
  2782. not all entries since we not build PLT entries one by one.
  2783. (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
  2784. elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
  2785. elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
  2786. 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
  2787. * elflink.c (elf_link_input_bfd): Update check for removed
  2788. sections.
  2789. 2005-04-12 Alan Modra <amodra@bigpond.net.au>
  2790. * Makefile.am: Run "make dep-am".
  2791. * Makefile.in: Regenerate.
  2792. * aclocal.m4: Regenerate.
  2793. * libcoff.h: Regenerate.
  2794. 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
  2795. * linker.c (_bfd_generic_link_output_symbols): Also check if
  2796. the output section of an input section has been removed from
  2797. the output file.
  2798. * section.c (bfd_section_list_remove): Clear the next field
  2799. of the removed section.
  2800. (bfd_section_removed_from_list): New.
  2801. * bfd-in2.h: Regenerated.
  2802. 2005-04-11 David S. Miller <davem@davemloft.net>
  2803. * elf32-sparc.c (elf32_sparc_relocate_section,
  2804. R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
  2805. R_SPARC_TLS_LE_{HIX22,LOX10}.
  2806. (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
  2807. xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
  2808. (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
  2809. or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
  2810. 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
  2811. * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
  2812. 2005-04-11 Nick Clifton <nickc@redhat.com>
  2813. * aout-target.h: Convert to ISO C.
  2814. * aoutf1.h: Convert to ISO C.
  2815. * aoutx.h: Convert to ISO C.
  2816. * bout.c: Convert to ISO C.
  2817. * dwarf1.c: Convert to ISO C.
  2818. * ecoffswap.h: Convert to ISO C.
  2819. * freebsd.h: Convert to ISO C.
  2820. * genlink.h: Convert to ISO C.
  2821. * ieee.c: Convert to ISO C.
  2822. * ihex.c: Convert to ISO C.
  2823. * libcoff-in.h: Convert to ISO C.
  2824. * mach-o.c: Convert to ISO C.
  2825. * mach-o.h: Convert to ISO C.
  2826. * netbsd.h: Convert to ISO C.
  2827. * ns32k.h: Convert to ISO C.
  2828. * ns32knetbsd.c: Convert to ISO C.
  2829. * oasys.c: Convert to ISO C.
  2830. * pdp11.c: Convert to ISO C.
  2831. * pef-traceback.h: Convert to ISO C.
  2832. * pef.c: Convert to ISO C.
  2833. * pef.h: Convert to ISO C.
  2834. * riscix.c: Convert to ISO C.
  2835. * som.c: Convert to ISO C.
  2836. * som.h: Convert to ISO C.
  2837. * srec.c: Convert to ISO C.
  2838. * stabs.c: Convert to ISO C.
  2839. * sunos.c: Convert to ISO C.
  2840. * tekhex.c: Convert to ISO C.
  2841. * versados.c: Convert to ISO C.
  2842. * version.h: Convert to ISO C.
  2843. * xcoff-target.h: Convert to ISO C.
  2844. * xcofflink.c: Convert to ISO C.
  2845. * xsym.c: Convert to ISO C.
  2846. * xsym.h: Convert to ISO C.
  2847. 2005-04-08 Paul Brook <paul@codesourcery.com>
  2848. * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
  2849. (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
  2850. (ARM2THUMB_PIC_GLUE_SIZE): Define.
  2851. (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
  2852. (elf32_arm_to_thumb_stub): Create PIC stubs.
  2853. (record_arm_to_thumb_glue): Use different stub size for relocatable
  2854. images.
  2855. 2005-04-05 Alan Modra <amodra@bigpond.net.au>
  2856. * elf64-ppc.c (dec_dynrel_count): New function split out from
  2857. ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
  2858. (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
  2859. (ppc64_elf_tls_optimize): Likewise.
  2860. 2005-04-05 Mark Kettenis <kettenis@gnu.org>
  2861. * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
  2862. CORE_WCOOKIE_OFFSET.
  2863. (SPARC64_WCOOKIE_OFFSET): New.
  2864. (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
  2865. 2005-04-05 Nick Clifton <nickc@redhat.com>
  2866. * po/rw.po: New translation: Kinyarwanda
  2867. * configure.in (ALL_LINGUAS): Add rw
  2868. * configure: Regenerate.
  2869. 2005-04-05 Richard Sandiford <rsandifo@redhat.com>
  2870. * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
  2871. (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
  2872. SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
  2873. section flags.
  2874. (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
  2875. to check for SHT_MIPS_OPTIONS sections.
  2876. (_bfd_mips_elf_set_section_contents): Likewise.
  2877. 2005-04-04 Eric Christopher <echristo@redhat.com>
  2878. * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
  2879. Clean up gp handling code.
  2880. 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
  2881. * elf.c (bfd_elf_set_group_contents): Ignore linker created
  2882. group section.
  2883. (assign_section_numbers): Accept link_info. Check SHT_GROUP
  2884. sections for relocatable files only. Remove the linker created
  2885. group sections.
  2886. (_bfd_elf_compute_section_file_positions): Pass link_info to
  2887. assign_section_numbers.
  2888. * elfxx-ia64.c (elfNN_ia64_object_p): New.
  2889. (elf_backend_object_p): Defined.
  2890. 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
  2891. * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
  2892. 2005-04-03 Fred Fish <fnf@specifixinc.com>
  2893. * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
  2894. dwarf_ranges_size members.
  2895. (struct comp_unit): Add base_address member.
  2896. (struct funcinfo): Replace low/high members with an arange.
  2897. (arange_add): Replace incoming "unit" parameter with "abfd" and
  2898. "first_arange" pointers. Reorganize/rewrite function body.
  2899. (decode_line_info): Change arange_add call to pass bfd and arange
  2900. pointers.
  2901. (lookup_address_in_line_info_table): Use arange list instead of
  2902. individual low/high members. Walk function's arange list to find
  2903. lowest PC in list, to test for overlapping functions.
  2904. (read_debug_ranges): New function, reads the debug_ranges section.
  2905. (lookup_address_in_function_table): Use arange list instead of
  2906. individual low/high members. Rewrite to find smallest range that
  2907. matches.
  2908. (read_rangelist): Read a given rangelist from debug_ranges.
  2909. (scan_unit_for_functions): Use arange list instead of individual
  2910. low/high members. Handle a DW_AT_ranges attribute.
  2911. (parse_comp_unit): Use arange list instead of individual low/high
  2912. members. Save comp unit base address. Handle a DW_AT_ranges
  2913. attribute.
  2914. 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
  2915. * elf.c (assign_section_numbers): Really use the kept section.
  2916. 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
  2917. * elf-bfd.h (_bfd_elf_check_kept_section): New.
  2918. * elf.c (assign_section_numbers): When sh_link points to a
  2919. discarded section, call _bfd_elf_check_kept_section to see if
  2920. the kept section can be used. Otherwise reject sh_link
  2921. pointing to discarded section.
  2922. * elflink.c (_bfd_elf_check_kept_section): New.
  2923. (elf_link_input_bfd): Use it.
  2924. 2005-04-01 Alan Modra <amodra@bigpond.net.au>
  2925. * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
  2926. that we no longer need.
  2927. 2005-04-01 Alan Modra <amodra@bigpond.net.au>
  2928. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
  2929. rather than 0.
  2930. (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
  2931. 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
  2932. * elf.c (assign_section_numbers): Fix a typo.
  2933. 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
  2934. * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
  2935. error message.
  2936. (_bfd_elf_section_already_linked): Likewise.
  2937. 2005-03-31 Jerome Guitton <guitton@gnat.com>
  2938. * config.in: Regenerate.
  2939. 2005-03-31 Jerome Guitton <guitton@gnat.com>
  2940. * config.in (HAVE_DECL_BASENAME): New configure macro.
  2941. * configure.in: Check for basename.
  2942. * configure: Regenerate.
  2943. 2005-03-30 Julian Brown <julian@codesourcery.com>
  2944. * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
  2945. bfd_elf32_is_arm_mapping_symbol_name.
  2946. * bfd-in2.h: Regenerate.
  2947. * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
  2948. bfd_elf32_is_arm_mapping_symbol_name.
  2949. * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
  2950. bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
  2951. (arm_elf_find_function): Likewise.
  2952. (elf32_arm_output_symbol_hook): Likewise.
  2953. 2005-03-30 Julian Brown <julian@codesourcery.com>
  2954. * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
  2955. * bfd-in2.h: Regenerate.
  2956. * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
  2957. bfd_elf32_is_arm_mapping_symbol_name.
  2958. (elf32_arm_output_symbol_hook): Likewise.
  2959. (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
  2960. mapping symbols.
  2961. (is_arm_mapping_symbol_name): Function moved from here...
  2962. * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
  2963. and made global.
  2964. 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
  2965. * configure.in: Check for ffs decl and alphabetize.
  2966. * config.in: Regenerate.
  2967. * configure: Regenerate.
  2968. * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
  2969. 2005-03-29 Fred Fish <fnf@specifixinc.com>
  2970. * dwarf2.c (struct comp_unit): Fix typo.
  2971. (scan_unit_for_functions): Remove unused local variable "name"
  2972. and dead code that set it.
  2973. 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
  2974. Phil Blundell <philb@gnu.org>
  2975. * bfd-in2.h, libbfd.h: Regenerated.
  2976. * reloc.c: Add ARM TLS relocations.
  2977. * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
  2978. relocations.
  2979. (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
  2980. (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
  2981. (elf32_arm_tls_ie32_howto): New.
  2982. (elf32_arm_howto_from_type): Support TLS relocations.
  2983. (elf32_arm_reloc_map): Likewise.
  2984. (elf32_arm_reloc_type_lookup): Likewise.
  2985. (TCB_SIZE): Define.
  2986. (struct elf32_arm_obj_tdata): New.
  2987. (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
  2988. (elf32_arm_mkobject): New function.
  2989. (struct elf32_arm_relocs_copied): Add pc_count.
  2990. (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
  2991. (GOT_TLS_IE): Define.
  2992. (struct elf32_arm_link_hash_table): Add tls_ldm_got.
  2993. (elf32_arm_link_hash_newfunc): Initialize tls_type.
  2994. (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
  2995. (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
  2996. (dtpoff_base, tpoff): New functions.
  2997. (elf32_arm_final_link_relocate): Handle TLS relocations.
  2998. (IS_ARM_TLS_RELOC): Define.
  2999. (elf32_arm_relocate_section): Warn about TLS mismatches.
  3000. (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
  3001. (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
  3002. TLS relocations and pc_count.
  3003. (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
  3004. (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
  3005. calls.
  3006. (elf32_arm_size_dynamic_sections): Handle TLS.
  3007. (elf32_arm_finish_dynamic_symbol): Likewise.
  3008. (bfd_elf32_mkobject): Define.
  3009. 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
  3010. * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
  3011. relocation types. Don't count relocations which will use a PLT.
  3012. 2005-03-29 Joel Brobecker <brobecker@gnat.com>
  3013. * elf.c (elfcore_grok_nto_status): Print tid as long.
  3014. (elfcore_grok_nto_regs): Likewise.
  3015. 2005-03-29 Joel Brobecker <brobecker@gnat.com>
  3016. * irix-core.c: Remove some unnecessary prototypes.
  3017. 2005-03-28 Joel Brobecker <brobecker@adacore.com>
  3018. * irix-core.c: Convert to ISO C.
  3019. 2005-03-28 Joel Brobecker <brobecker@adacore.com>
  3020. * irix-core.c (do_sections): Replace + by | in expression.
  3021. (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
  3022. to unused parameters to avoid a compiler warning.
  3023. 2005-03-28 Mark Kettenis <kettenis@gnu.org>
  3024. * netbsd-core.c: Convert to ISO C. Fix formatting.
  3025. 2005-03-24 Eric Christopher <echristo@redhat.com>
  3026. * elfxx-mips.c: Revert previous patch.
  3027. 2005-03-24 Nick Clifton <nickc@redhat.com>
  3028. * targets.c (_bfd_target_vector): Only include the
  3029. bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
  3030. all targets enabled.
  3031. 2005-03-24 James E Wilson <wilson@specifixinc.com>
  3032. * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
  3033. (BFD64_BACKENDS): Add elf32-ia64.lo.
  3034. * Makefile.in: Regenerate.
  3035. 2005-03-23 Eric Christopher <echristo@redhat.com>
  3036. * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
  3037. (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
  3038. after emitting relocation.
  3039. (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
  3040. (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
  3041. and readonly_reloc.
  3042. 2005-03-23 Mike Frysinger <vapier@gentoo.org>
  3043. Nick Clifton <nickc@redhat.com>
  3044. * config.bfd: Accept any C library to accompany a GNU Linux
  3045. implementation, not just the GNU C library.
  3046. * configure.in: Likewise.
  3047. * configure: Regenerate.
  3048. 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
  3049. * bfd-in.h (_bfd_elf_provide_symbol): New.
  3050. * bfd-in2.h: Regenerated.
  3051. * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
  3052. (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
  3053. of set_linker_sym.
  3054. * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
  3055. from elf32-ppc.c.
  3056. 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
  3057. * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
  3058. 2005-03-22 Bob Wilson <bob.wilson@acm.org>
  3059. * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
  3060. xtensa_sysreg_lookup_name, xtensa_interface_lookup,
  3061. xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
  3062. (xtensa_opcode_decode): Rearrange code.
  3063. 2005-03-22 Nick Clifton <nickc@redhat.com>
  3064. * binary.c: Convert to ISO C90 formatting.
  3065. * coff-arm.c: Convert to ISO C90 formatting.
  3066. * coffgen.c: Convert to ISO C90 formatting.
  3067. * elf32-gen.c: Convert to ISO C90 formatting.
  3068. * elf64-gen.c: Convert to ISO C90 formatting.
  3069. * hash.c: Convert to ISO C90 formatting.
  3070. * ieee.c: Convert to ISO C90 formatting.
  3071. 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
  3072. * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
  3073. unresolved symbols in R_ARM_NONE relocations.
  3074. 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
  3075. * elf32-arm.c (elf32_arm_final_link_relocate): Add
  3076. UNRESOLVED_RELOC_P argument. Set it appropriately.
  3077. (elf32_arm_relocate_section): Update call to
  3078. elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
  3079. unresolved_reloc instead.
  3080. 2005-03-23 Alan Modra <amodra@bigpond.net.au>
  3081. * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
  3082. .gnu.warning.* sections.
  3083. 2005-03-22 Alan Modra <amodra@bigpond.net.au>
  3084. * elf32-ppc.c (elf_linker_section_pointers_t): Remove
  3085. written_address_p.
  3086. (ppc_elf_create_linker_section): Don't try to reuse existing section.
  3087. (elf_create_pointer_linker_section): Delete info parm. Don't make
  3088. h dynamic. Don't set written_address_p.
  3089. (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
  3090. (bfd_put_ptr): Delete.
  3091. (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
  3092. Always write section contents. Assert global sym is def_regular.
  3093. Use offset bottom bit as a written flag.
  3094. (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
  3095. calls.
  3096. 2005-03-22 Alan Modra <amodra@bigpond.net.au>
  3097. * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
  3098. (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
  3099. and end syms.
  3100. 2005-03-21 Nick Clifton <nickc@redhat.com>
  3101. * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
  3102. targets.
  3103. (t2a1_bx_pc_insn): Likewise.
  3104. (t2a2_noop_insn): Likewise.
  3105. (t2a3_b_insn): Likewise.
  3106. (t2a1_push_insn): Likewise.
  3107. (t2a2_ldr_insn): Likewise.
  3108. (t2a3_mov_insn): Likewise.
  3109. (t2a4_bx_insn): Likewise.
  3110. (t2a5_pop_insn): Likewise.
  3111. (t2a6_bx_insn): Likewise.
  3112. (coff_arm_relocate_section): Only declare the high_address
  3113. variable for non WINCE targets.
  3114. 2005-03-22 Alan Modra <amodra@bigpond.net.au>
  3115. * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
  3116. SEC_LINKER_CREATED. Attach to dynobj.
  3117. (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
  3118. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  3119. * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
  3120. sym_offset. Add name, bss_name, sym_name, sym_val.
  3121. (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
  3122. Add sdata array of elf_linker_section_t.
  3123. (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
  3124. (enum elf_linker_section_enum): Delete.
  3125. (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
  3126. (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
  3127. the special sections are needed. Adjust htab->sdata refs.
  3128. Ensure dynobj is set in sreloc code.
  3129. (ppc_elf_size_dynamic_sections): Strip sdata sections.
  3130. (ppc_elf_set_sdata_syms): New function.
  3131. (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
  3132. (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
  3133. sym_val instead of sym_hash.
  3134. * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
  3135. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  3136. * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
  3137. (ppc_elf_merge_private_bfd_data): Likewise.
  3138. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  3139. * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
  3140. (ppc_elf_create_linker_section): Don't create rel_section.
  3141. (elf_create_pointer_linker_section): Don't size relocs.
  3142. (elf_finish_pointer_linker_section): Remove relative_reloc parm.
  3143. Don't generate relocs.
  3144. (ppc_elf_relocate_section): Adjust calls to
  3145. elf_finish_pointer_linker_section.
  3146. 2005-03-21 Alan Modra <amodra@bigpond.net.au>
  3147. * elf32-ppc.c (is_ppc_elf_target): New function.
  3148. (ppc_elf_merge_private_bfd_data): Use it rather than just testing
  3149. for bfd_target_elf_flavour. Do this test before endian check.
  3150. (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
  3151. (ppc_elf_size_dynamic_sections): Likewise.
  3152. 2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
  3153. * elf-bfd.h (elf_backend_data): Add int to
  3154. elf_backend_section_from_shdr.
  3155. (bfd_elf_section_data): Update comment for this_idx.
  3156. (_bfd_elf_make_section_from_shdr): Add int.
  3157. * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
  3158. * elf.c (_bfd_elf_make_section_from_shdr): Take section index
  3159. and use it to set this_idx in bfd_elf_section_data.
  3160. (bfd_section_from_shdr): Pass shindex to
  3161. _bfd_elf_make_section_from_shdr.
  3162. (_bfd_elf_section_from_bfd_section): Use this_idx in
  3163. bfd_elf_section_data to find section index.
  3164. * elf32-arm.c (elf32_arm_section_from_shdr): Take section
  3165. index and pass it to _bfd_elf_make_section_from_shdr.
  3166. * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
  3167. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
  3168. * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
  3169. * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
  3170. * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
  3171. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
  3172. * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
  3173. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
  3174. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
  3175. 2005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
  3176. Ross Ridge <rridge@csclub.uwaterloo.ca>
  3177. * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
  3178. character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
  3179. cases. Add comment.
  3180. 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
  3181. * elflink.c (elf_mark_used_section): Remove check for special
  3182. sections.
  3183. 2005-03-18 Andreas Schwab <schwab@suse.de>
  3184. * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
  3185. from bfd_vma to ia64_insn, remove broken cast.
  3186. 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
  3187. * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
  3188. (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
  3189. elf_m68k_finish_dynamic_sections): Use it.
  3190. 2005-03-17 Paul Brook <paul@codesourcery.com>
  3191. Dan Jacobowitz <dan@codesourcery.com>
  3192. Mark Mitchell <mark@codesourcery.com>
  3193. * elf32-arm.c (elf32_arm_modify_segment_map): New function.
  3194. (elf32_arm_additional_program_headers): Likewise.
  3195. (elf_backend_modify_segment_map): Define.
  3196. (elf_backend_additional_program_headers): Likewise.
  3197. (elf32_arm_symbian_modify_segment_map): Use
  3198. elf32_arm_modify_segment_map.
  3199. 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
  3200. * elflink.c (elf_mark_used_section): Check bfd_is_const_section
  3201. for special sections.
  3202. 2005-03-18 Alan Modra <amodra@bigpond.net.au>
  3203. * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
  3204. * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
  3205. section_sym_count param, and return number of section symbols.
  3206. (bfd_elf_size_dynamic_sections): Clear section symbol area of
  3207. .dynsym contents. Don't bother calling swap_symbol_out on the
  3208. first all-zero dynsym.
  3209. (elf_mark_used_section): Formatting. Avoid twiddling flags in
  3210. special sections like bfd_abs_section.
  3211. (bfd_elf_gc_sections): Spelling fix.
  3212. 2005-03-16 Fred Fish <fnf@specifixinc.com>
  3213. PR binutils/790
  3214. * dwarf2.c (read_indirect_string): Fix apparent typo, check
  3215. dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
  3216. 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
  3217. * elflink.c (elf_mark_used_section): New.
  3218. (bfd_elf_gc_sections): Call elf_gc_mark_section for
  3219. non-relocatable link if we don't do GC.
  3220. 2005-03-16 Nick Clifton <nickc@redhat.com>
  3221. Ben Elliston <bje@au.ibm.com>
  3222. * configure.in (werror): New switch: Add -Werror to the
  3223. compiler command line. Enabled by default. Disable via
  3224. --disable-werror.
  3225. * configure: Regenerate.
  3226. 2005-03-16 Nick Clifton <nickc@redhat.com>
  3227. * ecoff.c: Convert to ISO C90 formatting.
  3228. 2005-03-16 Alan Modra <amodra@bigpond.net.au>
  3229. * elf32-ppc.c: Divide file into general and linker specific
  3230. functions. Sort linker functions into roughly the order in which
  3231. they are called by the ELF linker code.
  3232. 2005-03-16 Alan Modra <amodra@bigpond.net.au>
  3233. * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
  3234. on section. Correct comment, and add FIXME.
  3235. (ppc_elf_additional_program_headers): Don't bump header count for
  3236. interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
  3237. (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
  3238. do allocate memory if they need it.
  3239. 2005-03-15 Mikkel Krautz <krautz@gmail.com>
  3240. * config.bfd (x86_64-elf): Add target.
  3241. 2005-03-15 Alan Modra <amodra@bigpond.net.au>
  3242. * po/es.po: Commit new Spanish translation.
  3243. 2005-03-14 H.J. Lu <hongjiu.lu@intel.com>
  3244. * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
  3245. for global symbol when reporting overflow.
  3246. 2005-03-11 Jakub Jelinek <jakub@redhat.com>
  3247. * libbfd-in.h (_bfd_ar_spacepad): New prototype.
  3248. * libbfd.h: Rebuilt.
  3249. * archive.c (_bfd_ar_spacepad): New function.
  3250. (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
  3251. bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
  3252. coff_write_armap): Use it.
  3253. (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
  3254. uid/gid support.
  3255. * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
  3256. 2005-03-10 Mark Kettenis <kettenis@gnu.org>
  3257. * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
  3258. has_table to the start of the function.
  3259. 2005-03-10 Ben Elliston <bje@au.ibm.com>
  3260. * archive.c: Include hashtab.h.
  3261. (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
  3262. (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
  3263. (hash_file_ptr): New function.
  3264. (eq_file_ptr): Likewise.
  3265. (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
  3266. * libbfd-in.h: Include hashtab.h.
  3267. (struct artdata): Change `cache' member type to htab_t.
  3268. * libbfd.h: Rebuild.
  3269. 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
  3270. * configure.in: Bump version to 2.16.90.
  3271. * configure: Regenerated.
  3272. 2005-03-07 Jakub Jelinek <jakub@redhat.com>
  3273. * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
  3274. close is a function like macro in system headers.
  3275. 2005-03-07 Alan Modra <amodra@bigpond.net.au>
  3276. PR ld/778
  3277. * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
  3278. _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
  3279. 2005-03-06 Alan Modra <amodra@bigpond.net.au>
  3280. * elf.c (elfcore_grok_win32pstatus): Warning fixes.
  3281. 2005-03-05 Alan Modra <amodra@bigpond.net.au>
  3282. * po/bfd.pot: Regenerate.
  3283. 2005-03-05 Alan Modra <amodra@bigpond.net.au>
  3284. * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
  3285. with is_func.
  3286. (func_desc_adjust): Force dot-syms local in executables as well
  3287. as shared libs.
  3288. 2005-03-04 David Daney <ddaney@avtrex.com>
  3289. * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
  3290. '__gnu_local_gp' symbol used by gas -mno-shared.
  3291. 2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
  3292. * elf-bfd.h (elf_backend_data): Add "const char *" to
  3293. elf_backend_section_from_phdr.
  3294. * elf.c (bfd_section_from_phdr): Pass "proc" to the
  3295. elf_backend_section_from_phdr hook.
  3296. 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
  3297. Joseph Myers <joseph@codesourcery.com>
  3298. * elfxx-mips.c (struct mips_got_entry): Add tls_type.
  3299. (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
  3300. and tls_ldm_offset.
  3301. (struct mips_elf_got_per_bfd_arg): Add global_count.
  3302. (struct mips_elf_count_tls_arg): New.
  3303. (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
  3304. (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
  3305. (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
  3306. (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
  3307. (TLS_RELOC_P): Define.
  3308. (TP_OFFSET, DTP_OFFSET): Define.
  3309. (dtprel_base, tprel_base): New functions.
  3310. (mips_elf_link_hash_newfunc): Initialize tls_type.
  3311. (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
  3312. (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
  3313. TLS entries.
  3314. (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
  3315. (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
  3316. (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
  3317. (mips_tls_got_index): New functions.
  3318. (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
  3319. arguments. Pass them to mips_elf_create_local_got_entry. Use
  3320. mips_tls_got_index.
  3321. (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
  3322. Handle TLS entries.
  3323. (mips_elf_got_page, mips_elf_got16_entry): Update calls to
  3324. mips_elf_create_local_got_entry.
  3325. (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
  3326. arguments. Handle TLS entries.
  3327. (mips_elf_sort_hash_table_f): Add non-TLS assertions.
  3328. (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
  3329. TLS entries.
  3330. (mips_elf_record_global_got_symbol): Likewise.
  3331. (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
  3332. Count TLS entries.
  3333. (mips_elf_merge_gots): Handle TLS entries when merging.
  3334. (mips_elf_initialize_tls_index): New function.
  3335. (mips_elf_set_global_got_offset): Handle TLS entries.
  3336. (mips_elf_adjust_gp): Handle TLS.
  3337. (mips_elf_multi_got): Remove redundant call to
  3338. mips_elf_resolve_final_got_entries. Initialize global_count.
  3339. Correct a comment. Initialize new TLS members of mips_got_info.
  3340. Assign TLS GOT indexes for new GOTs.
  3341. (mips_elf_create_got_section): Initialize new TLS members of
  3342. mips_got_info.
  3343. (mips_elf_calculate_relocation): Handle TLS relocs.
  3344. (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
  3345. functions.
  3346. (_bfd_mips_elf_always_size_sections): Handle TLS.
  3347. (_bfd_mips_elf_size_dynamic_sections): Likewise.
  3348. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
  3349. changed functions.
  3350. (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
  3351. (_bfd_mips_elf_hide_symbol): Handle TLS.
  3352. * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
  3353. (mips_reloc_map): Add TLS relocs.
  3354. * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
  3355. * elf64-mips.c (mips_elf64_howto_table_rel)
  3356. (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
  3357. * reloc.c: Define new MIPS TLS relocations.
  3358. * libbfd.h, bfd-in2.h: Regenerated.
  3359. 2005-03-02 Jan Beulich <jbeulich@novell.com>
  3360. * Makefile.am: Add dependency of cache.o on libiberty.h.
  3361. * cache.c: Include libiberty.h.
  3362. (bfd_open_file): Use unlink_if_ordinary instead of unlink.
  3363. 2005-03-01 Zack Weinberg <zack@codesourcery.com>
  3364. * elf.c (bfd_section_from_shdr <default case>): Call
  3365. elf_backend_section_from_shdr hook unconditionally, and return
  3366. what it returns.
  3367. (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
  3368. * elfxx-target.h (elf_backend_section_from_shdr)
  3369. (elf_backend_section_from_phdr): Default to
  3370. _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
  3371. respectively.
  3372. 2005-03-01 Alan Modra <amodra@bigpond.net.au>
  3373. * targets.h: Typo fix.
  3374. * bfd-in2.h: Regenerate.
  3375. * bout.c (b_out_write_object_contents): Don't use sizeof on host
  3376. structs to size on-disk structures.
  3377. (b_out_set_section_contents): Size the external struct, not the
  3378. internal one for on-disk size.
  3379. (b_out_sizeof_headers): Likewise.
  3380. 2005-03-01 Alan Modra <amodra@bigpond.net.au>
  3381. * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
  3382. entry points with the func descriptor as well as undefweak.
  3383. 2005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
  3384. * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
  3385. present when IMPORT_NAME_UNDOECRATE is used.
  3386. 2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
  3387. PR 757
  3388. * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
  3389. int.
  3390. * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
  3391. to _bfd_elf_merge_symbol.
  3392. * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
  3393. unsigned int to return the alignment of the old common symbol
  3394. in the dynamic object.
  3395. (_bfd_elf_add_default_symbol): Pass NULL to
  3396. _bfd_elf_merge_symbol.
  3397. (elf_link_add_object_symbols): Pass &old_alignment to
  3398. _bfd_elf_merge_symbol. Get the alignment of the new common
  3399. symbol in the dynamic object.
  3400. 2005-02-24 Ben Elliston <bje@au.ibm.com>
  3401. * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
  3402. * format.c (bfd_check_format_matches): Likewise.
  3403. * archive.c (BFD_GNU960_ARMAG): Likewise.
  3404. (bfd_generic_archive_p): Likewise.
  3405. (_bfd_write_archive_contents): Likewise.
  3406. 2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
  3407. * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
  3408. * configure: Regenerate.
  3409. 2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
  3410. * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
  3411. COMDAT group sections to have default visibility.
  3412. 2005-02-24 Alan Modra <amodra@bigpond.net.au>
  3413. * coffcode.h (coff_print_aux): Warning fix.
  3414. * elf-m10300.c (mn10300_elf_relax_section): Use section->id
  3415. instead of section pointer to identify.
  3416. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
  3417. the correct size buffer for local sym mangling too.
  3418. (h8300_bfd_link_add_symbols): Likewise.
  3419. * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
  3420. warning.
  3421. * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
  3422. * elf32-xtensa.c (literal_value_hash): Warning fix.
  3423. * versados.c (process_otr): Warning fix.
  3424. (versados_canonicalize_reloc): Likewise.
  3425. * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
  3426. * vms.c (fill_section_ptr): Warning fix.
  3427. 2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
  3428. * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
  3429. * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
  3430. 2005-02-23 Nick Clifton <nickc@redhat.com>
  3431. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
  3432. the relvaddr field of the Elf32_crinfo structure.
  3433. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
  3434. variables that are passed by reference to
  3435. m68hc11_get_relocation_value in case that function does not
  3436. initialise them.
  3437. * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
  3438. return statements and replace with a single return at the end of
  3439. the function. This helps pacify the flow analysis code in gcc 4.0.
  3440. * elf.c (_bfd_elf_compute_section_file_positions): Initialise
  3441. strtab to avoid compile time warning.
  3442. 2005-02-23 Ben Elliston <bje@au.ibm.com>
  3443. * opncls.c (bfd_zalloc): Document this function.
  3444. 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
  3445. * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
  3446. SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
  3447. Replace SEC_SHARED with SEC_COFF_SHARED.
  3448. (styp_to_sec_flags): Likewise.
  3449. * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
  3450. (TARGET_LITTLE_SYM): Likewise.
  3451. * section.c (SEC_ARCH_BIT_0): Removed.
  3452. (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
  3453. SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
  3454. (SEC_SHARED): Renamed to ...
  3455. (SEC_COFF_SHARED): This.
  3456. (SEC_BLOCK): Renamed to ...
  3457. (SEC_TIC54X_BLOCK): This.
  3458. (SEC_CLINK): Renamed to ...
  3459. (SEC_TIC54X_CLINK): This.
  3460. (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
  3461. SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
  3462. end.
  3463. * bfd-in2.h: Regenerated.
  3464. 2005-02-21 Fred Fish <fnf@specifixinc.com>
  3465. * dwarf2.c (find_abstract_instance_name): Call recursively
  3466. to handle a DW_AT_specification.
  3467. 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3468. * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
  3469. mips_elf_create_dynamic_relocation,
  3470. _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
  3471. Remove #if 0'd code.
  3472. 2005-02-21 Alan Modra <amodra@bigpond.net.au>
  3473. * Makefile.am: Run "make dep-am"
  3474. * Makefile.in: Regenerate.
  3475. 2005-02-21 Alan Modra <amodra@bigpond.net.au>
  3476. * coffgen.c (bfd_coff_get_comdat_section): Check that
  3477. coff_section_data isn't NULL.
  3478. 2005-02-21 Alan Modra <amodra@bigpond.net.au>
  3479. * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
  3480. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
  3481. * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
  3482. useless assignments.
  3483. (xcoff_write_archive_contents_big): Likewise.
  3484. (_bfd_xcoff_put_ldsymbol_name): Likewise.
  3485. * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
  3486. * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
  3487. * cofflink.c (process_embedded_commands): Warning fixes.
  3488. * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
  3489. Warning fixes.
  3490. * dwarf2.c: Warning fixes.
  3491. * elf-bfd.h: Likewise.
  3492. * elf-eh-frame.c: Likewise.
  3493. * elf-strtab.c: Likewise.
  3494. * elf.c: Likewise.
  3495. * elf32-m68k.c: Likewise.
  3496. * elf32-ppc.c: Likewise.
  3497. * elf32-sh-symbian.c: Likewise.
  3498. * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
  3499. * elf64-sh64.c: Likewise.
  3500. * peicode.h: Likewise.
  3501. * elf64-mmix.c: Warning fixes.
  3502. * elfcode.h: Likewise.
  3503. * elfxx-mips.c: Likewise.
  3504. * libbfd-in.h: Likewise.
  3505. * libbfd.c: Likewise.
  3506. * mach-o.c: Likewise.
  3507. * merge.c: Likewise.
  3508. * mmo.c: Likewise.
  3509. * opncls.c: Likewise.
  3510. * pef.c: Likewise.
  3511. * srec.c: Likewise.
  3512. * vms-hdr.c: Likewise.
  3513. * vms-tir.c: Likewise.
  3514. * xtensa-isa.c: Likewise.
  3515. * xtensa-modules.c: Likewise.
  3516. * xsym.c: Likewise.
  3517. (pstrcmp): Use correct choice of string lengths. Fix return value.
  3518. (bfd_sym_module_name): Correct string length.
  3519. * bfd-in2.h: Regenerate.
  3520. * libbfd.h: Regenerate.
  3521. 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
  3522. * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
  3523. uninitialized check_segment[1] in TLSMOFF case.
  3524. Reported by Alan Modra.
  3525. (elf32_frv_relocate_section): Improve errors and warnings.
  3526. 2005-02-17 Alan Modra <amodra@bigpond.net.au>
  3527. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
  3528. 2005-02-16 Alan Modra <amodra@bigpond.net.au>
  3529. * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
  3530. * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
  3531. * pef.c (bfd_pef_scan): Don't ignore return value of
  3532. bfd_pef_scan_start_address.
  3533. * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
  3534. bfd_mach_o_scan_start_address.
  3535. * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
  3536. * elfxx-mips.c: Remove unnecessary prototypes.
  3537. (sort_dynamic_relocs_64): Abort if not BFD64.
  3538. 2005-02-16 Alan Modra <amodra@bigpond.net.au>
  3539. * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
  3540. Skip toc reloc adjust if reloc_count is zero.
  3541. 2005-02-15 Nigel Stephens <nigel@mips.com>
  3542. Maciej W. Rozycki <macro@mips.com>
  3543. * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
  3544. reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
  3545. R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
  3546. (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
  3547. (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
  3548. dst_mask.
  3549. (mips16_gprel_reloc): Remove bit shuffling; call
  3550. _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
  3551. and _bfd_mips16_elf_reloc_shuffle() instead.
  3552. (mips16_reloc_map): New reloc map for MIPS16 relocs.
  3553. (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
  3554. relocs.
  3555. (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
  3556. elf_mips16_howto_table_rel.
  3557. * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
  3558. MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
  3559. relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
  3560. (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
  3561. (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
  3562. dst_mask.
  3563. (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
  3564. reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
  3565. R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
  3566. placeholders.
  3567. (mips16_gprel_reloc): Remove bit shuffling; call
  3568. _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
  3569. and _bfd_mips16_elf_reloc_shuffle() instead.
  3570. (mips16_reloc_map): New reloc map for MIPS16 relocs.
  3571. (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
  3572. relocs.
  3573. (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
  3574. mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
  3575. * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
  3576. REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
  3577. R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
  3578. (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
  3579. (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
  3580. dst_mask.
  3581. (mips16_gprel_reloc): Remove bit shuffling; call
  3582. _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
  3583. and _bfd_mips16_elf_reloc_shuffle() instead.
  3584. (mips16_reloc_map): New reloc map for MIPS16 relocs.
  3585. (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
  3586. relocs.
  3587. (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
  3588. elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
  3589. * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
  3590. handle bit shuffling for MIPS16 relocs.
  3591. (_bfd_mips16_elf_reloc_shuffle): Likewise.
  3592. (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
  3593. and _bfd_mips16_elf_reloc_shuffle().
  3594. (_bfd_mips_elf_generic_reloc): Likewise.
  3595. (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
  3596. and R_MIPS16_LO16.
  3597. (mips_elf_obtain_contents): Remove bit shuffling.
  3598. (mips_elf_perform_relocation): Likewise; call
  3599. _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
  3600. instead.
  3601. (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
  3602. and R_MIPS16_LO16.
  3603. * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
  3604. (_bfd_mips16_elf_reloc_shuffle): Likewise.
  3605. * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
  3606. (BFD_RELOC_MIPS16_HI16_S): Likewise.
  3607. (BFD_RELOC_MIPS16_LO16): Likewise.
  3608. * bfd-in2.h: Regenerate.
  3609. * libbfd.h: Regenerate.
  3610. 2005-02-15 Jan Beulich <jbeulich@novell.com>
  3611. * elfxx-ia64.c (ia64_howto_table): Correct strings for
  3612. R_IA64_DTPMOD64[LM]SB.
  3613. 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
  3614. * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
  3615. backward branch in the same section.
  3616. (elfNN_ia64_relocate_section): Inform users that the input
  3617. section is too big to relax br instruction when overflow
  3618. happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
  3619. and R_IA64_PCREL21F.
  3620. 2005-02-14 Orjan Friberg <orjanf@axis.com>
  3621. * elfcore.h (elf_core_file_p): Move the call to
  3622. elf_backend_object_p to allow the correct machine to be set before
  3623. processing the program headers.
  3624. 2005-02-14 Nick Clifton <nickc@redhat.com>
  3625. PR binutils/716
  3626. * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
  3627. aware flag from the input bfd to the output bfd.
  3628. 2005-02-11 Maciej W. Rozycki <macro@mips.com>
  3629. * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
  3630. R_MIPS_LITERAL relocations for external symbols.
  3631. * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
  3632. * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
  3633. 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
  3634. * bfd-in2.h: Rebuilt.
  3635. 2005-02-11 Paul Brook <paul@codesourcery.com>
  3636. * elf-bfd.h (struct elf_link_hash_table): Add
  3637. is_relocatable_executable.
  3638. * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
  3639. * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
  3640. symbols in relocatable executables.
  3641. (bfd_elf_record_link_assignment): Create dynamic section symbols in
  3642. relocatable executables.
  3643. (_bfd_elf_link_renumber_dynsyms): Ditto.
  3644. (bfd_elf_final_link): Ditto.
  3645. * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
  3646. relocations into relocatable executables.
  3647. (elf32_arm_check_relocs): Crate dynamic sections for relocatable
  3648. executables. Also copy absolute relocations.
  3649. (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
  3650. in relocatable executables.
  3651. (allocate_dynrelocs): Copy relocations for relocatable executables.
  3652. Output dynamic symbols for symbols defined in linker scripts.
  3653. 2005-02-11 Nick Clifton <nickc@redhat.com>
  3654. * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
  3655. to avoid a compile time warning.
  3656. * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
  3657. BFD_ASSERT.
  3658. * coff-tic4x.c (coff_rtype_to_howto): Move definition before
  3659. inclusion of coffcode.h so that it is actually picked up.
  3660. * coffcode.h (coff_std_swap_table): Add an unused attribute in
  3661. case it is not used.
  3662. * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
  3663. structure and macro.
  3664. * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
  3665. array.
  3666. * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
  3667. to protect the declaration of this array.
  3668. * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
  3669. Avoid call to memcpy with a size of 0.
  3670. 2005-02-12 Alan Modra <amodra@bigpond.net.au>
  3671. * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
  3672. old-style branches to undefined dot-symbols which will be
  3673. satisfied by a plt call.
  3674. 2005-02-11 Alan Modra <amodra@bigpond.net.au>
  3675. * elf64-ppc.c (move_plt_plist): New function, extracted from..
  3676. (ppc64_elf_copy_indirect_symbol): ..here.
  3677. (func_desc_adjust): Use move_plt_plist.
  3678. 2005-02-10 Paul Brook <paul@codesourcery.com>
  3679. * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
  3680. 2005-02-10 Paul Brook <paul@codesourcery.com>
  3681. * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
  3682. symbols local.
  3683. (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
  3684. (elf_link_renumber_local_hash_table_dynsyms): New function.
  3685. (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
  3686. 2005-02-10 Jakub Jelinek <jakub@redhat.com>
  3687. * bfd-in.h (BFD_LINKER_CREATED): Define.
  3688. * bfd-in2.h: Rebuilt.
  3689. * elflink.c (bfd_elf_size_dynamic_sections): Disregard
  3690. BFD_LINKER_CREATED bfds when determining input bfds without
  3691. .note.GNU-stack section.
  3692. 2005-02-10 Maciej W. Rozycki <macro@mips.com>
  3693. * elf64-mips.c (mips16_gprel_reloc): Update a comment.
  3694. * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
  3695. relocations against external symbols unchanged.
  3696. 2005-02-08 Paul Brook <paul@codesourcery.com>
  3697. * elflink.c (elf_link_input_bfd): Ignore symbols from null input
  3698. sections.
  3699. 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
  3700. * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
  3701. prefix here.
  3702. 2005-02-07 Maciej W. Rozycki <macro@mips.com>
  3703. * elf64-mips.c: Fix formatting throughout.
  3704. 2005-02-07 Maciej W. Rozycki <macro@mips.com>
  3705. * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
  3706. 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
  3707. * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
  3708. *ABS*/*UND* sections.
  3709. (elf32_frv_relocate_section): Move zero-addend-required error...
  3710. (_frv_emit_got_relocs_plt_entries): ... here. Report error for
  3711. missing needed TLS section.
  3712. 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
  3713. * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
  3714. being the last symbol.
  3715. (aout_link_add_symbols): Just return TRUE if a warning
  3716. symbol was last.
  3717. 2005-02-07 Maciej W. Rozycki <macro@mips.com>
  3718. * elf32-mips.c (mips_elf_gprel32_reloc): Reject
  3719. R_MIPS_GPREL32 relocations against external symbols.
  3720. * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
  3721. comment.
  3722. 2005-02-07 Alan Modra <amodra@bigpond.net.au>
  3723. * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
  3724. * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
  3725. elf_string_from_elf_strtab.
  3726. (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
  3727. (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
  3728. if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
  3729. SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
  3730. looking at cached symtab info first, before iterating over headers.
  3731. For SHT_REL and SHT_RELA, load dynsymtab if needed.
  3732. * elfcode.h (elf_object_p): Don't load section header stringtab
  3733. specially.
  3734. 2005-02-06 H.J. Lu <hongjiu.lu@intel.com>
  3735. * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
  3736. against protected function when building shared library.
  3737. PR 584
  3738. * elf64-x86-64.c (is_32bit_relative_branch): New.
  3739. (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
  3740. protected function symbol when building shared library for
  3741. 32bit relative branch instruction.
  3742. 2005-02-06 Alan Modra <amodra@bigpond.net.au>
  3743. * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
  3744. syms when doing a relocatable link.
  3745. (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
  3746. at u.def.section.
  3747. (ppc64_elf_tls_setup): Likewise.
  3748. (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
  3749. 2005-02-04 Alan Modra <amodra@bigpond.net.au>
  3750. * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
  3751. (link_hash_newfunc): Clear all locals using memset.
  3752. (make_fdh): Remove flags param. Always create fake func desc
  3753. weak. Link the descriptor with the code entry sym.
  3754. (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
  3755. (add_symbol_adjust): Adjust make_fdh call.
  3756. (func_desc_adjust): Likewise. Twiddle any pre-existing fake
  3757. descriptor to strong undefined if code entry is strong.
  3758. 2005-02-04 Alan Modra <amodra@bigpond.net.au>
  3759. * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
  3760. lookup here. Set to new before calling bfd_link_repair_undef_list.
  3761. (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
  3762. 2005-02-03 Alan Modra <amodra@bigpond.net.au>
  3763. * linker.c (_bfd_link_hash_newfunc): Set all local fields.
  3764. 2005-02-03 Alan Modra <amodra@bigpond.net.au>
  3765. * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
  3766. * elflink.c (elf_smash_syms): Restore symbols that were undefweak
  3767. before the as-needed lib was loaded. Abort on unexpected refs.
  3768. 2005-02-02 Alan Modra <amodra@bigpond.net.au>
  3769. * elflink.c (elf_smash_syms): Expand comments.
  3770. (elf_link_add_object_symbols): Only call elf_smash_syms for
  3771. as-needed dynamic objects.
  3772. * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
  3773. everything, just the field specific to ia64.
  3774. * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
  3775. 2005-02-01 Alan Modra <amodra@bigpond.net.au>
  3776. * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
  3777. (make_fdh): ..here. New function. Don't set BSF_OBJECT for
  3778. undefined syms.
  3779. (struct add_symbol_adjust_data): New.
  3780. (add_symbol_adjust): Make an undefweak func desc for old ABI
  3781. objects to link with --as-needed shared libs. Return fail status.
  3782. Don't adjust old ABI func entry sym to weak if func desc syms
  3783. isn't defined.
  3784. (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
  3785. and return status.
  3786. 2005-02-01 Hans-Peter Nilsson <hp@axis.com>
  3787. * cpu-cris.c (get_compatible): Rearrange disabled code and comment
  3788. for clarity.
  3789. 2005-02-01 Alan Modra <amodra@bigpond.net.au>
  3790. * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
  3791. * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
  3792. remove anything but new and undefweak.
  3793. * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
  3794. existing _DYNAMIC.
  3795. (_bfd_elf_create_dynamic_sections): Formatting.
  3796. (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
  3797. (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
  3798. (struct elf_smash_data): New.
  3799. (elf_smash_syms): New function.
  3800. (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
  3801. unneeded dynamic objects to loaded list.
  3802. (elf_link_output_extsym): Don't handle as-needed here. Strip
  3803. bfd_link_hash_new symbols.
  3804. * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
  3805. delref when dynindx is already -1.
  3806. * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
  3807. symbols.
  3808. * elfxx-mips.c (mips_elf_output_extsym): Likewise.
  3809. 2005-02-01 Ben Elliston <bje@au.ibm.com>
  3810. * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
  3811. 2005-02-01 Ben Elliston <bje@au.ibm.com>
  3812. * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
  3813. bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
  3814. coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
  3815. coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
  3816. cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
  3817. elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
  3818. elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
  3819. elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
  3820. i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
  3821. nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
  3822. pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
  3823. sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
  3824. hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
  3825. throughout. Similarly, collapse #if 1'd code.
  3826. 2005-02-01 Ben Elliston <bje@au.ibm.com>
  3827. * elf-bfd.h (bfd_elf_discard_group): Remove.
  3828. * elf.c (bfd_elf_discard_group): Likewise.
  3829. * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
  3830. 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
  3831. * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
  3832. (_bfd_elf_eh_frame_address_size): Declare.
  3833. * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
  3834. (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
  3835. * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
  3836. (elf_backend_eh_frame_address_size): Define.
  3837. * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
  3838. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
  3839. size from the new backend hook.
  3840. (_bfd_elf_write_section_eh_frame): Likewise.
  3841. (_bfd_elf_eh_frame_address_size): New function.
  3842. 2005-01-31 Andrew Cagney <cagney@gnu.org>
  3843. * configure: Regenerate to track ../gettext.m4.
  3844. 2005-01-31 Mark Mitchell <mark@codesourcery.com>
  3845. * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
  3846. SHF_WRITE for .init_array, .fini_array, and .preinit_array.
  3847. 2005-01-31 Nick Clifton <nickc@redhat.com>
  3848. * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
  3849. sparc-lynxos, vax-vms) be obsolete.
  3850. 2005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
  3851. * elf-bfd.h (struct elf_backend_data): Add minpagesize.
  3852. * elf32-arm.c (ELF_MINPAGESIZE): Define.
  3853. * elf32-ppc.c (ELF_MINPAGESIZE): Define.
  3854. * elfcode.h (elf_object_p): Use minpagesize instead of
  3855. maxpagesize.
  3856. * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
  3857. (elfNN_bed): Include ELF_MINPAGESIZE.
  3858. 2005-01-28 Julian Brown <julian@codesourcery.com>
  3859. * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
  3860. * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
  3861. * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
  3862. (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
  3863. passing flag value from ld. Set flag value in global hash table entry.
  3864. (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
  3865. relocation.
  3866. 2005-01-27 Andrew Cagney <cagney@gnu.org>
  3867. * configure: Regenerate to track ../gettext.m4 change.
  3868. 2005-01-25 Mark Mitchell <mark@codesourcery.com>
  3869. * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
  3870. SymbianOS.
  3871. 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
  3872. 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
  3873. * elf32-frv.c (elf32_frv_relocate_section): Force local binding
  3874. for TLSMOFF.
  3875. * reloc.c: Add R_FRV_TLSMOFF.
  3876. * elf32-frv.c (elf32_frv_howto_table): Likewise.
  3877. (frv_reloc_map, frv_reloc_type_lookup): Map it.
  3878. (elf32_frv_relocate_section): Handle it.
  3879. (elf32_frv_check_relocs): Likewise.
  3880. * libbfd.h, bfd-in2.h: Rebuilt.
  3881. 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
  3882. * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
  3883. when given an undefweak TLS symbol. Fix constant TLS PLT entries
  3884. such that they return the constant in gr9.
  3885. (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
  3886. symbols.
  3887. (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
  3888. too, such that they shrink on relaxation.
  3889. (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
  3890. marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
  3891. (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
  3892. if we can guarantee the use of 16-bit constants.
  3893. 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
  3894. Introduce TLS support for FR-V FDPIC.
  3895. * reloc.c: Add TLS relocations.
  3896. * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
  3897. (elf32_frv_rel_tlsdesc_value_howto): New.
  3898. (elf32_frv_rel_tlsoff_howto): New.
  3899. (frv_reloc_map): Add new mappings.
  3900. (struct frvfdpic_elf_link_hash_table): Add pointer to summary
  3901. reloc information.
  3902. (frvfdpic_dynamic_got_plt_info): New.
  3903. (frvfdpic_plt_tls_ret_offset): New.
  3904. (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
  3905. (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
  3906. (struct _frvfdpic_dynamic_got_plt_info): Likewise.
  3907. (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
  3908. section as local.
  3909. (struct frvfdpic_relocs_info): Add TLS fields.
  3910. (frvfdpic_relocs_info_hash): Warning clean up.
  3911. (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
  3912. (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
  3913. (FRVFDPIC_TLS_BIAS): Define.
  3914. (tls_biased_base): New.
  3915. (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
  3916. relocations.
  3917. (frv_reloc_type_lookup): Likewise.
  3918. (frvfdpic_info_to_howto_rel): Likewise.
  3919. (elf32_frv_relocate_section): Likewise.
  3920. (_frv_create_got_section): Create the PLT section here.
  3921. (elf32_frvfdpic_create_dynamic_sections): Not here.
  3922. (_frvfdpic_count_nontls_entries): Move out of...
  3923. (_frvfdpic_count_got_plt_entries): ... here.
  3924. (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
  3925. (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
  3926. support.
  3927. (_frvfdpic_relax_tls_entries): New.
  3928. (_frvfdpic_compute_got_alloc_data): Add TLS support.
  3929. (_frvfdpic_get_tlsdesc_entry): New.
  3930. (_frvfdpic_assign_got_entries): Add TLS support.
  3931. (_frvfdpic_assign_plt_entries): Likewise.
  3932. (_frvfdpic_reset_got_plt_entries): New.
  3933. (_frvfdpic_size_got_plt): Move out of...
  3934. (elf32_frvfdpic_size_dynamic_sections): ... here.
  3935. (_frvfdpic_relax_got_plt_entries): New.
  3936. (elf32_frvfdpic_relax_section): New.
  3937. (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
  3938. (elf32_frv_check_relocs): Add TLS support.
  3939. (bfd_elf32_bfd_relax_section): Define for FDPIC.
  3940. * libbfd.h, bfd-in2.h: Rebuilt.
  3941. 2005-01-25 Alan Modra <amodra@bigpond.net.au>
  3942. * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
  3943. loadable reloc sections.
  3944. (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
  3945. (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
  3946. 2005-01-25 Alan Modra <amodra@bigpond.net.au>
  3947. * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
  3948. sections immediately when linking shared libs. Instead, wait until
  3949. we know a lib is needed.
  3950. (_bfd_elf_link_create_dynstrtab): Extract from..
  3951. (_bfd_elf_link_create_dynamic_sections_): ..here.
  3952. (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
  3953. _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
  3954. for non-existent .dynamic.
  3955. (elf_link_output_extsym): Don't complain about undefined symbols
  3956. in as-needed dynamic libs that aren't actually linked.
  3957. 2005-01-24 Andrew Cagney <cagney@gnu.org>
  3958. * configure: Regenerate, ../gettext.m4 was updated.
  3959. 2005-01-21 Ben Elliston <bje@au.ibm.com>
  3960. * aout-encap.c: Remove unused file.
  3961. 2005-01-19 H.J. Lu <hongjiu.lu@intel.com>
  3962. PR 679
  3963. * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
  3964. non-function symbols are local.
  3965. (_bfd_elf_symbol_refs_local_p): Likewise.
  3966. 2005-01-18 Alan Modra <amodra@bigpond.net.au>
  3967. * bfd.c (bfd_link_just_syms): Add abfd param.
  3968. * bfd-in2.h: Regenerate.
  3969. 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
  3970. * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
  3971. (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
  3972. instructions. If the amount of padding is known, reduce the size
  3973. of the CIE or FDE by that amount.
  3974. 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
  3975. * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
  3976. augmentation_size. Use bfd_signed_vmas for data_align.
  3977. * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
  3978. (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
  3979. functions. Don't read past the end of the enclosing CIE or FDE.
  3980. (skip_bytes): New utility function.
  3981. (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
  3982. sanity checking.
  3983. (_bfd_elf_write_section_eh_frame): Use new functions.
  3984. 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
  3985. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
  3986. assert-style REQUIRE() macro to handle sanity checks.
  3987. 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
  3988. * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
  3989. (comp_unit): Here.
  3990. (read_unsigned_leb128): Removed.
  3991. (read_signed_leb128): Removed.
  3992. (find_abstract_instance_name): Updated.
  3993. (parse_comp_unit): Accept info_ptr_unit.
  3994. (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
  3995. comp unit and pass it to parse_comp_unit.
  3996. * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
  3997. (read_signed_leb128): Moved to ...
  3998. * libbfd.c: Here.
  3999. * libbfd-in.h (read_unsigned_leb128): New prototype.
  4000. (read_signed_leb128): Likewise.
  4001. * libbfd.h: Regenerated.
  4002. 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
  4003. Nick Clifton <nickc@redhat.com>
  4004. * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
  4005. arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
  4006. arch_sh4a_nofpu_up in order to match the external names and make the
  4007. testsuite's job easier.
  4008. * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
  4009. names.
  4010. * bfd-in2.h: Regenerate.
  4011. 2005-01-15 Andrew Cagney <cagney@gnu.org>
  4012. * bfd.m4: New file.
  4013. * acinclude.m4: Move BFD_NEED_DECLARATION,
  4014. BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
  4015. the new file bfd.m4. Include ../bfd/bfd.m4.
  4016. * configure: Re-generate.
  4017. 2005-01-12 Alan Modra <amodra@bigpond.net.au>
  4018. * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
  4019. (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
  4020. reaching PLT.
  4021. (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
  4022. R_PPC_RELAX32PC_PLT.
  4023. 2005-01-11 Alan Modra <amodra@bigpond.net.au>
  4024. * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
  4025. symbols.
  4026. * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
  4027. * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
  4028. * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
  4029. * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
  4030. * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
  4031. * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
  4032. * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
  4033. * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
  4034. * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
  4035. * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
  4036. * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
  4037. * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
  4038. * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
  4039. * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
  4040. 2005-01-11 Alan Modra <amodra@bigpond.net.au>
  4041. * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
  4042. .dynsbss flags.
  4043. 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
  4044. * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
  4045. * bfd-in2.h: Regenerate.
  4046. * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
  4047. to support these new machine values.
  4048. * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
  4049. the maxq10.
  4050. (bfd_maxq_arch): Update values for the maxq20.
  4051. 2005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
  4052. * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
  4053. non-shared object, do not reserve space in .plt and .rela.plt for
  4054. regular symbols neither defined nor referenced in shared objects.
  4055. 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
  4056. * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
  4057. to zero the structure.
  4058. (create_got_section): Use BFD_ASSERT instead of abort.
  4059. * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
  4060. 'srelgot' fields.
  4061. (create_got_section): New function.
  4062. (sparc64_elf_create_dynamic_sections): Likewise.
  4063. (sparc64_elf_check_relocs): Invoke create_got_section instead of
  4064. _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
  4065. (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
  4066. (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
  4067. (sparc64_elf_finish_dynamic_symbol): Likewise.
  4068. (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
  4069. (elf_backend_create_dynamic_sections): Define to
  4070. sparc64_elf_create_dynamic_sections.
  4071. 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
  4072. * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
  4073. (elf_backend_omit_section_dynsym): Define to it.
  4074. * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
  4075. (elf_backend_omit_section_dynsym): Define to it.
  4076. 2005-01-07 Jakub Jelinek <jakub@redhat.com>
  4077. * elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
  4078. PT_DYNAMIC segment, unless .dynamic.
  4079. 2005-01-06 Paul Brook <paul@codesourcery.com>
  4080. * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
  4081. * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
  4082. * configure: Regenerate.
  4083. * elf32-arm.c: Add VxWorks target bfd.
  4084. (USE_REL): Remove.
  4085. (elf32_arm_link_hash_table): Add use_rel.
  4086. (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
  4087. elf32_arm_relocate_section): Replace USE_REL with runtime check.
  4088. Correct offset calculation for RELA case.
  4089. (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
  4090. elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
  4091. (elf32_arm_vxworks_link_hash_table_create): New function.
  4092. * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
  4093. (bfd_elf32_littlearm_vxworks_vec): Ditto.
  4094. (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
  4095. 2005-01-06 Alan Modra <amodra@bigpond.net.au>
  4096. * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
  4097. multi_toc_needed.
  4098. (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
  4099. (ppc64_elf_check_relocs): Update references to has_gp_reloc.
  4100. (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
  4101. (ppc64_elf_next_toc_section): Heed no_multi_toc.
  4102. (ppc64_elf_reinit_toc): Set multi_toc_needed.
  4103. (toc_adjusting_stub_needed): Rewrite.
  4104. (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
  4105. toc tests. Adjust for toc_adjusting_stub_needed changes.
  4106. (ppc64_elf_size_stubs): Update references to has_gp_reloc.
  4107. * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
  4108. * section.c: Expand comment on backend bits.
  4109. * bfd-in2.h: Regenerate.
  4110. * libbfd.h: Regenerate.
  4111. 2005-01-06 Alan Modra <amodra@bigpond.net.au>
  4112. * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
  4113. toc adjusting stub, do not test source section flags.
  4114. 2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
  4115. * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
  4116. from STABS debugging sections again.
  4117. 2005-01-05 Fred Fish <fnf@specifixinc.com>
  4118. * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
  4119. (find_abstract_instance_name): New function.
  4120. (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
  4121. (scan_unit_for_functions): Handle DW_AT_abstract_origin.
  4122. (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
  4123. For older changes see ChangeLog-2004
  4124. Copyright (C) 2005 Free Software Foundation, Inc.
  4125. Copying and distribution of this file, with or without modification,
  4126. are permitted in any medium without royalty provided the copyright
  4127. notice and this notice are preserved.
  4128. Local Variables:
  4129. mode: change-log
  4130. left-margin: 8
  4131. fill-column: 74
  4132. version-control: never
  4133. End: