ChangeLog-0203 432 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411
  1. 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  2. Adfd m32r-linux and PIC support. Add new ABI that uses RELA.
  3. * config.bfd (m32r*-*-linux*, m32r*le-*-linux*, m32r*le-*-*): Added.
  4. * configure.in (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec,
  5. bfd_elf32_m32rle_vec): Added
  6. * configure: Regenerated.
  7. * elf32-m32r.c (m32r_info_to_howto, m32r_elf_adjust_dynamic_symbol,
  8. m32r_elf_size_dynamic_sections, m32r_elf_create_dynamic_sections,
  9. m32r_elf_finish_dynamic_sections, m32r_elf_finish_dynamic_symbol,
  10. allocate_dynrelocs, readonly_dynrelocs, m32r_elf_reloc_type_class,
  11. m32r_elf_fake_sections): Added.
  12. (m32r_elf_howto_table): Added
  13. R_M32R_16_RELA, R_M32R_32_RELA, R_M32R_24_RELA,
  14. R_M32R_10_PCREL_RELA, R_M32R_18_PCREL_RELA,
  15. R_M32R_26_PCREL_RELA, R_M32R_HI16_ULO_RELA,
  16. R_M32R_HI16_SLO_RELA, R_M32R_LO16_RELA,
  17. R_M32R_SDA16_RELA, R_M32R_RELA_GNU_VTINHERIT,
  18. R_M32R_RELA_GNU_VTENTRY, R_M32R_GOT24,
  19. R_M32R_26_PLTREL, R_M32R_COPY, R_M32R_GLOB_DAT,
  20. R_M32R_JMP_SLOT, R_M32R_RELATIVE, R_M32R_GOTOFF,
  21. R_M32R_GOTPC24, R_M32R_GOT16_HI_ULO,
  22. R_M32R_GOT16_HI_SLO, R_M32R_GOT16_LO,
  23. R_M32R_GOTPC_HI_ULO, R_M32R_GOTPC_HI_SLO,
  24. R_M32R_GOTPC_LO.
  25. (m32r_elf_relocate_section, m32r_elf_check_relocs): Changed for
  26. New ABI.
  27. * reloc.c: Add BFD_RELOC_M32R_GOT24, BFD_RELOC_M32R_26_PLTREL,
  28. BFD_RELOC_M32R_COPY, BFD_RELOC_M32R_GLOB_DAT,
  29. BFD_RELOC_M32R_JMP_SLOT, BFD_RELOC_M32R_RELATIVE,
  30. BFD_RELOC_M32R_GOTOFF, BFD_RELOC_M32R_GOTPC24,
  31. BFD_RELOC_M32R_GOT16_HI_ULO, BFD_RELOC_M32R_GOT16_HI_SLO,
  32. BFD_RELOC_M32R_GOT16_LO, BFD_RELOC_M32R_GOTPC_HI_ULO,
  33. BFD_RELOC_M32R_GOTPC_HI_SLO, BFD_RELOC_M32R_GOTPC_LO.
  34. * targets.c (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec,
  35. bfd_elf32_m32rle_vec): Added.
  36. * bfd-in2.h: Regenerated.
  37. * libbfd.h: Regenerated.
  38. 2003-12-19 Danny Smith <dannysmith@users.sourceforge.net>
  39. * coffcode.h (styp_to_sec_flags): Don't treat .reloc section
  40. as SEC_DEBUGGING.
  41. 2003-12-18 Richard Sandiford <rsandifo@redhat.com>
  42. * elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
  43. mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use
  44. _bfd_mips_elf_hi16_reloc for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16,
  45. _bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and R_MIPS_GNU_REL_LO16,
  46. and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16. Change rightshift
  47. to 16 for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16.
  48. (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
  49. (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
  50. (_bfd_mips_elf32_gprel16_reloc): Remove special case.
  51. (mips_elf_gprel32_reloc, mips32_64bit_reloc): Likewise.
  52. * elf64-mips.c (mips_elf64_howto_table_rel): Replace all uses of
  53. mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use
  54. _bfd_mips_elf_hi16_reloc for R_MIPS_HI16, _bfd_mips_elf_lo16_reloc
  55. for R_MIPS_LO16 and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16.
  56. Change R_MIPS_HI16's rightshift to 16.
  57. (mips_elf64_howto_table_rela): Replace all uses of
  58. mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.
  59. Use _bfd_mips_elf_generic_reloc for R_MIPS_GOT16 as well.
  60. (mips_elf64_hi16_reloc, mips_elf64_got16_reloc): Delete.
  61. (mips_elf64_shift6_reloc): Remove special case. Use
  62. _bfd_mips_elf_generic_reloc instead of returning bfd_reloc_continue.
  63. * elfn32-mips.c (prev_reloc_section): Delete.
  64. (prev_reloc_address, prev_reloc_addend): Delete.
  65. (elf_mips_howto_table_rel, elf_mips_howto_table_rela): As for
  66. elf64-mips.c
  67. (GET_RELOC_ADDEND, SET_RELOC_ADDEND): Delete.
  68. (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
  69. (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
  70. (mips_elf_gprel16_reloc): Delete use of GET_RELOC_ADDEND.
  71. (mips_elf_literal_reloc, mips_elf_gprel32_reloc): Likewise.
  72. (mips16_jump_reloc, mips16_gprel_reloc): Likewise.
  73. (mips_elf_shift6_reloc): Likewise. Delete use of SET_RELOC_ADDEND.
  74. * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Use
  75. _bfd_relocate_contents to install an in-place addend.
  76. (mips_hi16): New structure.
  77. (mips_hi16_list): Moved from elf32-mips.c.
  78. (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_got16_reloc): New functions.
  79. (_bfd_mips_elf_lo16_reloc, _bfd_mips_elf_generic_reloc): New functions.
  80. (mips_elf_calculate_relocation): Assume addend is unshifted.
  81. (_bfd_mips_elf_relocate_section): Don't apply the howto rightshift
  82. on top of the usual high-part shift. Don't shift the addend right
  83. before calling mips_elf_calculate_relocation.
  84. * elfxx-mips.h (_bfd_mips_elf_hi16_reloc): Declare.
  85. (_bfd_mips_elf_got16_reloc, _bfd_mips_elf_lo16_reloc): Declare.
  86. (_bfd_mips_elf_generic_reloc): Declare.
  87. 2003-12-16 Eric Youngdale <eric@mkssoftware.com>
  88. Nick Clifton <nickc@redhat.com>
  89. * peicode.h (pe_ILF_build_a_bfd): Only skip one instance of each
  90. prefix character, if they are present.
  91. 2003-12-15 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  92. Nick Clifton <nickc@redhat.com>
  93. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Ensure that correct flags
  94. are set on known section types.
  95. 2003-12-12 Nick Clifton <nickc@redhat.com>
  96. * po/ro.po: Updated translation.
  97. 2003-12-12 Alan Modra <amodra@bigpond.net.au>
  98. * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Check for
  99. NULL dyn_h.
  100. 2003-12-11 Nick Clifton <nickc@redhat.com>
  101. * elf.c (INCLUDE_SECTION_IN_SEGMENT): Skip PT_GNU_STACK segments.
  102. 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
  103. * elfxx-mips.h, elfxx-mips.c, cpu-mips.c: Convert prototypes.
  104. Remove casts that were only needed for K&R compatibility.
  105. 2003-12-08 Alan Modra <amodra@bigpond.net.au>
  106. * elf-bfd.h (struct elf_backend_data): Remove "bfd *" and add
  107. "elflink_hash_entry *" param to elf_backend_link_output_symbol_hook.
  108. Add "elflink_hash_entry *" param to elf_backend_output_arch_syms.
  109. * elflink.h (elf_link_output_sym): Add "elflink_hash_entry *" param,
  110. and pass to output_symbol_hook.
  111. (elf_bfd_final_link): Adjust elf_link_output_sym calls.
  112. (elf_link_output_extsym): Likewise.
  113. (elf_link_input_bfd): Likewise.
  114. * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Adjust.
  115. * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
  116. * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
  117. * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
  118. * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
  119. * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
  120. * elf64-sparc.c (sparc64_elf_output_arch_syms): Likewise.
  121. * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
  122. Validate dynh->h against h.
  123. * elf64-ppc.c (struct ppc_link_hash_entry): Add adjust_done bitfield.
  124. (link_hash_newfunc): Init it.
  125. (adjust_opd_syms): New function.
  126. (ppc64_elf_edit_opd): Set adjust_done when global .opd sym adjusted.
  127. Set opd.adjust for all .opd relocs. Call adjust_opd_syms.
  128. (ppc64_elf_tls_optimize): Adjust possible .opd sym values here.
  129. (ppc64_elf_relocate_section): Also adjust syms not a multiple of 24.
  130. (ppc64_elf_output_symbol_hook): New function.
  131. (elf_backend_link_output_symbol_hook): Define.
  132. 2003-12-07 Richard Sandiford <rsandifo@redhat.com>
  133. * elf32-mips.c, elfn32-mips.c, elf64-mips.c: Convert prototypes.
  134. Remove casts that were only needed for K&R compatibility.
  135. 2003-12-05 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  136. * coff-arm.c (aoutarm_std_reloc_howto [ARM_WINCE]): Set
  137. partial_inplace for these relocs to FALSE for comptability with
  138. the MS linker.
  139. Remap ARM_26D relocation from 5 to 0. This fixes "bad fixup" error
  140. generated by MS linker, and brings the relocation in line the MS
  141. PE documentation.
  142. 2003-12-04 H.J. Lu <hongjiu.lu@intel.com>
  143. * elf32-ppc.c (ppc_elf_relax_section): Don't check relax_finalizing.
  144. 2003-12-04 H.J. Lu <hongjiu.lu@intel.com>
  145. * elfxx-ia64.c (elfNN_ia64_relax_section): Use the
  146. need_relax_finalize field in link_info instead of
  147. relax_finalizing to check if the relax finalize pass is being
  148. done.
  149. 2003-12-04 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  150. * coff-arm.c (coff_arm_relocate_section, bfd_arm_process_before_allocation):
  151. Change ARM26* to ARM_26* in comments to match definitions.
  152. (coff_arm_adjust_symndx): Replace hard-coded constants with
  153. appropriate definitions (ARM_26*).
  154. 2003-12-04 Alan Modra <amodra@bigpond.net.au>
  155. * coff-i860.c (coff_i860_reloc_nyi): Return bfd_reloc_not_supported.
  156. * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Warning fixes.
  157. (mn10300_elf_relax_section): Likewise.
  158. * nlm32-alpha.c (ONES): Define.
  159. (nlm32_alpha_howto_table): Use it to avoid warnings.
  160. 2003-12-04 Alan Modra <amodra@bigpond.net.au>
  161. * elf32-i386.c (elf_i386_object_p): Delete.
  162. (elf_backend_object_p): Don't define.
  163. * elf32-s390.c (elf_s390_object_p): No need to alloc tdata here.
  164. * elf32-sh.c (sh_elf_object_p): Likewise.
  165. * elf32-sparc.c (elf32_sparc_object_p): Likewise.
  166. * elf64-alpha.c (elf64_alpha_object_p): Likewise.
  167. * elf64-s390.c (elf_s390_object_p): Likewise.
  168. * elf64-x86-64.c (elf64_x86_64_elf_object_p): Likewise.
  169. 2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  170. * archures.c (bfd_mach_m32r2): Add new machine type.
  171. * bfd-in2.h: Regenerate.
  172. * cpu-m32r.c : Add new machine type.
  173. * elf32-m32r.c (m32r_elf_object_p, m32r_elf_final_write_processing,
  174. m32r_elf_merge_private_bfd_data): Add support for new machine
  175. type.
  176. 2003-12-03 Dave Airlie <airlied@linux.ie>
  177. * config.bfd: Add vax-linux-gnu target.
  178. * configure.in: Likewise.
  179. * configure: Regenerate.
  180. 2003-12-03 Alan Modra <amodra@bigpond.net.au>
  181. * ecoff.c (ecoff_link_add_archive_symbols): Update for renamed
  182. bfd_link_hash_entry field "next" -> "und_next".
  183. * linker.c (_bfd_link_hash_newfunc): Likewise.
  184. (bfd_link_add_undef): Likewise.
  185. (_bfd_generic_link_add_archive_symbols): Likewise.
  186. (_bfd_generic_link_add_one_symbol): Likewise.
  187. * xcofflink.c (xcoff_link_add_symbols): Likewise.
  188. 2003-12-02 Nick Clifton <nickc@redhat.com>
  189. * configure.in (ALL_LINGUAS): Add ro.
  190. * po/ro.po: New Romanian translation.
  191. 2003-12-02 Alan Modra <amodra@bigpond.net.au>
  192. * Makefile.am: Run "make dep-am".
  193. * Makefile.in: Regenerate.
  194. 2003-12-01 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  195. * coffcode.h (coff_compute_section_file_positions): Set page_size
  196. to 1 instead of 0 in the case file alignment value is zero.
  197. 2003-12-01 Kazu Hirata <kazu@cs.umass.edu>
  198. * coff-rs6000.c: Remove ARGSUSED and VARARGS.
  199. * coff64-rs6000.c: Likewise.
  200. * coffcode.h: Likewise.
  201. * elf32-vax.c: Likewise.
  202. * hash.c: Likewise.
  203. * hppabsd-core.c: Likewise.
  204. * hpux-core.c: Likewise.
  205. * ihex.c: Likewise.
  206. * netbsd-core.c: Likewise.
  207. * osf-core.c: Likewise.
  208. * pdp11.c: Likewise.
  209. * ptrace-core.c: Likewise.
  210. * sco5-core.c: Likewise.
  211. * section.c: Likewise.
  212. * sunos.c: Likewise.
  213. * trad-core.c: Likewise.
  214. 2003-12-01 Alan Modra <amodra@bigpond.net.au>
  215. * elf-bfd.h (is_elf_hash_table): Take hash tab rather than info arg.
  216. * elf.c (_bfd_elf_merge_sections): Adjust to suit.
  217. (_bfd_elf_link_just_syms): Likewise.
  218. (bfd_elf_get_needed_list): Likewise.
  219. (bfd_elf_get_runpath_list): Likewise.
  220. (_bfd_elf_link_hash_copy_indirect): Remove unneeded parens.
  221. * elf32-hppa.c (elf32_hppa_setup_section_lists): Don't check hash tab
  222. creator flavour.
  223. (elf32_hppa_set_gp): Look up output sections rather than using htab.
  224. * elf32-i960.c: Comment fix. Formatting.
  225. * elf32-m32r.c (m32r_elf_add_symbol_hook): Use is_elf_hash_table
  226. rather than testing creator flavour.
  227. * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
  228. * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
  229. * elflink.c (_bfd_elf_link_create_dynamic_sections): Adjust for
  230. is_elf_hash_table change. Remove redundant test.
  231. (bfd_elf_record_link_assignment): Use is_elf_hash_table rather than
  232. testing creator flavour.
  233. (elf_link_record_local_dynamic_symbol): Adjust for is_elf_hash_table.
  234. (_bfd_elf_fix_symbol_flags): Likewise.
  235. (_bfd_elf_adjust_dynamic_symbol): Likewise.
  236. * elflink.h (elf_link_add_object_symbols): Likewise. Remove redundant
  237. checks. Use is_elf_hash_table rather than testing creator flavour.
  238. Use hash_table throughout in place of info->hash.
  239. (elf_add_dynamic_entry): Adjust for is_elf_hash_table change.
  240. (NAME(bfd_elf,size_dynamic_sections)): Likewise. Remove redundant
  241. check.
  242. (elf_bfd_final_link): Adjust for is_elf_hash_table change.
  243. (elf_link_check_versioned_symbol): Use is_elf_hash_table rather than
  244. testing creator flavour.
  245. (elf_gc_sections): Add is_elf_hash_table check.
  246. (elf_gc_common_finalize_got_offsets): Likewise.
  247. (elf_bfd_discard_info): Adjust for is_elf_hash_table change. Remove
  248. redundant check.
  249. * elfxx-ia64.c (elfNN_ia64_relax_section): Use is_elf_hash_table
  250. rather than testing creator flavour.
  251. 2003-11-28 Christian Groessler <chris@groessler.org>
  252. * cpu-z8k.c: Convert to ISO C90.
  253. * coff-z8k.c: Likewise.
  254. 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
  255. * elf-bfd.h (elf_backend_data::elf_backend_modify_segment_map):
  256. Add link info argument.
  257. * elf32-i370.c (elf_backend_modify_segment_map): Likewise.
  258. * elf32-ppc.c (ppc_elf_modify_segment_map): Likewise.
  259. * elf32-xtensa.c (elf_xtensa_modify_segment_map): Likewise.
  260. * elf64-hppa.c (elf64_hppa_modify_segment_map): Likewise.
  261. * elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise.
  262. * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise.
  263. * elfxx-mips.h (_bfd_mips_elf_modify_segment_map): Likewise.
  264. * elf.c (assign_file_positions_except_relocs,
  265. assign_file_positions_for_segments): Likewise. Adjust calls.
  266. 2003-11-27 Mark Kettenis <kettenis@gnu.org>
  267. * elf.c (elfcore_grok_netbsd_procinfo): Make a pseudosection out
  268. of the note.
  269. 2003-11-26 Daniel Jacobowitz <drow@mvista.com>
  270. Richard Sandiford <rsandifo@redhat.com>
  271. * elfxx-mips.c (mips_elf_set_global_got_offset): Don't set no_fn_stub.
  272. (mips_elf_set_no_stub): New function.
  273. (mips_elf_multi_got): Call it.
  274. (_bfd_mips_elf_finish_dynamic_symbol): If a relocation is needed for
  275. a secondary GOT entry, create an R_MIPS_32 or R_MIPS_64 relocation and
  276. use mips_elf_create_dynamic_relocation to deal with any compatibility
  277. issues. Store the adjusted addend in the GOT slot.
  278. 2003-11-25 Mattias Engdegård <mattias@virtutech.se>
  279. * stabs.c (_bfd_link_section_stabs): Skip N_EXCL stabs when
  280. procesing N_BINCL stabs.
  281. 2003-11-25 Alan Modra <amodra@bigpond.net.au>
  282. * elf64-ppc.c (ppc_type_of_stub): Disallow stubs other than
  283. ppc_stub_plt_call to symbols defined in shared libs.
  284. 2003-11-22 Jakub Jelinek <jakub@redhat.com>
  285. * elf-bfd.h (ELF_LINK_POINTER_EQUALITY_NEEDED): Define new flag.
  286. * elf.c (_bfd_elf_link_hash_copy_indirect): Copy it.
  287. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  288. (elf_i386_check_relocs): Set it.
  289. (elf_i386_finish_dynamic_symbol): If it is not set,
  290. clear st_value of SHN_UNDEF symbol.
  291. 2003-11-20 Jim Blandy <jimb@redhat.com>
  292. * cpu-powerpc.c (powerpc_compatible): Any ISA in the PowerPC
  293. family is a superset of <bfd_arch_rs6000,bfd_mach_rs6k>.
  294. 2003-11-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
  295. * elf32-s390.c (elf_s390_relocate_section): Don't recalculate symbol
  296. section for reloc output and subtract the output section's address
  297. from the addend when converting a relocation into one against a
  298. section symbol.
  299. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  300. 2003-11-18 James E Wilson <wilson@specifixinc.com>
  301. * elfxx-ia64.c (get_fptr): For fptr_rel, use dynobj not abfd.
  302. (elfNN_ia64_size_dynamic_sections): When stripping sections, check
  303. for ia64_info->rel_fptr_sec.
  304. 2003-11-18 Alan Modra <amodra@bigpond.net.au>
  305. * elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
  306. size is zero.
  307. 2003-11-17 Daniel Jacobowitz <drow@mvista.com>
  308. * elf.c (_bfd_elf_link_hash_copy_indirect): Copy
  309. ELF_LINK_HASH_NEEDS_PLT. Fix formatting.
  310. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
  311. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  312. * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
  313. * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  314. * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
  315. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  316. * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  317. * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
  318. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  319. * elf32-xtensa.c (elf_xtensa_copy_indirect_symbol): Remove.
  320. (elf_backend_copy_indirect_symbol): Don't define.
  321. 2003-11-14 Daniel Jacobowitz <drow@mvista.com>
  322. * elfxx-mips.c (mips_elf_merge_gots): Weaken assert for local
  323. GOT entries.
  324. 2003-11-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
  325. * elf32-s390.c (elf_s390_relocate_section): Only convert R_390_32
  326. to R_390_RELATIVE. Convert the other relocations against local
  327. symbols to relocations against the start of the section.
  328. * elf64-s390.c (elf_s390_relocate_section): Only convert R_390_64
  329. to R_390_RELATIVE. Convert the other relocations against local
  330. symbols to relocations against the start of the section.
  331. 2003-11-11 Nick Clifton <nickc@redhat.com>
  332. * elf-m10300.c (bfd_mn10300_elf_size_dynamic_sections): Use
  333. info->executable not info->shared to decide if a .interp section
  334. should be present.
  335. * elf32-arm.h (elf32_arm_size_dynamic_sections): Likewise.
  336. * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
  337. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
  338. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
  339. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  340. * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
  341. * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
  342. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
  343. * elfxx-mips.c (_bfd_mips_size_dynamic_sections): Likewise.
  344. * elflink.h (size_dynamic_sections): Likewise.
  345. 2003-11-10 Jonathan Wilson <jonwil@tpgi.com.au>
  346. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Swap out tls pointer.
  347. (_bfd_XXi_final_link_postscript): Look for __tks_used symbol. If
  348. found initialise the tls data directory entry.
  349. 2003-11-07 Alan Modra <amodra@bigpond.net.au>
  350. * elf32-ppc.c (ppc_elf_install_value): Delete.
  351. (shared_stub_entry, stub_entry): Make them arrays of ints.
  352. Remove initial branch.
  353. (ppc_elf_relax_section): Write one branch around all trampolines
  354. instead. Correct bogus R_PPC_PLTREL24 handling. Correct
  355. branch range check. Only use shared_stub_entry when shared.
  356. Test that branches can reach stubs. Write trampolines out at
  357. end so that just one realloc is used. Handle little-endian
  358. mode. Move relevant code from ppc_elf_install_value to here.
  359. (ppc_elf_relocate_section): Move code handling RELAX32 from
  360. ppc_elf_install_value to here.
  361. 2003-11-06 Alan Modra <amodra@bigpond.net.au>
  362. * elf32-ppc.c (ppc_elf_howto_raw); Add entry for R_PPC_RELAX32PC.
  363. (ppc_elf_install_value): Handle R_PPC_RELAX32PC. Merge duplicate
  364. cases.
  365. (shared_stub_entry): Correct opcode.
  366. (ppc_elf_relax_section): Generate R_PPC_RELAX32PC relocs.
  367. (ppc_elf_relocate_section): Handle them.
  368. 2003-11-05 Alan Modra <amodra@bigpond.net.au>
  369. * elf.c (_bfd_elf_rela_local_sym): Accept asection **, and return
  370. updated section in case of merged section.
  371. * elf-bfd.h (_bfd_elf_rela_local_sym): Update declaration.
  372. * elf-hppa.h (elf_hppa_relocate_section): Adjust call.
  373. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  374. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  375. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  376. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  377. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  378. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  379. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  380. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  381. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  382. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  383. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  384. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  385. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  386. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  387. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
  388. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  389. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  390. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  391. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  392. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  393. * elf32-v850.c (v850_elf_relocate_section) Likewise.
  394. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  395. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  396. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  397. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  398. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  399. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  400. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  401. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  402. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  403. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  404. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  405. * elf32-cris.c (cris_elf_relocate_section): Don't recalculate symbol
  406. section for reloc output.
  407. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  408. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  409. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  410. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  411. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  412. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  413. * elf32-ppc.c (ppc_elf_relocate_section): Don't recalculate everything
  414. for R_PPC_RELAX32 reloc. Don't bother checking ppc_elf_install_value
  415. return value.
  416. * elf64-ppc.c (ppc64_elf_relocate_section <R_PPC64_TOC>): Sanity check
  417. sec->id.
  418. 2003-11-05 Alan Modra <amodra@bigpond.net.au>
  419. * elf32-d10v.c (extract_rel_addend, insert_rel_addend): New functions.
  420. (elf32_d10v_relocate_section): Use them to handle -r reloc
  421. adjustments, and in place of _bfd_elf_rela_local_sym.
  422. * cpu-iq2000.c (arch_info_struct): Warning fix.
  423. 2003-11-05 Alan Modra <amodra@bigpond.net.au>
  424. * elf32-hppa.c (ELIMINATE_COPY_RELOCS): Define.
  425. (elf32_hppa_copy_indirect_symbol): Don't copy NON_GOT_REF on
  426. weakdefs.
  427. (elf32_hppa_check_relocs): Use ELIMINATE_COPY_RELOCS.
  428. (elf32_hppa_adjust_dynamic_symbol): Likewise. Copy weakdef
  429. NON_GOT_REF.
  430. (allocate_dynrelocs): Use ELIMINATE_COPY_RELOCS and
  431. SYMBOL_CALLS_LOCAL. Discard relocs for undef weak syms with
  432. non-default visibility.
  433. (elf32_hppa_relocate_section): Use ELIMINATE_COPY_RELOCS and
  434. SYMBOL_CALLS_LOCAL.
  435. 2003-11-04 Alan Modra <amodra@bigpond.net.au>
  436. * aout-target.h, aoutf1.h, bfdio.c, bfdwin.c: Update copyright date.
  437. * coff-apollo.c, coff-sparc.c, coff-w65.c, coff-we32k.c: Ditto.
  438. * coff-z8k.c, coffgen.c, cpu-frv.c, cpu-h8500.c, cpu-hppa.c: Ditto.
  439. * cpu-ia64-opc.c, cpu-m10300.c, cpu-mips.c, cpu-msp430.c: Ditto.
  440. * cpu-rs6000.c, cpu-z8k.c, efi-app-ia32.c, elf32-am33lin.c: Ditto.
  441. * gen-aout.c, hash.c, hp300hpux.c, init.c, mach-o.c: Ditto.
  442. * nlm-target.h, nlm.c, som.h, stabs.c, sysdep.h, xsym.h: Ditto.
  443. * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Fix
  444. "dereferencing type-punned pointer" warnings.
  445. * aout-adobe.c (aout_adobe_set_section_contents): Constify location.
  446. * aoutx.h (NAME(aout,set_section_contents)): Ditto.
  447. * bfd-in2.h: Regenerate.
  448. * binary.c (binary_set_section_contents): Ditto.
  449. * bout.c (b_out_set_section_contents): Ditto.
  450. * coff-tic54x.c (tic54x_set_section_contents): Ditto.
  451. * coffcode.h (coff_set_section_contents): Ditto.
  452. * ecoff.c (_bfd_ecoff_set_section_contents): Ditto.
  453. * elf-bfd.h (_bfd_elf_set_section_contents): Ditto.
  454. * elf.c (_bfd_elf_set_section_contents): Ditto.
  455. * elfxx-mips.c (_bfd_mips_elf_set_section_contents): Ditto.
  456. * elfxx-mips.h (_bfd_mips_elf_set_section_contents): Ditto.
  457. * i386msdos.c (msdos_set_section_contents): Ditto.
  458. * ieee.c (ieee_set_section_contents): Ditto.
  459. * ihex.c (ihex_set_section_contents): Ditto.
  460. * libaout.h (NAME(aout,set_section_contents)): Ditto.
  461. * libbfd-in.h (_bfd_nowrite_set_section_contents): Ditto.
  462. (_bfd_generic_set_section_contents): Ditto.
  463. * libbfd.h: Regenerate.
  464. * libbfd.c (_bfd_generic_set_section_contents): Ditto.
  465. * libecoff.h (_bfd_ecoff_set_section_contents): Ditto.
  466. * libnlm.h (nlmNAME(set_section_contents)): Ditto.
  467. (struct nlm_backend_data <nlm_mangle_relocs>): Ditto.
  468. * mmo.c (mmo_set_section_contents): Ditto.
  469. * nlm32-alpha.c (nlm_alpha_mangle_relocs): Ditto.
  470. * nlm32-i386.c (nlm_i386_mangle_relocs): Ditto.
  471. * nlm32-ppc.c (nlm_powerpc_mangle_relocs): Ditto.
  472. * nlm32-sparc.c (nlm_sparc_mangle_relocs): Ditto.
  473. * nlmcode.h (nlm_set_section_contents): Ditto.
  474. * oasys.c (oasys_set_section_contents): Ditto.
  475. * pdp11.c (NAME(aout,set_section_contents)): Ditto.
  476. * ppcboot.c (ppcboot_set_section_contents): Ditto.
  477. * srec.c (srec_set_section_contents): Ditto.
  478. * targets.c (BFD_JUMP_TABLE_WRITE <_bfd_set_section_contents>): Ditto.
  479. * tekhex.c (tekhex_set_section_contents): Ditto.
  480. (move_section_contents): Ditto.
  481. * versados.c (versados_set_section_contents): Ditto.
  482. * vms-misc.c (_bfd_save_vms_section): Ditto.
  483. * vms.c (vms_set_section_contents): Ditto.
  484. * vms.h (_bfd_save_vms_section): Ditto.
  485. 2003-11-04 Alan Modra <amodra@bigpond.net.au>
  486. * elf64-ppc.c (ppc_size_one_stub): Size relbrlt. Accept info arg
  487. rather than htab.
  488. (ppc64_elf_size_stubs): Adjust ppc_size_one_stub traversal. Zero
  489. relbrlt size.
  490. (ppc64_elf_build_stubs): Allocate space for relbrlt.
  491. 2003-11-04 Alan Modra <amodra@bigpond.net.au>
  492. * bfd-in.h (_bfd_elf_tls_setup): Declare.
  493. * bfd-in2.h: Regenerate.
  494. * elf-bfd.h (struct elf_link_tls_segment): Delete.
  495. (struct elf_link_hash_table): Add tls_sec and tls_size.
  496. * elf.c (_bfd_elf_link_hash_table_init): Init tls_sec and tls_size.
  497. * elflink.c (_bfd_elf_tls_setup): New function.
  498. * elflink.h (struct elf_final_link_info): Remove first_tls_sec.
  499. (elf_bfd_final_link): Don't set first_tls_sec here. Update code
  500. saving tls segment info, round segment size up.
  501. (elf_link_output_extsym): Adjust code using tls segment info.
  502. (elf_link_input_bfd): Likewise.
  503. * elf32-i386.c (dtpoff_base, tpoff): Likewise.
  504. * elf32-s390.c (dtpoff_base, tpoff): Likewise.
  505. * elf32-sh.c (dtpoff_base, tpoff): Likewise.
  506. * elf32-sparc.c (dtpoff_base, tpoff): Likewise.
  507. * elf64-s390.c (dtpoff_base, tpoff): Likewise.
  508. * elf64-x86-64.c (dtpoff_base, tpoff): Likewise.
  509. * elfxx-ia64.c (elfNN_ia64_tprel_base): Likewise.
  510. (elfNN_ia64_dtprel_base): Likewise.
  511. * elf64-alpha.c (alpha_get_dtprel_base): Likewise.
  512. (alpha_get_tprel_base): Likewise.
  513. (struct alpha_relax_info): Remove tls_segment.
  514. (elf64_alpha_relax_got_load): Adjust invocation of
  515. alpha_get_dtprel_base and alpha_get_tprel_base.
  516. (elf64_alpha_relax_tls_get_addr): Likewise.
  517. (elf64_alpha_relax_section): Likewise.
  518. (elf64_alpha_relocate_section): Likewise.
  519. (elf64_alpha_relax_find_tls_segment): Delete.
  520. * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove tls_sec.
  521. (ppc_elf_tls_setup): Call _bfd_elf_tls_setup. Return section.
  522. (ppc_elf_relocate_section): Adjust to use elf.tls_sec.
  523. * elf32-ppc.h (ppc_elf_tls_setup): Update.
  524. * elf64-ppc.c (struct ppc_link_hash_table): Remove tls_sec.
  525. (ppc64_elf_tls_setup): Call _bfd_elf_tls_setup. Return section.
  526. (ppc64_elf_tls_optimize): Adjust to use elf.tls_sec.
  527. (ppc64_elf_relocate_section): Likewise.
  528. * elf64-ppc.h (ppc64_elf_tls_setup): Update.
  529. 2003-11-03 Daniel Jacobowitz <drow@mvista.com>
  530. * elf-bfd.h (struct elf_backend_data): Remove plt_header_size.
  531. * elf-m10300.c (elf_backend_plt_header_size): Don't define.
  532. * elf32-arm.h (elf_backend_plt_header_size): Don't define.
  533. * elf32-cris.c (elf_backend_plt_header_size): Don't define.
  534. * elf32-i386.c (elf_backend_plt_header_size): Don't define.
  535. * elf32-mips.c (elf_backend_plt_header_size): Don't define.
  536. * elf32-ppc.c (elf_backend_plt_header_size): Don't define.
  537. * elf32-s390.c (elf_backend_plt_header_size): Don't define.
  538. * elf32-sh.c (elf_backend_plt_header_size): Don't define.
  539. * elf32-sparc.c (elf_backend_plt_header_size): Don't define.
  540. * elf64-alpha.c (elf_backend_plt_header_size): Don't define.
  541. * elf64-hppa.c (elf_backend_plt_header_size): Don't define.
  542. * elf64-mips.c (elf_backend_plt_header_size): Don't define.
  543. * elf64-ppc.c (elf_backend_plt_header_size): Don't define.
  544. * elf64-s390.c (elf_backend_plt_header_size): Don't define.
  545. * elf64-sh64.c (elf_backend_plt_header_size): Don't define.
  546. * elf64-sparc.c (elf_backend_plt_header_size): Don't define.
  547. * elf64-x86-64.c (elf_backend_plt_header_size): Don't define.
  548. * elfn32-mips.c (elf_backend_plt_header_size): Don't define.
  549. * elfxx-ia64.c (elf_backend_plt_header_size): Don't define.
  550. * elfxx-target.h (elf_backend_plt_header_size): Don't define
  551. or include in target initializer.
  552. 2003-11-03 Andrew Cagney <cagney@redhat.com>
  553. * section.c (bfd_set_section_contents): Make the "location" buffer
  554. constant.
  555. * bfd-in2.h: Re-generate.
  556. 2003-10-30 Andrew Cagney <cagney@redhat.com>
  557. * syms.c: Replace "struct symbol_cache_entry" with "struct
  558. bfd_symbol".
  559. * vms.h, targets.c, section.c, reloc.c, peicode.h: Ditto.
  560. * mipsbsd.c, elf.c, linker.c, elf-bfd.h, ecoff.c: Ditto.
  561. * cpu-z8k.c, cpu-ns32k.c, cpu-h8500.c, bfd.c, bfd-in.h: Ditto.
  562. * bfd-in2.h: Re-generate.
  563. 2003-10-30 Jakub Jelinek <jakub@redhat.com>
  564. * elfxx-ia64.c: Include objalloc.h, hashtab.h.
  565. (struct elfNN_ia64_local_hash_entry): Remove root. Add id and r_sym
  566. fields.
  567. (struct elfNN_ia64_local_hash_table): Remove.
  568. (struct elfNN_ia64_link_hash_table): Change loc_hash_table's type
  569. to htab_t. Add loc_hash_memory field.
  570. (elfNN_ia64_local_hash_table_init, elfNN_ia64_new_loc_hash_entry):
  571. Removed.
  572. (elfNN_ia64_local_htab_hash, elfNN_ia64_local_htab_eq): New
  573. functions.
  574. (elfNN_ia64_hash_table_create): Use hashtab.h hashtable for
  575. loc_hash_table. Initialize loc_hash_memory.
  576. (elfNN_ia64_hash_table_free): New function.
  577. (elfNN_ia64_local_hash_lookup): Remove.
  578. (elfNN_ia64_local_dyn_sym_thunk): Change into htab_traverse
  579. callback.
  580. (elfNN_ia64_dyn_sym_traverse): Use htab_traverse.
  581. (get_local_sym_hash): Use hashtab.h hashtable for loc_hash_table.
  582. (bfd_elfNN_bfd_link_hash_table_free): Define.
  583. 2003-10-30 Alan Modra <amodra@bigpond.net.au>
  584. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Modify versioned
  585. symbol string in place.
  586. 2003-10-30 Jim Blandy <jimb@redhat.com>
  587. * cpu-rs6000.c (rs6000_compatible): Check the correct arch_info
  588. object's mach field: all PowerPC machines are supersets of the
  589. original rs6000, but not later rs6000 machines.
  590. 2003-10-30 Alan Modra <amodra@bigpond.net.au>
  591. * dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
  592. Add "val" and "sval" fields.
  593. (DW_STRING, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR): Delete.
  594. (read_attribute_value): Expand and adjust DW_* occurrences.
  595. (scan_unit_for_functions, parse_comp_unit): Likewise.
  596. 2003-10-30 Phil Edwards <phil@codesourcery.com>
  597. * config.bfd (arm-*-vxworks): Remove separate stanza; merge with
  598. other common ELF triples.
  599. (i[3-7]86-*-vxworks): Change to ELF format.
  600. (mips*-*-windiss): New triple, add to common MIPS/ELF stanza.
  601. (sh-*-vxworks): New stanza.
  602. 2003-10-30 Lars Knoll <lars@trolltech.com>
  603. Michael Matz <matz@suse.de>
  604. Jakub Jelinek <jakub@redhat.com>
  605. Alan Modra <amodra@bigpond.net.au>
  606. * merge.c (struct sec_merge_sec_info): Update comment.
  607. (struct sec_merge_hash_entry): Remove entsize.
  608. (sec_merge_hash_lookup): Only adjust alignment when creating.
  609. (sec_merge_emit): Remove register keyword.
  610. (cmplengthentry, last4_eq, last_eq): Delete.
  611. (strrevcmp, strrevcmp_align, is_suffix): New.
  612. (merge_strings): Use them to implement fast suffix merging.
  613. * elf-strtab.c (struct elf_strtab_hash_entry): Update comments.
  614. Make "len" signed.
  615. (_bfd_elf_strtab_add): Lose on >2G strings.
  616. (_bfd_elf_strtab_emit): Don't emit strings with len < 0.
  617. (cmplengthentry, last4_eq): Delete.
  618. (strrevcmp, is_suffix): New.
  619. (_bfd_elf_strtab_finalize): Rework to implement fast suffix merging.
  620. 2003-10-29 Daniel Jacobowitz <drow@mvista.com>
  621. * elf32-arm.h (elf32_arm_final_link_relocate): Move check for
  622. SEC_ALLOC.
  623. 2003-10-29 Philip Blundell <philb@gnu.org>
  624. * elf32-arm.h (elf32_arm_plt0_entry, elf32_arm_plt_entry): New
  625. code sequence.
  626. (PLT_HEADER_SIZE): New.
  627. (struct elf32_arm_pcrel_relocs_copied): Rename to ...
  628. (struct elf32_arm_relocs_copied): ... this. Count both
  629. pcrel and non-pcrel relocs. All uses updated.
  630. (struct elf32_arm_link_hash_table): Add pointers to dynamic linker
  631. sections and symbol/section mapping cache.
  632. (create_got_section): New.
  633. (elf32_arm_create_dynamic_sections): New.
  634. (elf_backend_create_dynamic_sections): Use it.
  635. (elf32_arm_final_link_relocate): Support garbage collection of relocs.
  636. (elf32_arm_check_relocs): Likewise.
  637. (elf32_arm_adjust_dynamic_symbol): Likewise.
  638. (elf32_arm_copy_indirect_symbol): New.
  639. (elf32_arm_link_hash_table_create): Initialise new fields.
  640. (elf32_arm_gc_sweep_hook): Implement.
  641. (elf32_arm_discard_copies): Delete.
  642. (elf32_arm_finish_dynamic_symbol): Use new PLT code.
  643. (elf32_arm_finish_dynamic_sections): Likewise.
  644. (elf_backend_can_refcount): Define.
  645. (elf_backend_copy_indirect_symbol): Likewise.
  646. (elf_backend_plt_header_size): Set to PLT_HEADER_SIZE.
  647. 2003-10-29 Alan Modra <amodra@bigpond.net.au>
  648. * elf64-ppc.c (elf_backend_grok_prstatus): Define.
  649. (elf_backend_grok_psinfo): Define.
  650. (ppc64_elf_grok_prstatus, ppc64_elf_grok_psinfo): New functions.
  651. * elf.c (_bfd_elfcore_make_pseudosection): Allow multiple
  652. sections with the same name.
  653. (elfcore_grok_lwpstatus): Likewise.
  654. (elfcore_grok_win32pstatus): Likewise.
  655. (elfcore_grok_note): Likewise.
  656. (elfcore_grok_nto_status): Likewise.
  657. (elfcore_grok_nto_gregs): Likewise.
  658. 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
  659. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Never skip dynamic
  660. objects.
  661. 2003-10-14 Richard Sandiford <rsandifo@redhat.com>
  662. * elfxx-mips.c (mips_elf_create_got_section): Initialize global_gotno.
  663. 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
  664. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Look up
  665. hash table for real symbols.
  666. 2003-10-23 Michael Snyder <msnyder@redhat.com>
  667. * section.c (asection): Fix typo in comment.
  668. 2003-10-23 Alan Modra <amodra@bigpond.net.au>
  669. * elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
  670. reloc symbol index to it. Don't allow gd syms in shared libs
  671. to be optimized.
  672. (ppc64_elf_tls_optimize): Adjust get_tls_mask call.
  673. (ppc64_elf_size_stubs): Likewise.
  674. (ppc64_elf_relocate_section): Check that tls relocs are only used
  675. with tls syms, and similarly for non-tls. Correct symbol used
  676. when optimizing toc tls code.
  677. 2003-10-22 Nick Clifton <nickc@redhat.com>
  678. * peicode.h (coff_swap_scnhdr_in): Only remove padding when
  679. processing an executable.
  680. 2003-10-22 Jakub Jelinek <jakub@redhat.com>
  681. * elflink.c (_bfd_elf_export_symbol): Adjust for globals and locals
  682. field changes.
  683. (_bfd_elf_link_assign_sym_version): Likewise.
  684. * elflink.h (size_dynamic_sections): Likewise.
  685. 2003-10-21 Alexandre Oliva <aoliva@redhat.com>,
  686. Michael Snyder <msnyder@redhat.com>
  687. * archures.c (bfd_mach_sh4a, bfd_mach_sh4al_dsp, bfd_mach_sh4_nofpu,
  688. bfd_mach_sh4a_nofpu): New machine types.
  689. * bfd-in2.h: Rebuilt.
  690. * cpu-sh.c (compatible): Remove unused function.
  691. (SH4A_NEXT, SH4AL_DSP_NEXT, SH4_NOFPU_NEXT, SH4A_NOFPU_NEXT): New.
  692. (arch_info_struct): Add sh4a, sh4al_dsp, sh4-nofpu and sh4a-nofpu.
  693. * elf32-sh.c (sh_elf_set_mach_from_flags): Handle them.
  694. 2003-10-21 Wouter van Heyst <wouter@vidicode.nl>
  695. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct text
  696. describing mismatched formats involving the Maverick FP type.
  697. 2003-10-21 Anil Paranjpe <anilp1@KPITCummins.com>
  698. * binary.c (binary_object_p): Pass machine flag along with
  699. architecture.
  700. 2003-10-21 Thorsten Brehm <brehm@gmx.net>
  701. * archures.c (bfd_default_scan): Add support for mcf528x.
  702. * ieee.c (ieee_write_processor): Likewise.
  703. 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
  704. Bernardo Innocenti <bernie@develer.com>
  705. * archures.c: Add MCF528x (MCFv4) support.
  706. * cpu-m68k.c (arch_info_struct): Likewise.
  707. * bfd-in2.h: Regenerate.
  708. 2003-10-20 Andrew Cagney <cagney@redhat.com>
  709. * targets.c: Replace "struct sec" with "struct bfd_section"
  710. * syms.c, sparclynx.c, section.c, opncls.c: Ditto.
  711. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto.
  712. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto.
  713. * aout-tic30.c, aout-target.h:
  714. * bfd-in2.h, libcoff.h, libbfd.h: Regenerate.
  715. 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
  716. Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs.
  717. * elf64-mmix.c (MAX_PUSHJ_STUB_SIZE): New macro.
  718. (struct _mmix_elf_section_data): New member pjs.
  719. (mmix_set_relaxable_size, mmix_elf_get_section_contents): New
  720. functions.
  721. (elf_mmix_howto_table): New entry for R_MMIX_PUSHJ_STUBBABLE.
  722. (mmix_reloc_map): Ditto.
  723. (mmix_elf_relocate_section): Handle R_MMIX_PUSHJ_STUBBABLE.
  724. (mmix_final_link_relocate, mmix_elf_check_common_relocs): Ditto.
  725. (mmix_elf_perform_relocation): Ditto. Don't mark parameter addr
  726. unused.
  727. (mmix_elf_check_relocs): Move early return to after
  728. mmix_elf_check_common_relocs call.
  729. (mmix_elf_symbol_processing): Fix cut-and-pasto in head comment.
  730. (_bfd_mmix_before_linker_allocation): Rename from
  731. _bfd_mmix_prepare_linker_allocated_gregs. All referers changed.
  732. Arrange to set the initial relaxable size of sections.
  733. (_bfd_mmix_after_linker_allocation): Rename from
  734. _bfd_mmix_finalize_linker_allocated_gregs.
  735. (mmix_elf_relax_section): Relax a R_MMIX_PUSHJ_STUBBABLE reloc.
  736. (bfd_elf64_get_section_contents): Define.
  737. * reloc.c: Add ENUMX for BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
  738. * libbfd.h, bfd-in2.h: Regenerate.
  739. * reloc.c (bfd_generic_relax_section): Default-set
  740. section->_cooked_size here.
  741. (bfd_generic_get_relocated_section_contents): Don't set it here.
  742. Explain why.
  743. 2003-10-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  744. * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
  745. output section has been discarded.
  746. 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
  747. * coff-h8300.c (funcvec_hash_newfunc): Handle normal mode.
  748. (h8300_reloc16_extra_cases): Likewise.
  749. (h8300_bfd_link_add_symbols): Likewise.
  750. 2003-10-17 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
  751. * cpu-h8300.c (h8300sxn_info_struct): Correct address size.
  752. (h8300sn_info_struct): Likewise.
  753. (h8300hn_info_struct): Likewise.
  754. 2003-10-16 Pavel Roskin <proski@gnu.org>
  755. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't calculate image size
  756. for sections which lack size info.
  757. 2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
  758. * configure.host: Add __USE_MINGW_FSEEK to HDEFINES for
  759. mingw32.
  760. 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
  761. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also warn
  762. undefined patterns with '*'.
  763. 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
  764. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't
  765. use the last CIE from a different section.
  766. (_bfd_elf_write_section_eh_frame): Don't pad beyond the raw
  767. size of the output section.
  768. 2003-10-07 Roland McGrath <roland@redhat.com>
  769. * elf.c (_bfd_elf_make_section_from_phdr): Set alignment_power of
  770. new section from p_align header field.
  771. 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
  772. * elf32-xtensa.c (xtensa_read_table_entries): The external size
  773. of entry is 8 bytes.
  774. 2003-10-15 Andrew Cagney <cagney@redhat.com>
  775. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Replace NAME##_get_symtab
  776. with NAME##_canonicalize_symtab.
  777. * libcoff-in.h (coff_canonicalize_symtab): Update.
  778. * xsym.h (bfd_sym_canonicalize_symtab): Update.
  779. * elf-bfd.h (_bfd_elf_canonicalize_symtab): Update.
  780. * coffgen.c (coff_canonicalize_symtab): Update.
  781. * libbfd-in.h (_bfd_nosymbols_canonicalize_symtab): Update.
  782. * libnlm.h (nlmNAME(canonicalize_symtab)): Update.
  783. * ieee.c (ieee_vec): Update comment.
  784. * libecoff.h (_bfd_ecoff_canonicalize_symtab): Update.
  785. * mmo.c (mmo_canonicalize_symtab): Update.
  786. * nlm-target.h (nlm_canonicalize_symtab): Update.
  787. * nlmcode.h (nlm_canonicalize_symtab): Update.
  788. * i386msdos.c (msdos_canonicalize_symtab): Update.
  789. * hp300hpux.c (MY (canonicalize_symtab)): Update.
  790. * oasys.c (oasys_canonicalize_symtab): Update.
  791. * som.c (som_canonicalize_symtab): Update.
  792. * pef.c (bfd_pef_canonicalize_symtab): Update.
  793. * nlmcode.h (nlm_canonicalize_symtab): Update.
  794. * xsym.c (bfd_sym_canonicalize_symtab): Update.
  795. * vms.c (vms_canonicalize_symtab): Update.
  796. * versados.c (versados_canonicalize_symtab): Update.
  797. * mach-o.c (bfd_mach_o_canonicalize_symtab): Update.
  798. * ieee.c (ieee_canonicalize_symtab): Update.
  799. * pdp11.c (NAME(aout,canonicalize_symtab)): Update.
  800. * reloc.c: Update comment.
  801. * libaout.h (NAME(aout,canonicalize_symtab)): Update.
  802. * coff64-rs6000.c (aix5coff64_vec): Update.
  803. * coff64-rs6000.c (bfd_xcoff_aix5_backend_data): Update.
  804. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update.
  805. * aoutx.h (NAME(aout,canonicalize_symtab)): Update.
  806. * elfxx-target.h (bfd_elfNN_canonicalize_symtab): Update.
  807. * hp300hpux.c (MY_canonicalize_symtab): Update.
  808. * ecoff.c (_bfd_ecoff_canonicalize_symtab): Update.
  809. * aout-tic30.c (MY_canonicalize_symtab): Update.
  810. * aout-target.h (MY_canonicalize_symtab): Update.
  811. * ppcboot.c (ppcboot_canonicalize_symtab): Update.
  812. * elf.c (_bfd_elf_canonicalize_symtab): Update.
  813. * elfcode.h (elf_canonicalize_symtab): Update.
  814. * ihex.c (ihex_canonicalize_symtab): Update.
  815. * tekhex.c (tekhex_canonicalize_symtab): Update.
  816. * binary.c (binary_canonicalize_symtab): Update.
  817. * srec.c (srec_canonicalize_symtab): Update.
  818. 2003-10-15 Kazu Hirata <kazu@cs.umass.edu>
  819. * elf32-h8300.c (elf_reloc_map): Fix a comment typo.
  820. 2003-10-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  821. * elf32-sh.c (sh_elf_relocate_section): Handle R_SH_IMM_*_PCREL
  822. relocations.
  823. (sh_elf_check_relocs): Likewise.
  824. * elf32-sh64.c (elf_backend_merge_symbol_attribute): Define.
  825. (sh64_elf_merge_symbol_attribute): New.
  826. * elf64-sh64.c (elf_backend_merge_symbol_attribute): Define.
  827. (sh64_elf64_merge_symbol_attribute): New.
  828. 2003-10-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  829. * elf-bfd.h (struct elf_backend_data): New function pointer member
  830. elf_backend_merge_symbol_attribute.
  831. * elflink.h (elf_link_add_object_symbols): Adjust call to
  832. elf_backend_merge_symbol_attribute if the backend defined it.
  833. * elfxx-target.h (elf_backend_merge_symbol_attribute): New macro.
  834. (elfNN_bed): Add that to the initializer.
  835. 2003-10-14 Bob Wilson <bob.wilson@acm.org>
  836. * elf32-xtensa.c (get_is_linkonce_section): Delete.
  837. (xtensa_is_property_section, xtensa_is_littable_section): Use
  838. XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros. Do not recognize
  839. linkonce sections containing ".xt.insn" and ".xt.lit" substrings.
  840. (xtensa_get_property_section_name): Check section name instead of
  841. calling get_is_linkonce_section. Remove unused bfd parameter. Use
  842. XTENSA_INSN_SEC_NAME and XTENSA_LIT_SEC_NAME macros. Never generate
  843. linkonce section names by appending ".xt.insn" or ".xt.lit".
  844. (xtensa_read_table_entries): Remove bfd argument in call to
  845. xtensa_get_property_section_name. Free section name when done.
  846. (elf_xtensa_combine_prop_entries): Free leaking table.
  847. 2003-10-13 Richard Sandiford <rsandifo@redht.com>
  848. * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
  849. DT_MIPS_LIBLIST or DT_MIPS_CONFLICT entries.
  850. (_bfd_mips_elf_finish_dynamic_symbol): Don't handle them. Don't
  851. handle DT_MIPS_MSYM. Set DT_RELSZ based on the number of relocations
  852. that were needed.
  853. (_bfd_mips_elf_modify_segment_map): Fix placement of PT_MIPS_OPTIONS.
  854. (_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_UCODE.
  855. 2003-10-13 H.J. Lu <hongjiu.lu@intel.com>
  856. * bfd-in.h (bfd_elf32_ia64_after_parse): New prototype.
  857. (bfd_elf64_ia64_after_parse): Likewise.
  858. * bfd-in2.h: Regenerated.
  859. * elfxx-ia64.c (oor_ip): New.
  860. (oor_branch_size): Likewise.
  861. (bfd_elfNN_ia64_after_parse): Likewise.
  862. (elfNN_ia64_relax_section): Use oor_ip if oor_branch_size
  863. equals sizeof (oor_ip).
  864. 2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  865. * elf64-sh64.c (sh_elf64_relocate_section): Tidy up for the
  866. renumbering of some relocation numbers.
  867. 2003-10-11 Alan Modra <amodra@bigpond.net.au>
  868. * coff-sh.c: Move definition of MAP and guard more code with
  869. COFF_IMAGE_WITH_PE.
  870. * section.c (bfd_get_section_size_before_reloc): Ignore reloc_done.
  871. * bfd-in2.h: Regenerate.
  872. 2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
  873. * Makefile.am: Run "make dep-am".
  874. * Makefile.in: Regenerate.
  875. * doc/Makefile.in: Likewise.
  876. 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
  877. * cofflink.c: Include "safe-ctype.h".
  878. (coff_link_add_symbols): Use ISDIGIT instead of isdigit.
  879. 2003-10-08 Dave Brolley <brolley@redhat.com>
  880. On behalf of Michael Snyder <msnyder@redhat.com>
  881. * archures.c: Add FRV fr550 machine.
  882. * cpu-frv.c: Ditto.
  883. * elf32-frv.c: Ditto.
  884. * bfd-in2.h: Regenerate.
  885. 2003-10-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  886. * elfxx-mips.c (STUB_MOVE,STUB_LI16): Fix stub code
  887. for non-SGI N64 ABI. Improve code consitency.
  888. 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
  889. * elf32-frv.c (elf32_frv_howto_table): Set R_FRV_LABEL16's
  890. rightshift to 2.
  891. 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
  892. * libbfd-in.h (_bfd_link_section_stabs): Add string offset
  893. parameter.
  894. * cofflink.c (coff_link_add_symbols): Deal with split stab
  895. sections.
  896. * elflink.h (elf_link_add_object_symbols): Deal with split stab
  897. sections.
  898. * stabs.c (_bfd_link_section_stabs): Add string offset parameter.
  899. * libbfd.h: Regenerated.
  900. * coffcode.h (coff_set_alignment_hook): With PE_COFF reloc
  901. overflow, set reloc start position to after the count
  902. reloc. Subtract one from num relocs. Give error on 0xffff relocs
  903. and no overflow.
  904. * cofflink.c (_bfd_coff_final_link): Deal with PE_COFF reloc
  905. overflow.
  906. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Do overflow if >=
  907. 0xffff.
  908. 2003-10-06 H.J. Lu <hongjiu.lu@intel.com>
  909. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Pad the
  910. last CIE/FDE if needed.
  911. 2003-10-06 Nick Clifton <nickc@redhat.com>
  912. * targets.c (_bfd_target_vector): Include bfd_elf64_sparc_vec if
  913. BFD64 is enabled.
  914. 2003-10-06 Matt Thomas <matt@3am-software.com>
  915. * config.bfd: Move the hppa*-*-netbsd* case to the hppa*-*-linux* case.
  916. 2003-10-06 Robert Millan <robertmh@gnu.org>
  917. * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
  918. * config.bfd: Likewise.
  919. * configure: Regenerate.
  920. 2003-10-04 Christian Groessler <chris@groessler.org>
  921. * coff-z8k.c (extra_case): Fix displacement length check for R_JR
  922. and R_CALLR.
  923. 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
  924. * elf32-m68hc1x.c: Update to ISO C90; replace PTR with void*.
  925. * elf32-m68hc11.c: Likewise.
  926. * elf32-m68hc12.c: Likewise.
  927. * elf32-m68hc1x.h: Likewise.
  928. 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
  929. * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Fix merge
  930. of flags between HC12 and HCS12.
  931. 2003-10-04 Bryce McKinlay <bryce@mckinlay.net.nz>
  932. * merge.c (_bfd_merge_sections): Set SEC_EXCLUDE flag on sections
  933. which become empty after merging.
  934. 2003-09-30 Jakub Jelinek <jakub@redhat.com>
  935. * elfxx-ia64.c (ia64_howto_table): Fix size of R_IA64_TPREL64[LM]SB,
  936. R_IA64_DTPREL{32,64}[LM]SB and R_IA64_DTPMOD64[LM]SB.
  937. 2003-09-30 Chris Demetriou <cgd@broadcom.com>
  938. * archures.c (bfd_mach_mipsisa64r2): New define.
  939. * bfd-in2.h: Regenerate.
  940. * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2.
  941. * cpu-mips.c (I_mipsisa64r2): New enum value.
  942. (arch_info_struct): Add entry for I_mipsisa64r2.
  943. * elfxx-mips.c (_bfd_elf_mips_mach)
  944. (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2.
  945. (mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case.
  946. (mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2.
  947. 2003-09-29 H.J. Lu <hongjiu.lu@intel.com>
  948. * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): New.
  949. Handle SHN_IA_64_ANSI_COMMON.
  950. (elf_backend_section_from_bfd_section): Defined.
  951. 2003-09-26 H.J. Lu <hongjiu.lu@intel.com>
  952. * elflink.c (elf_link_read_relocs_from_section): Add an argument
  953. of a pointer to section. Check bad symbol index.
  954. (_bfd_elf_link_read_relocs): Modify calls to
  955. elf_link_read_relocs_from_section.
  956. 2003-09-23 DJ Delorie <dj@redhat.com>
  957. * elf32-sh.c (sh_elf_howto_table): R_SH_SWITCH8,
  958. R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
  959. R_SH_LOOP_START,R_SH_LOOP_END moved to "reserved" spaces,
  960. R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
  961. R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
  962. R_SH_PSHA, R_SH_PSHL added.
  963. (sh_reloc_map): Add R_SH_DIR16 and R_SH_DIR8.
  964. (sh_elf_relocate_section): Support new relocs.
  965. 2003-09-23 Bob Wilson <bob.wilson@acm.org>
  966. * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
  967. dynamic relocation offsets.
  968. 2003-09-23 Alan Modra <amodra@bigpond.net.au>
  969. * simple.c (bfd_simple_get_relocated_section_contents): Free the
  970. hash table using _bfd_generic_link_hash_table_free.
  971. 2003-09-23 Alan Modra <amodra@bigpond.net.au>
  972. * elf-bfd.h (struct bfd_elf_special_section): Remove "suffix". Change
  973. type of prefix_length and suffix_length to int. Rename "attributes"
  974. to "attr". Comment.
  975. (_bfd_elf_get_sec_type_attr): Update prototype.
  976. * elf.c (get_special_section): Rewrite.
  977. (_bfd_elf_get_sec_type_attr): Return struct rather than passing in
  978. attr and type pointers.
  979. (_bfd_elf_new_section_hook): Adjust for above.
  980. (special_sections): Merge suffix with prefix. Set
  981. prefix_length for all entries. Set suffix_length appropriately.
  982. * elf32-m32r.c (m32r_elf_special_sections): Likewise.
  983. * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
  984. * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
  985. * elf32-mcore.c (mcore_elf_special_sections): Likewise.
  986. * elf32-sh64.c (sh64_elf_special_sections): Likewise.
  987. * elf32-v850.c (v850_elf_special_sections): Likewise.
  988. * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
  989. * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
  990. * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
  991. * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
  992. * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
  993. * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
  994. * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
  995. * elf32-ppc.c (ppc_elf_special_sections): Likewise. Fix .plt flags.
  996. 2003-09-21 Daniel Jacobowitz <drow@mvista.com>
  997. * elf64-alpha.c (elf64_alpha_create_got_section): Initialize
  998. ->got if the section already exists.
  999. 2003-09-19 Nathan Sidwell <nathan@codesourcery.com>
  1000. * dwarf2.c (decode_line_info): Cope with an initially empty
  1001. filename table.
  1002. 2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
  1003. * acinclude.m4: Include ../config/accross.m4.
  1004. * aclocal.m4: Regenerated.
  1005. * configure.host (HOST_64BIT_TYPE): Remove if it is set to long
  1006. or long long.
  1007. (HOST_U_64BIT_TYPE): Remove if it is set to unsigned long long.
  1008. (host64): Remove if HOST_64BIT_TYPE is set to long.
  1009. * configure.in (HOST_64BIT_TYPE): Set according to the size of
  1010. long and long long.
  1011. (HOST_U_64BIT_TYPE): Likewise.
  1012. (host64): Likewise.
  1013. * configure: Regenerated.
  1014. 2003-09-19 Alan Modra <amodra@bigpond.net.au>
  1015. * elf.c (elfcore_write_note): Don't use sizeof(Elf_External_note)
  1016. since some ABIs round up the size of the struct.
  1017. 2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
  1018. * elflink.c (_bfd_elf_merge_symbol): Allow type change if
  1019. the old symbol is undefined and the new symbol is defined.
  1020. 2003-09-18 Andreas Schwab <schwab@suse.de>
  1021. * simple.c (bfd_simple_get_relocated_section_contents): Use
  1022. _bfd_generic_link_hash_table_create instead of
  1023. bfd_link_hash_table_create.
  1024. 2003-09-10 H.J. Lu <hongjiu.lu@intel.com>
  1025. * elfxx-ia64.c (elfNN_ia64_special_sections): Mark all sections
  1026. started with ".sbss" or "".sdata" as SHF_IA_64_SHORT.
  1027. 2003-09-10 John David Anglin <dave.anglin@nrc-cnrc.nrc.ca>
  1028. Randolph Chung <randolph@tausq.org>
  1029. * elf32-hppa.c (struct elf32_hppa_link_hash_entry,
  1030. hppa_link_hash_newfunc, hppa_build_one_stub,
  1031. elf32_hppa_adjust_dynamic_symbol, mark_PIC_calls, allocate_plt_static,
  1032. allocate_dynrelocs, elf32_hppa_size_dynamic_sections,
  1033. elf32_hppa_finish_dynamic_symbol): Remove pic_call field and all code
  1034. for generating import stubs for calls to statically linked PIC
  1035. functions.
  1036. (hppa_type_of_stub): Don't generate an import stub for calls to
  1037. statically linked pic functions. Generate import stubs for calls
  1038. in a shared object, to functions not in a regular file, and to
  1039. defined weak functions. Add new argument INFO.
  1040. (hppa_build_one_stub): Don't undef ADDIL_DP.
  1041. (elf32_hppa_check_relocs): Don't set SEC_HAS_GOT_REF flag.
  1042. (elf32_hppa_size_stubs): Pass info to hppa_type_of_stub.
  1043. (final_link_relocate): Change all DLTIND relocs to DPREL relocs in a
  1044. non-shared link. Convert instructions that use the linkage table
  1045. pointer, or a facsimile thereof, to use the global data pointer when
  1046. the reloc has been changed.
  1047. 2003-09-08 Joel Brobecker <brobecker@gnat.com>
  1048. * archures.c: Add new machine names for hppa.
  1049. * bfd-in2.h: Regenerate.
  1050. * cpu-hppa.c: Use the new machine names.
  1051. 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
  1052. * elf32-m68hc1x.h (struct m68hc11_elf_link_hash_table): Remove
  1053. all_local_syms member.
  1054. * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Use bfd_elf_get_elf_syms
  1055. to get the local symbols.
  1056. 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
  1057. * elf32-m68hc12.c (elf32_m68hc12_special_sections): New for hc11.
  1058. (elf_backend_special_sections): Define.a
  1059. PR savannah/4950:
  1060. * elf32-m68hc11.c (elf32_m68hc11_special_sections): The .vectors
  1061. section is read-only.
  1062. 2003-09-04 Nick Clifton <nickc@redhat.com>
  1063. * archures.c (bfd_mach_v850e1): Define.
  1064. * bfd-in2.h: Regenerate.
  1065. * cpu-v850.h (scan): Accept bfd_mach_v850e1.
  1066. (arch_info_struct): Include an entry for bfd_mach_v850e1.
  1067. * elf32-v850.c (v850_elf_object_p): Accept E_V850E1_ARCH flag.
  1068. (v850_elf_final_write_processing): Accept bfd_mach_v850e1.
  1069. (v850_elf_print_private_bfd_data): Interpret E_V850E1_ARCH flag.
  1070. (v850_elf_merge_private_bfd_data): Allow v850e1 binaries to be
  1071. linked with v850e binaries. Mark the output as v850e.
  1072. 2003-09-03 Nick Clifton <nickc@redhat.com>
  1073. * cofflink.c (_bfd_coff_link_input_bfd): Do not skip section
  1074. symbols that are used in relocs.
  1075. 2003-08-30 Robert Millan <robertmh@gnu.org>
  1076. * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu triplet.
  1077. * config.bfd: Likewise.
  1078. * configure: Regenerate.
  1079. 2003-08-31 Christian Groessler <chris@groessler.org>
  1080. * elf32-i860.c (i860_howto_pc26_reloc): Finish relocation here
  1081. instead of returning bfd_reloc_continue.
  1082. 2003-08-31 Andreas Jaeger <aj@suse.de>
  1083. * merge.c: Update to ISO C90.
  1084. 2003-08-27 Ian Lance Taylor <ian@airs.com>
  1085. * configure.in: Check for strtoull.
  1086. * bfd.c (bfd_scan_vma): Use strtoull when available.
  1087. * configure, config.in: Regenerate.
  1088. * configure.in: Define and substitute BFD_HOST_LONG_LONG.
  1089. * bfd-in.h: Define BFD_HOST_LONG_LONG. Test it rather than
  1090. __GNUC__ when deciding whether to use long long for
  1091. BFD_HOST_64_BIT.
  1092. * configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
  1093. 2003-08-27 Christian Groessler <chris@groessler.org>
  1094. * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
  1095. i860_howto_splitn_reloc, i860_howto_highadj_reloc): New
  1096. functions.
  1097. (elf32_i860_howto_table): Insert the new functions as
  1098. 'special_function's in the proper reloc type entries.
  1099. 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
  1100. * elf32-frv.c (elf32_frv_relocate_section): Use
  1101. _bfd_elf_rela_local_sym.
  1102. 2003-08-26 Michael Snyder <msnyder@redhat.com>
  1103. * cpu-frv.c: Remove unused enum.
  1104. 2003-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  1105. * reloc.c: Fix documentation for MIPS ELF relocations.
  1106. libbfd.h: Regenerate.
  1107. bfd-in2.h: Regenerate.
  1108. 2003-08-24 Jason Eckhardt <jle@rice.edu>
  1109. * coff-i860.c (CALC_ADDEND): Define to be a no-op.
  1110. 2003-08-24 Jason Eckhardt <jle@rice.edu>
  1111. * elf32-i860.c (elf32_i860_relocate_pc16): Subtract 4 and
  1112. shift by 2 before storing the relocated value.
  1113. 2003-08-23 Jason Eckhardt <jle@rice.edu>
  1114. * coff-i860.c (coff_i860_reloc_nyi): New function.
  1115. (howto_table): Add entries for relocations PAIR, HIGHADJ, HIGH,
  1116. LOWn, SPLITn, and BRADDR.
  1117. (RTYPE2HOWTO): Check that the r_type is within the howto_table
  1118. before trying to access the entry.
  1119. (coff_i860_rtype_to_howto): Likewise.
  1120. (coff_i860_reloc_type_lookup): New function.
  1121. (i860_reloc_processing): New function.
  1122. (coff_bfd_reloc_type_lookup): Define macro.
  1123. (RELOC_PROCESSING): Define macro.
  1124. Minor formatting adjustments.
  1125. 2003-08-23 Alan Modra <amodra@bigpond.net.au>
  1126. * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.
  1127. 2003-08-22 H.J. Lu <hongjiu.lu@intel.com>
  1128. * elfxx-ia64.c (elfNN_ia64_create_dynamic_sections): Align the
  1129. .got section at 8 bytes.
  1130. 2003-08-21 Nick Clifton <nickc@redhat.com>
  1131. * cofflink.c: Update to ISO C90 and tidy up formatting.
  1132. 2003-08-21 Randolph Chung <tausq@debian.org>
  1133. * elf32-hppa.c (elf32_hppa_object_p): For elf32-hppa-linux, objects
  1134. can have OSABI=Linux or OSABI=SysV. Check for both.
  1135. * elf64-hppa.c (elf64_hppa_object_p): Likewise.
  1136. 2003-08-21 Nick Clifton <nickc@redhat.com>
  1137. * po/sv.po: Updated Swedish translation.
  1138. 2003-08-20 Richard Sandiford <rsandifo@redhat.com>
  1139. * elf64-mips.c (elf_backend_copy_indirect_symbol): Define.
  1140. 2003-08-20 Nick Clifton <nickc@redhat.com>
  1141. * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): New macro used to
  1142. replace some duplicated code in most elfxx-xxxx.c files. This
  1143. version uses the new fields in bfd_link_info.
  1144. * elf-m10300.c (mn10300_elf_relocate_section): Use new macro.
  1145. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  1146. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  1147. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  1148. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  1149. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  1150. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
  1151. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  1152. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1153. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  1154. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1155. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  1156. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
  1157. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  1158. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  1159. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  1160. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  1161. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1162. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  1163. * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols,
  1164. elf_hppa_remark_useless_dynamic_symbols,
  1165. elf_hppa_relocate_section): Use the new fields in
  1166. bfd_link_info structure.
  1167. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  1168. * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
  1169. * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
  1170. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  1171. * elfxx-ia64.c (elfNN_ia64_check_relocs): Likewise.
  1172. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
  1173. * elflink.h (elf_link_output_extsym): Fix test for reporting
  1174. undefined symbols in shared libraries. Remove redundant test
  1175. of shlib_undefined when reporting references to forced local
  1176. symbols.
  1177. 2003-08-18 Andreas Schwab <schwab@suse.de>
  1178. * libpei.h (bfd_pe_executable_p): Also recognize efi-app
  1179. executables.
  1180. 2003-08-17 Hans-Peter Nilsson <hp@bitrange.com>
  1181. * simple.c (bfd_simple_get_relocated_section_contents): Move
  1182. reloc_done hack to before first bfd_section_size call. Change all
  1183. returns to use new wrapper macro RETURN, restoring sec->reloc_done.
  1184. 2003-08-16 Alan Modra <amodra@bigpond.net.au>
  1185. * elf64-ppc.c: Don't include elf/ppc.h.
  1186. 2003-08-14 Richard Sandiford <rsandifo@redhat.com>
  1187. * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
  1188. code to work with 64-bit bfds.
  1189. 2003-08-14 Alan Modra <amodra@bigpond.net.au>
  1190. * dep-in.sed: Remove libintl.h.
  1191. * Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Unset LC_COLLATE.
  1192. (POTFILES.in): Remove target.
  1193. * Makefile.in: Regenerate.
  1194. 2003-08-12 Alan Modra <amodra@bigpond.net.au>
  1195. * elf64-ppc.c (ppc64_elf_next_input_section): Update comment.
  1196. (ppc64_elf_relocate_section): For zero sym R_PPC64_TOC relocs,
  1197. use the function sym from the previous reloc.
  1198. 2003-08-11 Jakub Jelinek <jakub@redhat.com>
  1199. * elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
  1200. fatal if -pie.
  1201. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  1202. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1203. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  1204. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  1205. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  1206. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  1207. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1208. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  1209. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1210. (ppc_elf_relocate_section) <case R_PPC_RELAX32>: Issue fatal error
  1211. on undefined symbols if -pie.
  1212. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  1213. 2003-08-11 Alan Modra <amodra@bigpond.net.au>
  1214. * elf64-ppc.c (ppc64_elf_relocate_section): Add special case for crt1.o
  1215. branch to __libc_start_main.
  1216. 2003-08-08 Dmitry Diky <diwil@mail.ru>
  1217. * archures.c: Add xW42 and xE42 parts. Sort MPU list according to
  1218. gcc order.
  1219. * cpu-msp430.c: Likewise.
  1220. * elf32-msp430.c: Likewise.
  1221. * bfd-in2.h: Regenerate.
  1222. 2003-08-07 Alan Modra <amodra@bigpond.net.au>
  1223. * elfxx-target.h: Remove PTR cast.
  1224. * targets.c (bfd_target): Make backend_data const void *.
  1225. * elf-bfd.h: Constify all occurrences of struct elf_backend_data.
  1226. * elf-m10300.c: Likewise.
  1227. * elf.c: Likewise.
  1228. * elf32-hppa.c: Likewise.
  1229. * elf32-i386.c: Likewise.
  1230. * elf32-m68hc1x.c: Likewise.
  1231. * elf32-ppc.c: Likewise.
  1232. * elf32-s390.c: Likewise.
  1233. * elf32-sh.c: Likewise.
  1234. * elf32-sh64.c: Likewise.
  1235. * elf32-sparc.c: Likewise.
  1236. * elf32-xtensa.c: Likewise.
  1237. * elf64-mips.c: Likewise.
  1238. * elf64-ppc.c: Likewise.
  1239. * elf64-s390.c: Likewise.
  1240. * elf64-sh64.c: Likewise.
  1241. * elf64-sparc.c: Likewise.
  1242. * elf64-x86-64.c: Likewise.
  1243. * elfcode.h: Likewise.
  1244. * elfcore.h: Likewise.
  1245. * elflink.c: Likewise.
  1246. * elflink.h: Likewise.
  1247. * elfxx-ia64.c: Likewise.
  1248. * elfxx-mips.c: Likewise.
  1249. * elfxx-mips.h: Likewise.
  1250. * elf.c (prep_headers): Remove useless check for null backend_data.
  1251. * bfd-in2.h: Regenerate.
  1252. * elf-bfd.h: Remove PARAMS macro. Replace PTR with void *.
  1253. (NAME): Use ## rather than CONCAT4 macro.
  1254. * elfcode.h: Remove one remaining PARAMS macro.
  1255. * elf-eh-frame.c: Convert to C90, remove unneeded casts and prototypes.
  1256. * elf-strtab.c: Likewise.
  1257. * elf-hppa.h: Likewise.
  1258. * elf32-hppa.h: Likewise.
  1259. * elf32-hppa.c: Likewise.
  1260. (elf32_hppa_add_symbol_hook): Delete.
  1261. (elf_backend_add_symbol_hook): Don't define.
  1262. * libhppa.h: Convert to C90. Replace INLINE with inline.
  1263. 2003-08-06 Alan Modra <amodra@bigpond.net.au>
  1264. * elf64-ppc.c (ppc_stub_name): Tweak names for better readability.
  1265. (ppc64_elf_adjust_dynamic_symbol): Allow copy relocs against
  1266. function descriptors, but warn.
  1267. (ppc_build_one_stub): Remove a couple of vars. Move code creating
  1268. stub syms so that we can avoid a stub sym if we already have a
  1269. plt sym. Do not redefine an existing symbol.
  1270. (ppc64_elf_build_stubs): When --emit-stub-syms, print a symbol for
  1271. glink.
  1272. 2003-08-06 Nick Clifton <nickc@redhat.com>
  1273. * po/fr.po: Updated French translation.
  1274. 2003-08-06 Alan Modra <amodra@bigpond.net.au>
  1275. * elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
  1276. SEC_LINKER_CREATED.
  1277. 2003-08-05 Daniel Jacobowitz <drow@mvista.com>
  1278. * elf32-arm.h (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  1279. (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Use it.
  1280. 2003-08-03 Jeff Muizelaar <muizelaar@rogers.com>
  1281. * coffcode.h (coff_slurp_line_table): Return with a warning
  1282. message if the line number table could not be read.
  1283. 2003-08-04 Nick Clifton <nickc@redhat.com>
  1284. * elflink.h (elf_link_add_object_symbols): Prepend "warning: "
  1285. to messages produced for .gnu.warning.SYMBOL sections.
  1286. 2003-08-04 Alan Modra <amodra@bigpond.net.au>
  1287. * elfcode.h: Convert to C90, remove unneeded casts and prototypes.
  1288. * elfcore.h: Likewise.
  1289. * elflink.c: Likewise.
  1290. * elflink.h: Likewise.
  1291. * elf.c (sym_is_global): Remove INLINE.
  1292. (align_file_position): Replace INLINE with inline.
  1293. * elfcode.h (elf_swap_dyn_in, elf_swap_dyn_out): Remove INLINE.
  1294. (elf_file_p): Replace INLINE with inline.
  1295. 2003-08-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1296. * elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
  1297. 2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
  1298. * elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
  1299. 2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
  1300. * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Use
  1301. ElfNN_External_Rela instead of Elf64_External_Rela.
  1302. 2003-08-01 Nick Clifton <nickc@redhat.com>
  1303. * config.bfd: Add code to catch obsolete configurations and warn
  1304. about them unless --enable-obsolete is used. Use this to mark
  1305. vax-vms port as obsolete.
  1306. 2003-07-30 Alan Modra <amodra@bigpond.net.au>
  1307. * elf32-ppc.c (ppc_elf_install_value): Tidy.
  1308. (ppc_elf_relax_section): Remove dead code. Remove unnecessary casts.
  1309. Formatting.
  1310. * elfxx-target.h: Remove PARAMS macro. Formatting.
  1311. 2003-07-30 Alan Modra <amodra@bigpond.net.au>
  1312. * elf.c (bfd_section_from_r_symndx): Test for SHN_UNDEF.
  1313. * elf64-ppc.c (get_fdh): New function, split out from
  1314. ppc64_elf_edit_opd.
  1315. (ppc64_elf_check_relocs): Use get_fdh.
  1316. (func_desc_adjust): Likewise. Tidy.
  1317. (ppc64_elf_edit_opd): Tighten reloc checks. Free local_syms on error
  1318. exit. Use get_fdh. Account for superfluous dynamic relocs.
  1319. (ppc64_elf_relocate_section): Warning fix.
  1320. 2003-07-30 Jason Eckhardt <jle@rice.edu>
  1321. * coff-i860.c: Convert to ISO C90. Remove superflous prototypes.
  1322. 2003-07-30 Jason Eckhardt <jle@rice.edu>
  1323. * elf32-i860.c: Convert to ISO C90. Remove superflous prototypes.
  1324. 2003-07-30 Randolph Chung <tausq@debian.org>
  1325. * elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
  1326. * elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
  1327. 2003-07-30 Alan Modra <amodra@bigpond.net.au>
  1328. * elf.c: Convert to C90, remove unnecessary prototypes and casts.
  1329. Replace PTR with void *. Formatting.
  1330. (_bfd_elf_assign_file_position_for_section): Remove INLINE.
  1331. (make_mapping): Likewise.
  1332. 2003-07-29 Alan Modra <amodra@bigpond.net.au>
  1333. * elf64-ppc.c (func_desc_adjust): Give linker created function
  1334. descriptor symbols a size and type.
  1335. (ppc64_elf_relocate_section): Correct lq insn test.
  1336. 2003-07-28 Eric Christopher <echristo@redhat.com>
  1337. * elf32-ppc.c (R_PPC_RELAX32): New relocation.
  1338. (ppc_elf_install_value): New function.
  1339. (ppc_elf_sort_rela): Remove.
  1340. (ppc_elf_relax_section): Rewrite. Remove old relaxation
  1341. and replace with out of range branch stubs.
  1342. (ppc_elf_relocate_section): Handle R_PPC_RELAX32.
  1343. 2003-07-29 Alexandre Oliva <aoliva@redhat.com>
  1344. * elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
  1345. from input_bfd.
  1346. 2003-07-28 Alan Modra <amodra@bigpond.net.au>
  1347. * elf.c (special_sections): Set attributes for .got and .plt.
  1348. 2003-07-27 Alan Modra <amodra@bigpond.net.au>
  1349. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
  1350. on function descriptors.
  1351. (ELIMINATE_COPY_RELOCS): Expand comment.
  1352. (ppc64_elf_special_sections): Move. Don't include non-ppc64 sections.
  1353. Do include ".toc1".
  1354. 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
  1355. * elf.c (_bfd_elf_new_section_hook): Set the default section
  1356. type to SHT_NULL.
  1357. (elf_fake_sections): Set the section type based on asect->flags
  1358. if it is SHT_NULL. Don't abort on processor specific section
  1359. types.
  1360. 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
  1361. * bfd-in2.h: Regenerated.
  1362. 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
  1363. * elf-bfd.h (bfd_elf_special_section): New.
  1364. (elf_backend_data): Add special_sections, a pointer to
  1365. bfd_elf_special_section.
  1366. (elf_section_type). New.
  1367. (elf_section_flags): New.
  1368. (_bfd_elf_get_sec_type_attr): New.
  1369. * elf.c (_bfd_elf_make_section_from_shdr): Always use the
  1370. real section type/flags.
  1371. (special_sections): New.
  1372. (get_special_section): New.
  1373. (_bfd_elf_get_sec_type_attr): New.
  1374. (_bfd_elf_new_section_hook): Check special_section to set
  1375. elf_section_type and elf_section_flags.
  1376. (elf_fake_sections): Don't use section name to set ELF section
  1377. data.
  1378. * elf32-m32r.c (m32r_elf_special_sections): New.
  1379. (elf_backend_special_sections): Defined.
  1380. * elf32-m68hc11.c (elf32_m68hc11_special_sections): New.
  1381. (elf_backend_special_sections): Defined.
  1382. * elf32-mcore.c (mcore_elf_special_sections): New.
  1383. (elf_backend_special_sections): Defined.
  1384. * elf32-ppc.c (ppc_elf_special_sections): New.
  1385. (elf_backend_special_sections): Defined.
  1386. * elf32-sh64.c (sh64_elf_special_sections): New.
  1387. (elf_backend_special_sections): Defined.
  1388. * elf32-v850.c (v850_elf_special_sections): New.
  1389. (elf_backend_special_sections): Defined.
  1390. * elf32-xtensa.c (elf_xtensa_special_sections): New.
  1391. (elf_backend_special_sections): Defined.
  1392. * elf64-alpha.c (elf64_alpha_special_sections): New.
  1393. (elf_backend_special_sections): Defined.
  1394. * elf64-hppa.c (elf64_hppa_special_sections): New.
  1395. (elf_backend_special_sections): Defined.
  1396. * elf64-ppc.c (ppc64_elf_special_sections): New.
  1397. (elf_backend_special_sections): Defined.
  1398. * elf64-sh64.c (sh64_elf64_special_sections): New.
  1399. (elf_backend_special_sections): Defined.
  1400. * elfxx-ia64.c (elfNN_ia64_special_sections): New.
  1401. (elf_backend_special_sections): Defined.
  1402. * elfxx-mips.c (_bfd_mips_elf_special_sections): New.
  1403. * elfxx-mips.h (_bfd_mips_elf_special_sections): New.
  1404. (elf_backend_special_sections): Defined.
  1405. * elfxx-target.h (elf_backend_special_sections): New. Default
  1406. to NULL.
  1407. (elfNN_bed): Initialize special_sections.
  1408. * section.c (bfd_abs_section): Remove const.
  1409. (bfd_und_section): Likewise.
  1410. (bfd_com_section): Likewise.
  1411. (bfd_ind_section): Likewise.
  1412. 2003-07-24 Nick Clifton <nickc@redhat.com>
  1413. * coff-arm.c (EXTRA_S_FLAGS): Include SEC_CODE so that code
  1414. sections are assigned the LOAD attribute.
  1415. 2003-07-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1416. * elf32-sh.c: Convert to C90. Replace PTR with void *.
  1417. * elf32-sh64-com.c: Likewise.
  1418. * elf32-sh64.c: Likewise.
  1419. * elf32-sh64.h: Likewise.
  1420. * elf64-sh64.c: Likewise.
  1421. 2003-07-24 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1422. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
  1423. (allocate_dynrelocs): Likewise.
  1424. (sh_elf_relocate_section): Likewise. Use SYMBOL_REFERENCES_LOCAL.
  1425. (sh_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
  1426. 2003-07-24 Nick Clifton <nickc@redhat.com>
  1427. * po/fr.po: Updated French translation.
  1428. 2003-07-23 Bob Wilson <bob.wilson@acm.org>
  1429. * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Make inline and move
  1430. near the beginning of the file. Swap order of arguments. Call
  1431. _bfd_elf_dynamic_symbol_p with "ignore_protected" set to 0.
  1432. (elf_xtensa_fix_refcounts): Adjust xtensa_elf_dynamic_symbol_p call.
  1433. (elf_xtensa_relocate_section): Likewise.
  1434. (shrink_dynamic_reloc_sections): Likewise.
  1435. 2003-07-23 Bob Wilson <bob.wilson@acm.org>
  1436. * elf32-xtensa.c (plt_reloc_count): Fix typo in comment.
  1437. (elf_xtensa_size_dynamic_sections): Use elf_discarded_section.
  1438. (elf_xtensa_combine_prop_entries): Avoid returning non-zero without
  1439. first printing an error message.
  1440. (elf_xtensa_finish_dynamic_sections): Likewise.
  1441. (elf_xtensa_discard_info_for_section): Adjust size of .got.loc when
  1442. discarding literal table entries.
  1443. (elf_xtensa_merge_private_bfd_data): Remove newline from error message.
  1444. (elf_xtensa_do_asm_simplify): Likewise.
  1445. 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
  1446. * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Avoid crash when
  1447. we have a local symbol in common section.
  1448. 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
  1449. * elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
  1450. weak symbols.
  1451. 2003-07-22 Nick Clifton <nickc@redhat.com>
  1452. * coffcode.h (coff_slurp_symbol_table): Add C_TCSYM and C_ECOML to
  1453. expected RS6000 storage classes.
  1454. 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
  1455. * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Mark
  1456. output_bfd unused to silence gcc.
  1457. 2003-07-21 Nick Clifton <nickc@redhat.com>
  1458. * po/sv.po: Updated Swedish translation.
  1459. 2003-07-21 Alan Modra <amodra@bigpond.net.au>
  1460. * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use..
  1461. (_bfd_elf_symbol_refs_local_p): ..this. Declare.
  1462. * elflink.c (_bfd_elf_symbol_refs_local_p): New function.
  1463. * elf32-i386.c (elf_i386_relocate_section): Remove h NULL test
  1464. now done in _bfd_elf_symbol_refs_local_p.
  1465. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1466. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  1467. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1468. 2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
  1469. * elflink.c (_bfd_elf_dynamic_symbol_p): Undo the last change.
  1470. 2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
  1471. * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Fix a typo.
  1472. (SYMBOL_CALLS_LOCAL): Likewise.
  1473. * elflink.c (_bfd_elf_dynamic_symbol_p): Return TRUE
  1474. immediately if symbol isn't defined locally.
  1475. 2003-07-18 Richard Henderson <rth@redhat.com>
  1476. * elflink.c (_bfd_elf_dynamic_symbol_p): New.
  1477. * elf-bfd.h (_bfd_elf_dynamic_symbol_p): Declare it.
  1478. (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use it.
  1479. * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Likewise.
  1480. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
  1481. * elf64-hppa.c (elf64_hppa_dynamic_symbol_p): Likewise.
  1482. * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Likewise.
  1483. Update all callers to provide the relocation being resolved.
  1484. 2003-07-17 Shaun Jackman <sjackman@pathwayconnect.com>
  1485. * config.bfd (arm-wince-pe): Add -DARM_COFF_BUGFIX to
  1486. targ_cflags.
  1487. 2003-07-17 Nick Clifton <nickc@redhat.com>
  1488. * po/es.po: New Spanish translation.
  1489. * po/sv.po: New Swedish translation.
  1490. * po/opcodes.pot: Regenerate.
  1491. 2003-07-16 Richard Henderson <rth@redhat.com>
  1492. * config.bfd, configure.host, configure.in: Remove ia64-aix support.
  1493. * elfxx-ia64.c, targets.c: Likewise.
  1494. 2003-07-16 Richard Henderson <rth@redhat.com>
  1495. * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
  1496. for symbols defined locally plus -Bsymbolic. Tidy logic.
  1497. 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
  1498. * archures.c (bfd_mach_mips7000): New.
  1499. * bfd-in2.h: Regenerated.
  1500. * cpu-mips.c (arch_info_struct): Add an entry for mips:7000.
  1501. * elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips7000.
  1502. (mips_mach_extensions): Add an entry for it.
  1503. 2003-07-14 Nick Clifton <nickc@redhat.com>
  1504. * po/tr.po: Update with latest version.
  1505. * po/SRC-POTFILES.in: Regenerate.
  1506. * po/bfd.pot: Regenerate.
  1507. * Makfile.in: Regenerate.
  1508. * configure: Regenerate.
  1509. 2003-07-12 Jeff Baker <jbaker@qnx.com>
  1510. * config.bfd (__QNXTARGET__): Define for Neutrino architectures.
  1511. * elf32-arm.h (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
  1512. * elf32-sh.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
  1513. * elf32-ppc.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
  1514. 2003-07-12 Jeff Muizelaar <muizelaar@rogers.com>
  1515. * coffcode.h (coff_set_section_contents): Set the
  1516. IMAGE_FILE_32BIT_MACHINE flag for PE targets.
  1517. 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
  1518. * bfd-in.h (bfd_h8300_pad_address): Declare.
  1519. * bfd-in2.h: Regenerate.
  1520. * cpu-h8300.c (bfd_h8300_pad_address): New function.
  1521. * coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize
  1522. addresses before checking whether they can be relaxed.
  1523. (h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check.
  1524. Don't complain about overflows in general 8-bit relocations.
  1525. * elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address.
  1526. Fix handling of R_H8_DIR24A8.
  1527. 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
  1528. * elf32-h8300.c: Convert function prototypes and definitions
  1529. to C90 syntax.
  1530. * coff-h8300.c: Likewise.
  1531. * cpu-h8300.c: Likewise.
  1532. 2003-07-11 Alan Modra <amodra@bigpond.net.au>
  1533. * po/SRC-POTFILES.in: Regenerate.
  1534. * po/bfd.pot: Likewise.
  1535. 2003-07-10 Bob Wilson <bob.wilson@acm.org>
  1536. * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Create new
  1537. .got.loc section. Do not set SEC_ALLOC or SEC_LOAD flags for the
  1538. .xt.lit.plt section.
  1539. (elf_xtensa_size_dynamic_sections): Set size of the .got.loc section
  1540. and allocate memory for it.
  1541. (elf_xtensa_combine_prop_entries): Copy contents of .xt.lit output
  1542. section to the .got.loc section.
  1543. (elf_xtensa_finish_dynamic_sections): Fix up call to
  1544. elf_xtensa_combine_prop_entries and set DT_XTENSA_GOT_LOC_OFF to
  1545. the address of .got.loc.
  1546. (relax_property_section): Shrink .got.loc to match changes in any
  1547. literal table section.
  1548. (xtensa_is_property_section): Change to match
  1549. xtensa_get_property_section_name.
  1550. (xtensa_is_littable_section): New.
  1551. 2003-07-10 H.J. Lu <hongjiu.lu@intel.com>
  1552. * elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1 instead of
  1553. -1LL.
  1554. 2003-07-10 Alan Modra <amodra@bigpond.net.au>
  1555. * Makefile.am (BFD32_BACKENDS): Add elf32-am33lin.lo.
  1556. (BFD32_BACKENDS_CFILES): elf32-am33lin.c not elf32-am33lin.lo.
  1557. Run "make dep-am".
  1558. * Makefile.in: Regenerate.
  1559. 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
  1560. 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
  1561. * elf32-am33lin.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
  1562. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
  1563. 2001-06-02 Nick Clifton <nickc@cambridge.redhat.com>
  1564. * elf32-am33lin.c: Rename global functions.
  1565. 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
  1566. * config.bfd (am33_2.0, am33_2.0-*-linux*): Added.
  1567. * configure.in (bfd_elf32_am33lin_vec): Added.
  1568. * Makefile.am (BFD32_BACKENDS): Added elf32-am33lin.lo.
  1569. (elf32-am33lin.lo): List dependencies.
  1570. * aclocal.m4, configure, Makefile.in: Rebuilt.
  1571. * elf-m10300.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME,
  1572. ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE): Define only if
  1573. ELF_ARCH was not defined before.
  1574. (elf_symbol_leading_char): Define if not defined.
  1575. * elf32-am33lin.c: Override the definitions above.
  1576. * targets.c (bfd_elf32_am33lin_vec): New.
  1577. 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
  1578. 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
  1579. * elf-m10300.c (elf32_mn10300_link_hash_newfunc): Initialize
  1580. pcrel_relocs_copied.
  1581. 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
  1582. * elf-m10300.c (ELF_DYNAMIC_INTERPRETER): Renamed from
  1583. ld-linux.so.2 to ld.so.1.
  1584. 2001-10-10 Alexandre Oliva <aoliva@redhat.com>
  1585. * elf-m10300.c (elf_mn10300_sizeof_plt0): New macro.
  1586. (_bfd_mn10300_elf_adjust_dynamic_symbol): Use it.
  1587. (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
  1588. * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Allocate
  1589. .rela.* section contents with bfd_zalloc.
  1590. 2001-09-25 Alexandre Oliva <aoliva@redhat.com>
  1591. * elf-m10300.c: Added declarations for functions missing them.
  1592. Merge some shared-library changes from the i386 back-end. Use
  1593. R_MN10300_RELATIVE instead of R_MN10300_PCREL32 and
  1594. R_MN10300_GLOB_DAT instead of R_MN10300_32 where appropriate.
  1595. (struct elf32_mn10300_link_hash_entry): Remove duplicates of
  1596. members of elf_link_hash_entry. Adjusted references.
  1597. (mn10300_elf_final_link_relocate): dynobj was already loaded
  1598. into a local variable, use it.
  1599. 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
  1600. * elf-m10300.c: Add missing function prototypes.
  1601. 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
  1602. * elf-m10300.c (mn10300_elf_relocate_section): Don't compute
  1603. relocation for dynamic relocations.
  1604. 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
  1605. * reloc.c (BFD_RELOC_MN10300_GOTOFF24): New.
  1606. * elf-m10300.c: Introduce GOTPC16, GOTOFF24, GOTOFF16 and
  1607. PLT16, and rename GOTPC to GOTPC32 and GOTOFF to GOTOFF32.
  1608. (_bfd_mn10300_elf_create_dynamic_sections): Move creation ot PLT...
  1609. (_bfd_mn10300_elf_create_got_section): ... here, so that its
  1610. adress is already known at the time we compute relaxations.
  1611. (mn10300_elf_relax_section): Relax GOTPC32, GOTOFF32, GOT32
  1612. and PLT32 to narrower relocations.
  1613. * libbfd.h, bfd-in2.h: Rebuilt.
  1614. 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
  1615. * reloc.c (BFD_RELOC_MN10300_GOT32, BFD_RELOC_MN10300_GOT24,
  1616. BFD_RELOC_MN10300_GOT16, BFD_RELOC_MN10300_COPY,
  1617. BFD_RELOC_MN10300_GLOB_DAT, BFD_RELOC_MN10300_JMP_SLOT,
  1618. BFD_RELOC_MN10300_RELATIVE): New relocs.
  1619. * libbfd.h, bfd-in2.h: Rebuilt.
  1620. * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): New.
  1621. (struct elf32_mn10300_link_hash_entry): Added DSO-related
  1622. fields.
  1623. (elf_mn10300_howto): Defined new relocation types.
  1624. (mn10300_reloc_map): Map them.
  1625. (_bfd_mn10300_elf_create_got_section): New fn.
  1626. (mn10300_elf_check_relocs): Handle PIC relocs.
  1627. (mn10300_elf_final_link_relocate): Likewise.
  1628. (mn10300_elf_relocate_section): Handle DSOs.
  1629. (PLT0_ENTRY_SIZE, PLT_ENTRY_SIZE, PIC_PLT_ENTRY_SIZE): New macros.
  1630. (elf_mn10300_plt0_entry, elf_mn10300_plt_entry,
  1631. elf_mn10300_pic_plt_entry): New.
  1632. (elf_mn10300_sizeof_plt, elf_mn10300_plt_plt0_offset,
  1633. elf_mn10300_plt0_linker_offset, elf_mn10300_plt0_gotid_offset,
  1634. elf_mn10300_plt_temp_offset, elf_mn10300_plt_symbol_offset,
  1635. elf_mn10300_plt_reloc_offset: New macros.
  1636. (ELF_DYNAMIC_INTERPRETER): Likewise.
  1637. (_bfd_mn10300_elf_create_dynamic_sections): New function.
  1638. (_bfd_mn10300_elf_adjust_dynamic_symbol): Likewise.
  1639. (_bfd_mn10300_elf_discard_copies): Likewise.
  1640. (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
  1641. (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
  1642. (_bfd_mn10300_elf_finish_dynamic_sections): Likewise.
  1643. (elf_backend_can_gc_sections,
  1644. elf_backend_create_dynamic_sections,
  1645. elf_backend_adjust_dynamic_sections,
  1646. elf_backend_size_dynamic_sections,
  1647. elf_backend_finish_dynamic_symbol,
  1648. elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
  1649. elf_backend_plt_readonly, elf_backend_want_plt_sym,
  1650. elf_backend_got_header_size, elf_backend_plt_header_size): New
  1651. macros.
  1652. 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
  1653. 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
  1654. * elf-m10300.c (compute_function_info): Account for AM33
  1655. registers in `movm' when computing stack space for `call' when
  1656. linking for AM33/2.0 link.
  1657. 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
  1658. * archures.c (bfd_mach_am33_2): Renamed from bfd_mach_am332.
  1659. * bfd-in2.h: Rebuilt.
  1660. * cpu-m10300.c (bfd_am33_2_arch): Renamed from bfd_am332_arch.
  1661. * elf-m10300.c: Updated.
  1662. 2000-03-31 Alexandre Oliva <aoliva@cygnus.com>
  1663. * archures.c (bfd_mach_am332): Defined.
  1664. * bfd-in2.h: Rebuilt.
  1665. * cpu-m10300.c (bfd_am332_arch): Defined.
  1666. (bfd_am33_arch): Chained with am33-2.
  1667. * elf-m10300.c (elf_mn10300_mach): Handle am332.
  1668. (_bfd_mn10300_elf_final_write_processing): Likewise.
  1669. 2003-07-09 H.J. Lu <hongjiu.lu@intel.com>
  1670. * elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1LL.
  1671. 2003-07-10 Alan Modra <amodra@bigpond.net.au>
  1672. * elf64-ppc.c (bfd_elf64_mkobject): Define.
  1673. (struct ppc64_elf_obj_tdata): New.
  1674. (ppc64_elf_tdata, ppc64_tlsld_got): Define.
  1675. (ppc64_elf_mkobject): New function.
  1676. (struct got_entry): Add "owner". Move "tls_type".
  1677. (struct ppc_link_hash_table): Delete "relgot", "tlsld_got".
  1678. (ppc64_elf_init_stub_bfd): New function.
  1679. (create_got_section): Create header .got in dynobj. Create .got
  1680. and .rela.got in each bfd. Stash pointers in ppc64_elf_obj_tdata.
  1681. (ppc64_elf_create_dynamic_sections): Don't call create_got_section.
  1682. Look for dynobj .got, and test it.
  1683. (ppc64_elf_copy_indirect_symbol): Adjust for changed got.
  1684. (update_local_sym_info): Likewise.
  1685. (ppc64_elf_check_relocs): Likewise.
  1686. (ppc64_elf_gc_sweep_hook): Likewise.
  1687. (ppc64_elf_tls_optimize): Likewise.
  1688. (allocate_dynrelocs): Likewise.
  1689. (ppc64_elf_size_dynamic_sections): Likewise.
  1690. (ppc64_elf_relocate_section): Likewise.
  1691. (ppc64_elf_next_toc_section): Update comment.
  1692. (toc_adjusting_stub_needed): Remove unneeded cast.
  1693. (ppc64_elf_build_stubs): Check for stub sections in stub bfd by
  1694. testing section flags.
  1695. (ppc64_elf_build_stubs): Likewise.
  1696. (ppc64_elf_size_stubs): Likewise. Remove stub_bfd param.
  1697. (ppc64_elf_finish_dynamic_sections): Write out got sections.
  1698. (func_desc_adjust): Copy over dynamic info for undef weaks.
  1699. * elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare.
  1700. (ppc64_elf_size_stubs): Update prototype.
  1701. * elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn
  1702. input sections rather than scanning dynobj.
  1703. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1704. * elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
  1705. (bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
  1706. (mips_elf_create_msym_section): Delete.
  1707. (mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
  1708. (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  1709. (_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
  1710. (_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
  1711. (_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
  1712. (_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
  1713. (_bfd_mips_elf_finish_dynamic_sections): Likewise.
  1714. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1715. * elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
  1716. symbols protected.
  1717. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1718. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
  1719. of relocations whose offset is -2.
  1720. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1721. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
  1722. forced-local symbols like other locals. Don't create relocations
  1723. against STN_UNDEF in irix objects.
  1724. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1725. * elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
  1726. compatible objects, add the values of defined external symbols
  1727. to the addend.
  1728. 2003-07-09 Richard Sandiford <rsandifo@redhat.com>
  1729. * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
  1730. initialize a GOT entry to the symbol's st_value.
  1731. 2003-07-08 Alan Modra <amodra@bigpond.net.au>
  1732. * elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
  1733. * elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here. New.
  1734. (ppc_elf_tdata): Define.
  1735. (elf_local_ptr_offsets): Adjust.
  1736. (ppc_elf_mkobject): New function.
  1737. (bfd_elf32_mkobject): Define.
  1738. * elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
  1739. * elfcore.h (elf_core_file_p): Likewise.
  1740. * section.c (bfd_section_init): Remove prototype.
  1741. 2003-07-08 Alan Modra <amodra@bigpond.net.au>
  1742. * elf-bfd.h (struct elf_link_hash_entry): Remove linker_section_pointer
  1743. field.
  1744. (enum elf_linker_section_enum): Delete.
  1745. (struct elf_linker_section): Delete.
  1746. (struct elf_linker_section_pointers): Delete.
  1747. (struct elf_obj_tdata): Remove #if 0 chunk. Remove linker_section.
  1748. Make linker_section_pointers a void**.
  1749. (elf_local_ptr_offsets, elf_linker_section): Don't define.
  1750. * elf32-ppc.c (enum elf_linker_section_enum): New, cut-down version
  1751. of old item in elf-bfd.h.
  1752. (struct elf_linker_section): Likewise.
  1753. (struct elf_linker_section_pointers): Likewise.
  1754. (elf_local_ptr_offsets): Define.
  1755. (struct ppc_elf_link_hash_entry): Add linker_section_pointer.
  1756. (ppc_elf_link_hash_newfunc): Init it.
  1757. (struct ppc_elf_link_hash_table): Add sbss.
  1758. (ppc_elf_link_hash_table_create): zmalloc rather than clearing
  1759. individual fields.
  1760. (elf_create_linker_section): Fold into..
  1761. (ppc_elf_create_linker_section): ..here. Remove hole_size code.
  1762. Make rela section here if shared.
  1763. (elf_find_pointer_linker_section): Pass lsect rather than enum.
  1764. (elf_create_pointer_linker_section): Adjust. zalloc rather than
  1765. clearing in a loop.
  1766. (elf_finish_pointer_linker_section): Adjust. Don't make rela
  1767. section here.
  1768. (ppc_elf_check_relocs): Adjust.
  1769. (ppc_elf_add_symbol_hook): Tighten hash creator test. Remove code
  1770. creating .sbss by hand.
  1771. * elf.c (_bfd_elf_link_hash_newfunc): Adjust.
  1772. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  1773. * elf32-s390.c (elf_howto_table): Change R_390_GOT12 to
  1774. complain_overflow_bitfield.
  1775. * elf64-s390.c (elf_howto_table): Change R_390_GOT12 to
  1776. complain_overflow_bitfield.
  1777. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  1778. * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Return
  1779. true even if -pie.
  1780. 2003-07-04 Jakub Jelinek <jakub@redhat.com>
  1781. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
  1782. (elfNN_ia64_dynamic_symbol_p): Change info->shared into
  1783. !info->executable.
  1784. (get_fptr): For -pie create .opd as writable section and create
  1785. .rela.opd as well.
  1786. (elfNN_ia64_check_relocs): Change info->shared into
  1787. !info->executable.
  1788. (allocate_fptr): Likewise.
  1789. (allocate_dynrel_entries): Account for a relative reloc for -pie
  1790. @fptr(). Don't account for a relative reloc if -pie want_ltoff_fptr
  1791. for undefweak symbol. Account for an IPLT reloc in .rela.opd
  1792. section if -pie.
  1793. (set_got_entry): Don't create a relative reloc if -pie
  1794. want_ltoff_fptr for undefweak symbol.
  1795. (set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
  1796. (elfNN_ia64_relocate_section): Emit a relative reloc for -pie
  1797. @fptr().
  1798. * elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
  1799. even if -pie.
  1800. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  1801. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  1802. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  1803. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  1804. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  1805. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  1806. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  1807. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  1808. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1809. 2003-07-04 Paul Clarke <paulc@senet.com.au>
  1810. * elf32-h8300.c (R_H8_DIR32A16): Fix name field.
  1811. (elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
  1812. <R_H8_DIR32A16>: Fix type of relocation.
  1813. 2003-07-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1814. * elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
  1815. sections were created already. Remove unnecessary tests of
  1816. the previous change.
  1817. 2003-07-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  1818. * elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
  1819. bfd_make_section for existing sections.
  1820. 2003-07-04 Alan Modra <amodra@bigpond.net.au>
  1821. * elf32-sparc.c (elf32_sparc_check_relocs): Don't call
  1822. create_got_section if we already have done so.
  1823. * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
  1824. (sh_elf_check_relocs): Likewise.
  1825. (sh_elf_adjust_dynamic_symbol): Delete "dynobj" var. Use
  1826. htab->root.dynobj instead.
  1827. (sh_elf_check_relocs): Likewise.
  1828. (sh_elf_finish_dynamic_sections): Likewise.
  1829. * section.c (bfd_make_section): Return NULL for existing section.
  1830. 2003-07-04 Alan Modra <amodra@bigpond.net.au>
  1831. * elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
  1832. ppc_elf_create_got if we've already done so.
  1833. * elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
  1834. (_bfd_elf_find_pointer_linker_section): Likewise.
  1835. (bfd_elf32_create_pointer_linker_section): Likewise.
  1836. (bfd_elf32_finish_pointer_linker_section): Likewise.
  1837. (bfd_elf64_create_pointer_linker_section): Likewise.
  1838. (bfd_elf64_finish_pointer_linker_section): Likewise.
  1839. (_bfd_elf_make_linker_section_rela): Likewise.
  1840. * elfcode.h (elf_create_pointer_linker_section): Don't define.
  1841. (elf_finish_pointer_linker_section): Likewise.
  1842. * elflink.c (_bfd_elf_make_linker_section_rela): Delete.
  1843. (_bfd_elf_create_linker_section): Move this function..
  1844. (_bfd_elf_find_pointer_linker_section): ..and this..
  1845. * elflink.h (elf_create_pointer_linker_section): ..and this..
  1846. (elf_finish_pointer_linker_section): ..and this..
  1847. * elf32-ppc.c: ..to here, renaming to the following, and adjusting
  1848. calls.
  1849. (elf_create_linker_section): Convert to C90, tidy.
  1850. (elf_find_pointer_linker_section): Likewise.
  1851. (elf_create_pointer_linker_section): Likewise.
  1852. (elf_finish_pointer_linker_section): Likewise.
  1853. * elf32-i370.c: Delete #if 0 code.
  1854. 2003-07-02 Alan Modra <amodra@bigpond.net.au>
  1855. * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
  1856. _restf* to be satisfied by shared libs, and always force them local.
  1857. (toc_adjusting_stub_needed): Avoid scanning linker created sections.
  1858. Correct test for "bl".
  1859. (ppc64_elf_relocate_section <R_PPC64_TLS>): Correct test for
  1860. primary opcode 31.
  1861. 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
  1862. * elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
  1863. (s390_tls_reloc): New function.
  1864. (elf_howto_table): Add long displacement relocations R_390_20,
  1865. R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.
  1866. (elf_s390_reloc_type_lookup): Likewise.
  1867. (elf_s390_check_relocs): Likewise.
  1868. (elf_s390_gc_sweep_hook): Likewise.
  1869. (elf_s390_relocate_section): Likewise.
  1870. * elf64-s390.c: Same changes as for elf32-s390.c.
  1871. * reloc.c: Add long displacement relocations BFD_RELOC_390_20,
  1872. BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20 and
  1873. BFD_RELOC_390_TLS_GOTIE20.
  1874. * bfd-in2.h: Regenerate.
  1875. * libbfd.h: Likewise.
  1876. 2003-06-30 Alan Modra <amodra@bigpond.net.au>
  1877. * cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
  1878. (ins_imms, ins_immsm1u4): Likewise. Warning fix.
  1879. 2003-06-29 Alan Modra <amodra@bigpond.net.au>
  1880. * archive.c: Convert to C90, remove unnecessary prototypes and casts.
  1881. Replace PTR with void *. Formatting.
  1882. * archive64.c: Likewise.
  1883. * archures.c: Likewise.
  1884. * bfd-in.h: Likewise.
  1885. * bfd.c: Likewise.
  1886. * bfdio.c: Likewise.
  1887. * bfdwin.c: Likewise.
  1888. * cache.c: Likewise.
  1889. * corefile.c: Likewise.
  1890. * format.c: Likewise.
  1891. * init.c: Likewise.
  1892. * libbfd-in.h: Likewise.
  1893. * libbfd.c: Likewise.
  1894. * linker.c: Likewise.
  1895. * opncls.c: Likewise.
  1896. * reloc.c: Likewise.
  1897. * section.c: Likewise.
  1898. * simple.c: Likewise.
  1899. * syms.c: Likewise.
  1900. * targets.c: Likewise.
  1901. * bfd-in2.h: Regenerate.
  1902. * libbfd.h: Regenerate.
  1903. * ecoff.c (bfd_debug_section): Add missing kept_section initialization.
  1904. * libbfd-in.h (_bfd_sh_align_load_span): Don't declare if defined.
  1905. * libbfd.c (COERCE32, EIGHT_GAZILLION): Simplify.
  1906. (bfd_getb64): Rewrite without parens.
  1907. (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
  1908. * cache.c (insert, snip): Remove INLINE.
  1909. * linker.c (bfd_link_add_undef): Likewise.
  1910. 2003-06-29 Andreas Jaeger <aj@suse.de>
  1911. * elf64-x86-64.c: Convert to ISO C90 prototypes, remove
  1912. unnecessary prototypes. Replace PTR with void *.
  1913. (elf64_x86_64_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL to
  1914. trim plt entries. Move undefweak non-default visibility test ...
  1915. (allocate_dynrelocs): ... from here.
  1916. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
  1917. Change all callers.
  1918. (allocate_dynrelocs): Use SYMBOL_CALLS_LOCAL. Use
  1919. SYMBOL_REFERENCES_LOCAL for dynreloc check.
  1920. (elf64_x86_64_relocate_section): Use SYMBOL_CALLS_LOCAL for
  1921. dynreloc and .got relocs.
  1922. (elf64_x86_64_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL
  1923. for .got relocs.
  1924. 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1925. * elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.
  1926. 2003-06-27 Nick Clifton <nickc@redhat.com>
  1927. * opncls.c (bfd_add_gnu_debuglink_section): Rename to
  1928. bfd_add_gnu_debuglink_section and only create the section, do not
  1929. fill in its contents.
  1930. (bfd_fill_in_gnu_debuglink_section): New function. Fill in the
  1931. contents of a .gnu-debuglink section.
  1932. * bfd-in2.h: Regenerate.
  1933. 2003-06-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1934. * elfxx-mips.c: Revert .got alignment to 2**4.
  1935. 2003-06-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1936. * elf32-mips.c: Fix addend for _gp_disp special symbol.
  1937. 2003-06-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1938. * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
  1939. relocation header setup.
  1940. 2003-06-25 Alan Modra <amodra@bigpond.net.au>
  1941. * elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
  1942. (ppc_elf_reloc_type_lookup): Modify comment.
  1943. (ppc_elf_info_to_howto): Ditto.
  1944. (ppc_elf_relocate_section): Ditto.
  1945. (ppc_elf_check_relocs): Call ppc_elf_howto_init.
  1946. 2003-06-25 Alan Modra <amodra@bigpond.net.au>
  1947. * aout-ns32k.c: Correct spelling of "relocatable".
  1948. * aoutx.h: Likewise.
  1949. * bfd-in.h: Likewise.
  1950. * bfd.c: Likewise.
  1951. * bout.c: Likewise.
  1952. * coff-a29k.c: Likewise.
  1953. * coff-alpha.c: Likewise.
  1954. * coff-arm.c: Likewise.
  1955. * coff-i386.c: Likewise.
  1956. * coff-i860.c: Likewise.
  1957. * coff-i960.c: Likewise.
  1958. * coff-m68k.c: Likewise.
  1959. * coff-m88k.c: Likewise.
  1960. * coff-mcore.c: Likewise.
  1961. * coff-mips.c: Likewise.
  1962. * coff-or32.c: Likewise.
  1963. * coff-ppc.c: Likewise.
  1964. * coff-rs6000.c: Likewise.
  1965. * coff-sh.c: Likewise.
  1966. * coff-tic80.c: Likewise.
  1967. * coff64-rs6000.c: Likewise.
  1968. * cofflink.c: Likewise.
  1969. * cpu-ns32k.c: Likewise.
  1970. * ecoff.c: Likewise.
  1971. * ecofflink.c: Likewise.
  1972. * elf-bfd.h: Likewise.
  1973. * elf-eh-frame.c: Likewise.
  1974. * elf-hppa.h: Likewise.
  1975. * elf-m10200.c: Likewise.
  1976. * elf-m10300.c: Likewise.
  1977. * elf.c: Likewise.
  1978. * elf32-arm.h: Likewise.
  1979. * elf32-avr.c: Likewise.
  1980. * elf32-cris.c: Likewise.
  1981. * elf32-d10v.c: Likewise.
  1982. * elf32-dlx.c: Likewise.
  1983. * elf32-fr30.c: Likewise.
  1984. * elf32-frv.c: Likewise.
  1985. * elf32-h8300.c: Likewise.
  1986. * elf32-hppa.c: Likewise.
  1987. * elf32-i370.c: Likewise.
  1988. * elf32-i386.c: Likewise.
  1989. * elf32-i860.c: Likewise.
  1990. * elf32-i960.c: Likewise.
  1991. * elf32-ip2k.c: Likewise.
  1992. * elf32-iq2000.c: Likewise.
  1993. * elf32-m32r.c: Likewise.
  1994. * elf32-m68hc11.c: Likewise.
  1995. * elf32-m68hc1x.c: Likewise.
  1996. * elf32-m68k.c: Likewise.
  1997. * elf32-mcore.c: Likewise.
  1998. * elf32-mips.c: Likewise.
  1999. * elf32-msp430.c: Likewise.
  2000. * elf32-openrisc.c: Likewise.
  2001. * elf32-ppc.c: Likewise.
  2002. * elf32-s390.c: Likewise.
  2003. * elf32-sh.c: Likewise.
  2004. * elf32-sh64.c: Likewise.
  2005. * elf32-sparc.c: Likewise.
  2006. * elf32-v850.c: Likewise.
  2007. * elf32-vax.c: Likewise.
  2008. * elf32-xstormy16.c: Likewise.
  2009. * elf32-xtensa.c: Likewise.
  2010. * elf64-alpha.c: Likewise.
  2011. * elf64-hppa.c: Likewise.
  2012. * elf64-mips.c: Likewise.
  2013. * elf64-mmix.c: Likewise.
  2014. * elf64-ppc.c: Likewise.
  2015. * elf64-s390.c: Likewise.
  2016. * elf64-sh64.c: Likewise.
  2017. * elf64-sparc.c: Likewise.
  2018. * elf64-x86-64.c: Likewise.
  2019. * elfcode.h: Likewise.
  2020. * elflink.h: Likewise.
  2021. * elfn32-mips.c: Likewise.
  2022. * elfxx-ia64.c: Likewise.
  2023. * elfxx-mips.c: Likewise.
  2024. * i386linux.c: Likewise.
  2025. * ieee.c: Likewise.
  2026. * libcoff-in.h: Likewise.
  2027. * linker.c: Likewise.
  2028. * m68klinux.c: Likewise.
  2029. * pdp11.c: Likewise.
  2030. * pe-mips.c: Likewise.
  2031. * peXXigen.c: Likewise.
  2032. * reloc.c: Likewise.
  2033. * reloc16.c: Likewise.
  2034. * sparclinux.c: Likewise.
  2035. * sunos.c: Likewise.
  2036. * syms.c: Likewise.
  2037. * versados.c: Likewise.
  2038. * vms.c: Likewise.
  2039. * xcofflink.c: Likewise.
  2040. * bfd-in2.h: Regenerate.
  2041. * libcoff.h: Regenerate.
  2042. * libbfd.h: Regenerate.
  2043. 2003-06-24 Alan Modra <amodra@bigpond.net.au>
  2044. * elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
  2045. local sym errors.
  2046. * elf32-i386.c: Convert to C90 function definitions, remove unnecessary
  2047. prototypes and casts. Replace PTR with void *. Formatting.
  2048. * elf32-ppc.c: Likewise. Break long strings too.
  2049. (ppc_elf_relax_section): Use enum elf_ppc_reloc_type for r_type.
  2050. (ppc_elf_unhandled_reloc): Internationalize error message.
  2051. * elf32-ppc.h: Remove PARAMS.
  2052. 2003-06-23 Mark Mitchell <mark@codesourcery.com>
  2053. * elf32-ppc.c (ppc_elf_begin_write_processing): Use bytes to count
  2054. APUinfo slots.
  2055. (ppc_elf_final_write_processing): Likewise.
  2056. 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
  2057. * elflink.h (elf_link_input_bfd): Check raw size when using
  2058. kept_section to preserve debug information discarded by
  2059. linkonce.
  2060. 2003-06-20 Alan Modra <amodra@bigpond.net.au>
  2061. * elf64-ppc.c (struct ppc_link_hash_table): Add top_id.
  2062. (ppc64_elf_setup_section_lists): Set it.
  2063. (ppc64_elf_relocate_section): Check sym section id against top_id.
  2064. (ppc_build_one_stub): Comment on top_id.
  2065. 2003-06-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
  2066. * config.bfd: Add tic4x-*-rtems*.
  2067. 2003-06-20 Alan Modra <amodra@bigpond.net.au>
  2068. * elf64-ppc.c: Convert to C90 function definitions, remove unnecessary
  2069. prototypes and casts. Replace PTR with void *. Format copyright.
  2070. Mention ABI links.
  2071. (struct ppc_link_hash_table): Rename sgot, srelgot, splt, srelplt,
  2072. sdynbss, srelbss, sglink, sbrlt and srelbrlt to got, relgot .. relbrlt.
  2073. (ppc_type_of_stub): Make r_type an enum.
  2074. (ppc64_elf_size_stubs): Likewise.
  2075. * elf64-ppc.h: Remove PARAMS macro.
  2076. 2003-06-19 Alan Modra <amodra@bigpond.net.au>
  2077. * elf64-ppc.c (ppc64_elf_link_hash_table_create): Reinstate init of
  2078. elf hash tab fields.
  2079. * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Tidy prototype.
  2080. (ppc64_elf_info_to_howto): Likewise.
  2081. (ppc64_elf_build_stubs): Add "stats" param, and print statistics.
  2082. * elf64-ppc.h (ppc64_elf_build_stubs): Adjust prototype.
  2083. 2003-06-19 Alan Modra <amodra@bigpond.net.au>
  2084. * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
  2085. reloc overflow on discarded eh_frame entries.
  2086. 2003-06-19 Alan Modra <amodra@bigpond.net.au>
  2087. * elf64-ppc.c (toc_adjusting_stub_needed): New function.
  2088. (ppc64_elf_next_input_section): Use it here to set has_gp_reloc.
  2089. Return error condition.
  2090. (ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections
  2091. that have has_gp_reloc set.
  2092. (struct ppc_link_hash_table): Add stub_count.
  2093. (ppc_build_one_stub): Increment it.
  2094. (ppc64_elf_link_hash_table_create): zmalloc rather than clearing
  2095. individual fields.
  2096. * elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.
  2097. 2003-06-18 Alan Modra <amodra@bigpond.net.au>
  2098. * elflink.h (elf_gc_record_vtentry): Revert last change. Correct
  2099. size calculation from addend. Round size up.
  2100. 2003-06-18 Hans-Peter Nilsson <hp@axis.com>
  2101. * elf32-cris.c (cris_elf_relocate_section) <case
  2102. R_CRIS_32_GOTREL>: When linking a program, don't complain about a
  2103. symbol from a normal object or an undefined weak symbol.
  2104. 2003-06-18 Alan Modra <amodra@bigpond.net.au>
  2105. * elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol on
  2106. R_PPC64_TOC relocs.
  2107. 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
  2108. * section.c (struct sec): Put back kept_section.
  2109. (STD_SECTION): Put back kept_section initialization.
  2110. * bfd-in2.h: Regenerate.
  2111. * elflink.h (elf_link_input_bfd): Also check discarded linkonce
  2112. sections for relocateable output. Use kept_section to preserve
  2113. debug information discarded by linkonce.
  2114. 2003-06-17 Roland McGrath <roland@redhat.com>
  2115. * elfxx-ia64.c (elfNN_ia64_relocate_section): Support
  2116. segment-relative relocation between different segments.
  2117. 2003-06-17 Alan Modra <amodra@bigpond.net.au>
  2118. * elf64-ppc.c (ppc64_elf_relocate_section): Do unaligned reloc
  2119. optimizations earlier.
  2120. * elf64-ppc.c (struct ppc_link_hash_table): Reinstate top_index.
  2121. Restore previous input_list type.
  2122. (ppc64_elf_link_hash_table_create): Undo last change.
  2123. (ppc64_elf_setup_section_lists): Reinstate code setting up input lists
  2124. per output section, but don't bother with bfd_abs_section marker.
  2125. (ppc64_elf_next_input_section): Adjust for multiple input section
  2126. lists.
  2127. (group_sections): Likewise.
  2128. 2003-06-17 Jakub Jelinek <jakub@redhat.com>
  2129. * elf64-ppc.c (ppc64_elf_relocation_section): Ensure
  2130. *r_offset == r_addend for RELATIVE relocs against .got.
  2131. 2003-06-17 Alan Modra <amodra@bigpond.net.au>
  2132. * elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
  2133. 2003-06-17 Nick Clifton <nickc@redhat.com>
  2134. * elflink.h (elf_gc_record_vtentry): Allocate an extra element
  2135. in the vtable_entries_used array to allow for the accessing
  2136. the largest element.
  2137. 2003-06-17 Alan Modra <amodra@bigpond.net.au>
  2138. * elf64-ppc.c (struct ppc_link_hash_table): Remove top_index. Modify
  2139. input_list.
  2140. (ppc64_elf_link_hash_table_create): Init input_list here.
  2141. (ppc64_elf_setup_section_lists): Remove code setting up input lists
  2142. per output section. Set toc_off for abs and other standard sections.
  2143. (ppc64_elf_reinit_toc): Don't set elf_gp on input bfds lacking a toc.
  2144. (ppc64_elf_next_input_section): Adjust for single input section list.
  2145. Don't set toc_curr from input bfds that haven't set elf_gp.
  2146. (group_sections): Adjust for single input section list.
  2147. * elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
  2148. 2003-06-16 Alan Modra <amodra@bigpond.net.au>
  2149. * elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
  2150. tls, check that a TOC16_DS or TOC16_LO_DS reloc isn't pointing to a
  2151. dtprel entry. Ensure TLS_LD DTPMOD reloc has a zero addend. Write
  2152. got section for RELATIVE relocs. Fix wrong comment. Change condition
  2153. under which dynamic relocs update the section contents.
  2154. 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
  2155. * config.bfd: Add i386-netbsd-gnu target.
  2156. 2003-06-12 Nick Clifton <nickc@redhat.com>
  2157. * opncls.c (calc_crc32): Rename to
  2158. bfd_calc_gnu_debuglink_crc32 and export.
  2159. (GNU_DEBUGLINK): Define and use to replace occurrences of
  2160. hard-coded ".gnu_debuglink" in the code.
  2161. (get_debug_link_info): Prevent aborts by replacing call to
  2162. xmalloc with a call to malloc.
  2163. (find_separate_debug_file): Prevent aborts by replacing calls
  2164. to xmalloc and xstrdup with calls to malloc and strdup.
  2165. (bfd_add_gnu_debuglink): New function. Add a .gnu_debuglink
  2166. section to a bfd.
  2167. * bfd-in2.h: Regenerate.
  2168. 2003-06-12 Federico G. Schwindt <fgsch@lodoss.net>
  2169. * config.bfd (i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]):
  2170. New target (was i[3-7]86-*-openbsd* before).
  2171. (i[3-7]86-*-openbsd*): Change to use bfd_elf32_i386_vec.
  2172. (vax-*-openbsd*): New target.
  2173. 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2174. * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.options
  2175. for n32, too.
  2176. (MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too.
  2177. (mips_elf_rel_dyn_section): Use appropriate section alignment.
  2178. (mips_elf_create_got_section): Likewise.
  2179. (_bfd_mips_elf_create_dynamic_sections): Likewise.
  2180. 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2181. * elf32-mips.c (mips_elf_generic_reloc): New Function.
  2182. (elf_mips_howto_table_rel): Use it.
  2183. (gprel32_with_gp): Move prototype.
  2184. (mips_elf_hi16_reloc): Check for ! BSF_LOCAL instead of zero addend.
  2185. Use mips_elf_generic_reloc.
  2186. (mips_elf_got16_reloc): Check for ! BSF_LOCAL instead of zero addend.
  2187. Code cleanup.
  2188. (_bfd_mips_elf32_gprel16_reloc): Check for ! BSF_LOCAL instead of
  2189. zero addend.
  2190. (mips_elf_gprel32_reloc): Likewise. Use the same GP assignment logic
  2191. as in the other *_gprel*_reloc functions.
  2192. (gprel32_with_gp): Handle partial_inplace properly.
  2193. (mips32_64bit_reloc): Use mips_elf_generic_reloc.
  2194. (mips16_gprel_reloc): Check for ! BSF_LOCAL instead of zero addend.
  2195. Do addend handling directly instead of calling
  2196. _bfd_mips_elf_gprel16_with_gp. Handle partial_inplace properly.
  2197. * elf64-mips.c (mips_elf64_hi16_reloc): Check for ! BSF_LOCAL instead
  2198. of zero addend. Handle partial_inplace properly.
  2199. (mips_elf64_got16_reloc): Check for ! BSF_LOCAL instead of zero
  2200. addend.
  2201. (mips_elf64_gprel16_reloc): Likewise.
  2202. (mips_elf64_literal_reloc): Likewise.
  2203. (mips_elf64_gprel32_reloc): Likewise. Use the same GP assignment
  2204. logic as in the other *_gprel*_reloc functions. Handle
  2205. partial_inplace properly.
  2206. (mips_elf64_shift6_reloc): Check for ! BSF_LOCAL instead of zero
  2207. addend. Handle partial_inplace properly.
  2208. (mips16_gprel_reloc): Likewise. Do addend handling directly instead
  2209. of calling _bfd_mips_elf_gprel16_with_gp.
  2210. * elfn32-mips.c (mips_elf_got16_reloc): Check for BSF_LOCAL.
  2211. (mips_elf_gprel32_reloc): Check for ! BSF_LOCAL instead
  2212. of zero addend.
  2213. (mips_elf_shift6_reloc): Handle partial_inplace properly.
  2214. (mips16_gprel_reloc): Likewise. Do addend handling directly instead
  2215. of calling _bfd_mips_elf_gprel16_with_gp.
  2216. * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Handle
  2217. partial_inplace properly. Fix wrong addend handling. Fix overflow
  2218. check.
  2219. (_bfd_mips_elf_sign_extend): Renamed from mips_elf_sign_extend and
  2220. exported.
  2221. (mips_elf_calculate_relocation): Use _bfd_mips_elf_sign_extend.
  2222. (_bfd_mips_elf_relocate_section): Likewise.
  2223. (mips_elf_create_dynamic_relocation): Update sec_info_type access.
  2224. * elfxx-mips.h (_bfd_mips_relax_section): Fix prototype declaration.
  2225. (_bfd_mips_elf_sign_extend): New prototype.
  2226. 2003-06-11 Federico G. Schwindt <fgsch@lodoss.net>
  2227. * config.bfd (sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1]):
  2228. New target (was sparc-*-openbsd* before).
  2229. (sparc-*-openbsd*): Change to use bfd_elf32_sparc_vec.
  2230. * configure.in (vax-*-openbsd*): Set COREFILE to netbsd-core.lo.
  2231. * configure: Regenerate.
  2232. 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
  2233. * po/Make-in (DESTDIR): New.
  2234. (install-data-yes): Support $(DESTDIR).
  2235. (uninstall): Likewise.
  2236. 2003-06-11 Alan Modra <amodra@bigpond.net.au>
  2237. * Makefile.am (config.status): Depend on version.h.
  2238. Run "make dep-am".
  2239. * Makefile.in: Regenerate.
  2240. * po/SRC-POTFILES.in: Regenerate.
  2241. 2003-06-10 Alan Modra <amodra@bigpond.net.au>
  2242. Gary Hade <garyhade@us.ibm.com>
  2243. * elf64-ppc.c (ppc64_elf_relocate_section <*_DS>): Special case lq.
  2244. 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
  2245. * archures.c (bfd_mach_h8300sxn): New architecture.
  2246. * bfd-in2.h: Regenerate.
  2247. * cpu-h8300.c (h8300_scan): Check for 'sxn'.
  2248. (h8300sxn_info_struct): New.
  2249. (h8300sx_info_struct): Link to it.
  2250. * elf32-h8300.c (elf32_h8_mach): Add h8300sxn case.
  2251. (elf32_h8_final_write_processing): Likewise.
  2252. 2003-06-08 Alan Modra <amodra@bigpond.net.au>
  2253. * elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used by
  2254. elfxx-target.h so that we can use elf_backend_got_header_size.
  2255. (ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Delete.
  2256. (GLINK_CALL_STUB_SIZE): Modify. Define new glink call stub and
  2257. associated macros.
  2258. (ppc64_elf_howto_raw <GOT_TPREL16_DS, GOT_TPREL16_LO_DS>): Correct
  2259. dst_mask.
  2260. (enum ppc_stub_type): Add ppc_stub_long_branch_r2off and
  2261. ppc_stub_plt_branch_r2off.
  2262. (struct ppc_stub_hash_entry): Reorganize.
  2263. (struct ppc_link_hash_table): Add no_multi_toc, multi_toc_needed,
  2264. toc_curr, toc_off and emit_stub_syms.
  2265. (ppc64_elf_link_hash_table_create): Init them.
  2266. (ppc_stub_name): Correct string size.
  2267. (ppc64_elf_check_relocs): Set has_gp_reloc on GOT and TOC relocs.
  2268. (ppc64_elf_size_dynamic_sections): Set no_multi_toc if GOT entries
  2269. used.
  2270. (ppc_type_of_stub): Tweak root.type test.
  2271. (build_plt_stub): Remove glink code. Adjust for insn macro changes.
  2272. (ppc_size_one_stub): Handle ppc_stub_long_branch_r2off and
  2273. ppc_stub_plt_branch_r2off.
  2274. (ppc_build_one_stub): Likewise. Fix var shadowing. Correct addis,addi
  2275. range test. Use toc_off to calculte r2 values. Handle emit_stub_syms.
  2276. (ppc64_elf_setup_section_lists): Remove htab creator flavour test.
  2277. Initialize elf_gp and toc_curr.
  2278. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): New functions.
  2279. (ppc64_elf_next_input_section): Set toc_off.
  2280. (group_sections): Ensure groups have the same TOC.
  2281. (ppc64_elf_size_stubs): Check whether we need a TOC adjusting stub.
  2282. (ppc64_elf_build_stubs): Add emit_stub_syms param, and stash in htab.
  2283. Build new glink stub.
  2284. (ppc64_elf_relocate_section): Handle multiple TOCs. Fix comments.
  2285. (ppc64_elf_finish_dynamic_sections): Adjust DT_PPC64_GLINK.
  2286. * elf64-ppc.h (ppc64_elf_build_stubs): Update prototype.
  2287. (ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): Declare.
  2288. * section.c (struct sec): Rename flag12 to has_gp_reloc.
  2289. (STD_SECTION): Update.
  2290. * ecoff.c (bfd_debug_section): Update comment.
  2291. * bfd-in2.h: Regenerate.
  2292. 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
  2293. * elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
  2294. NULL function pointers.
  2295. 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
  2296. * simple.c (bfd_simple_get_relocated_section_contents): Call
  2297. _bfd_generic_link_add_symbols instead of bfd_link_add_symbols.
  2298. 2003-06-04 Svein E. Seldal <Svein.Seldal@solidas.com>
  2299. * coff-tic54x.c: Removed the ticoff0_bad_format_hook() and
  2300. ticoff1_bad_format_hook() functions. Removed the coff0 and coff1
  2301. swaptables.
  2302. * coff-tic4x.c: Ditto
  2303. * coffcode.h: Added extra arguments to CREATE_BIG_COFF_TARGET_VEC
  2304. and CREATE_LITTLE_COFF_TARGET_VEC. Created the macro
  2305. CREATE_BIGHDR_COFF_TARGET_VEC. Created the ticoff0_bad_format_hook(),
  2306. ticoff1_bad_format_hook() functions. Created the coff0 and coff1
  2307. swap tables.
  2308. * coff-tic4x.c: Adopted new CREATE_xxx_COFF_TARGET_VEC macros.
  2309. * coff-a29k.c: Append COFF_SWAP_TABLE argument
  2310. * coff-apollo.c: Ditto
  2311. * coff-arm.c: Ditto
  2312. * coff-h8300.c: Ditto
  2313. * coff-h8500.c: Ditto
  2314. * coff-i960.c: Ditto
  2315. * coff-m68k.c: Ditto
  2316. * coff-m88k.c: Ditto
  2317. * coff-mcore.c: Ditto
  2318. * coff-sh.c: Ditto
  2319. * coff-sparc.c: Ditto
  2320. * coff-tic80.c: Ditto
  2321. * coff-we32k.c: Ditto
  2322. * coff-z8k.c: Ditto
  2323. * coff-w65.c: Ditto
  2324. 2003-06-04 Svein E. Seldal <Svein.Seldal@solidas.com>
  2325. * coff-tic4x.c (ticoff0_swap_table, ticoff1_swap_table): Fixed
  2326. initialization bug
  2327. 2003-06-03 Jakub Jelinek <jakub@redhat.com>
  2328. * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
  2329. (bfd_section_from_phdr): Likewise.
  2330. (map_sections_to_segments): Create PT_GNU_STACK segment header.
  2331. (get_program_header_size): Count with PT_GNU_STACK.
  2332. * elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
  2333. * elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
  2334. 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
  2335. * elflink.h (elf_link_input_bfd): Call linker error_handler
  2336. for discarded definitions.
  2337. 2003-06-03 Elias Athanasopoulos <elathan@phys.uoa.gr>
  2338. * syms.c (decode_section_type): Return 'n' if section flags are
  2339. SEC_HAS_CONTENTS && SEC_READONLY.
  2340. 2003-06-03 Nick Clifton <nickc@redhat.com>
  2341. * elf32-v850.c (v850_elf_howto_t): Rename R_V850_32to
  2342. R_V850_ABS32. Add entry for R_V850_REL32.
  2343. (v850_elf_reloc_map): Likewise.
  2344. (v850_elf_check_relocs): Likewise.
  2345. (v850_elf_perform_relocation): Likewise.
  2346. (v850_elf_final_link_relocate): Likewise. Include computation
  2347. to make R_V850_REl32 pc-relative.
  2348. 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2349. * elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp section
  2350. and DT_DEBUG dynamic tag even for position independent executables.
  2351. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewize.
  2352. 2003-06-02 Daniel Jacobowitz <drow@mvista.com>
  2353. * config.bfd: Move obsolete entries out of the range of the
  2354. targmatch sed script.
  2355. 2003-06-02 Daniel Jacobowitz <drow@mvista.com>
  2356. * config.bfd (mips*-dec-bsd*, mips*-*-pe*): Mark as obsolete.
  2357. 2003-05-31 Jakub Jelinek <jakub@redhat.com>
  2358. * elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192
  2359. plt entries, not just 8191.
  2360. 2003-05-30 Daniel Jacobowitz <drow@mvista.com>
  2361. * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
  2362. Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.
  2363. 2003-05-30 Ulrich Drepper <drepper@redhat.com>
  2364. Jakub Jelinek <jakub@redhat.com>
  2365. * elflink.h (elf_link_add_object_symbols): Use !info->executable
  2366. instead of info->shared where appropriate.
  2367. (bfd_elfNN_size_dynamic_sections, elf_link_output_extsym): Likewise.
  2368. * elflink.c (_bfd_elf_create_got_section): Likewise.
  2369. (_bfd_elf_link_create_dynamic_sections): Likewise.
  2370. (_bfd_elf_link_assign_sym_version): Likewise.
  2371. * elf32-i386.c (elf_i386_size_dynamic_sections): Create .interp section
  2372. and DT_DEBUG dynamic tag even for position independent executables.
  2373. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
  2374. * elf32-s390.c (elf_s390_size_dynamic_sections: Likewise.
  2375. * elf64-ppc.c (ppc64_elf_size_dynamic_sections: Likewise.
  2376. * elf64-s390.c (elf_s390_size_dynamic_sections: Likewise.
  2377. * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections: Likewise.
  2378. * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections: Likewise.
  2379. * elf32-sparc.c (elf32_sparc_size_dynamic_sections: Likewise.
  2380. * elf64-alpha.c (elf64_alpha_size_dynamic_sections: Likewise.
  2381. * elf64-sparc.c (sparc64_elf_size_dynamic_sections: Likewise.
  2382. 2003-05-30 Kris Warkentin <kewarken@qnx.com>
  2383. * elf.c (elfcore_grok_nto_status): Only set lwpid for the active or
  2384. signalled thread.
  2385. (elfcore_grok_nto_gregs): Only make .reg section for the active thread.
  2386. 2003-05-29 Nick Clifton <nickc@redhat.com>
  2387. * pef.c: Include "safe-ctype.h" instead of <ctype.h>.
  2388. Tidy up formatting.
  2389. * Makefile.am: Add dependency on safe-ctype.h.
  2390. * Makefile.in: Regenerate.
  2391. 2003-05-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2392. * elfxx-mips.c: Don't force symbols local unconditionally.
  2393. 2003-05-28 Alan Modra <amodra@bigpond.net.au>
  2394. * elf32-hppa.c (elf32_hppa_relocate_section): Delete bogus
  2395. undefined_symbol call.
  2396. 2003-05-27 Richard Sandiford <rsandifo@redhat.com>
  2397. * elfxx-mips.c (mips_elf_hash_sort_data): Fix formattting.
  2398. (mips_elf_link_hash_table): Likewise.
  2399. 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2400. * elf64-mips.c (elf_mips_gnu_rel16_s2): Add internally used
  2401. R_MIPS_GNU_REL16_S2 support.
  2402. (bfd_elf64_bfd_reloc_type_lookup): Use it.
  2403. (mips_elf64_rtype_to_howto): Use it.
  2404. * elfn32-mips.c (elf_mips_gnu_rel16_s2): Add internally used
  2405. R_MIPS_GNU_REL16_S2 support.
  2406. (bfd_elf32_bfd_reloc_type_lookup): Use it.
  2407. (mips_elf_n32_rtype_to_howto): Use it.
  2408. 2003-05-21 Stuart F. Downing <sdowning@fame.com>
  2409. * som.h: Define PA_2_0 before including a.out.h
  2410. 2003-05-07 Eric Christopher <echristo@redhat.com>
  2411. Alexandre Oliva <aoliva@redhat.com>
  2412. * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Adjust
  2413. pic tests, change to warning.
  2414. (_bfd_mips_elf_final_link): Remove EF_MIPS_CPIC flag setting.
  2415. 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
  2416. * config.bfd: Check for a target triplet of shl-...-netbsdelf as
  2417. well as shle-...-netbsdelf. Remove duplicate entry.
  2418. 2003-05-21 Nick Clifton <nickc@redhat.com>
  2419. * elf32-xstormy16.c (xstormy16_elf_howto_table): Fix dst_mask
  2420. for X_STORMY16_REL_12 reloc.
  2421. * elf.c (bfd_elf_get_needed_list): Use is_elf_hash_table to check
  2422. the type of the hash table in the bfd_link_info structure.
  2423. (bfd_elf_get_runpath_list): Likewise.
  2424. 2003-05-19 Roland McGrath <roland@redhat.com>
  2425. * elf.c (bfd_elf_bfd_from_remote_memory): New function.
  2426. * bfd-in.h: Declare it.
  2427. * bfd-in2.h: Regenerated.
  2428. * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): New function.
  2429. * elf-bfd.h (struct elf_backend_data): New function pointer member
  2430. elf_backend_bfd_from_remote_memory.
  2431. (_bfd_elf32_bfd_from_remote_memory, _bfd_elf64_bfd_from_remote_memory):
  2432. Declare them.
  2433. * elfxx-target.h (elf_backend_bfd_from_remote_memory): New macro.
  2434. (elfNN_bed): Add that to the initializer.
  2435. 2003-05-15 Roland McGrath <roland@redhat.com>
  2436. * elf.c (elfcore_grok_note): Grok NT_AUXV note, make ".auxv" section.
  2437. 2003-05-20 Jakub Jelinek <jakub@redhat.com>
  2438. * elflink.h (elf_link_output_extsym): Only issue error about !=
  2439. STV_DEFAULT symbols if they are bfd_link_hash_undefined.
  2440. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com>
  2441. * elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF
  2442. when removing the old definition for symbols with non-default
  2443. visibility.
  2444. 2003-05-18 Jason Eckhardt <jle@rice.edu>
  2445. * elf32-i860.c (elf32_i860_relocate_highadj): Simplify calculation.
  2446. 2003-05-17 Andreas Schwab <schwab@suse.de>
  2447. * elf32-m68k.c (elf_m68k_check_relocs): Cache reloc section in
  2448. elf_section_data during processing of pc-relative and absolute
  2449. relocations.
  2450. (elf_m68k_relocate_section): Use the cached reloc section instead
  2451. of computing it again. Fix handling of visibility. Don't modify
  2452. addend when copying over a relocation into the output.
  2453. 2003-05-17 Alan Modra <amodra@bigpond.net.au>
  2454. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL
  2455. to trim plt entries. Move undefweak non-default visibility test..
  2456. (allocate_dynrelocs): ..from here.
  2457. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't test
  2458. dynamic_sections_created here. Update comment. Move undefweak
  2459. non-default visibility test..
  2460. (allocate_dynrelocs): ..from here. Fix comment.
  2461. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL
  2462. to trim plt entries. Move undefweak non-default visibility test..
  2463. (allocate_dynrelocs): ..from here. Fix comment.
  2464. * elflink.h (elf_link_output_extsym): Compare ELF_ST_VISIBILITY with
  2465. STV_DEFAULT rather than comparing with zero.
  2466. * elflink.c (_bfd_elf_merge_symbol): Likewise.
  2467. (_bfd_elf_fix_symbol_flags): Likewise. Format comment.
  2468. 2003-05-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2469. * bfd.c (_bfd_get_gp_value): Prevent illegal access for abfd null
  2470. pointers.
  2471. (_bfd_set_gp_value): Likewise.
  2472. 2003-05-16 Michael Snyder <msnyder@redhat.com>
  2473. From Bernd Schmidt <bernds@redhat.com>
  2474. * archures.c (bfd_mach_h8300sx): New.
  2475. * bfd-in2.h: Regenerate.
  2476. * cpu-h8300.c (h8300_scan)): Add support for h8300sx.
  2477. (h8300sx_info_struct): New.
  2478. (h8300s_info_struct): Link to it.
  2479. * elf32-h8300.c (elf32_h8_mach): Add support for h8300sx.
  2480. (elf32_h8_final_write_processing): Likewise.
  2481. (elf32_h8_relax_section): Likewise.
  2482. 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
  2483. * config.bfd: Accept i[3-7]86 variants.
  2484. * configure.host: Likewise.
  2485. * configure.in: Likewise.
  2486. * configure: Regenerate.
  2487. 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
  2488. * elflink.c (_bfd_elf_fix_symbol_flags): Also hide protected
  2489. symbol.
  2490. 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
  2491. * elflink.h (elf_link_check_versioned_symbol): Also allow
  2492. the base version.
  2493. 2003-05-15 Alan Modra <amodra@bigpond.net.au>
  2494. H.J. Lu <hongjiu.lu@intel.com>
  2495. * elf32-i386.c (allocate_dynrelocs): Use SYMBOL_CALLS_LOCAL.
  2496. (elf_i386_relocate_section): Likewise.
  2497. * elf32-ppc.c (allocate_dynrelocs): Likewise.
  2498. (ppc_elf_relocate_section): Likewise.
  2499. * elf64-ppc.c (allocate_dynrelocs): Likewise.
  2500. (ppc64_elf_relocate_section): Likewise.
  2501. 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2502. * elf32-mips.c (gprel32_with_gp): Remove useless N64 ABI case.
  2503. 2003-05-13 Stephane Carrez <stcarrez@nerim.fr>
  2504. * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Check for
  2505. processor capability, allow merge of HC12 and HCS12 in some cases.
  2506. (m68hc11_elf_hash_table_create): Use bfd_malloc instead of bfd_zalloc.
  2507. * cpu-m68hc12.c (bfd_m68hc12s_arch): New struct.
  2508. (bfd_m68hc12_arch): Link it.
  2509. (scan_mach): New function.
  2510. 2003-05-13 Andrew Haley <aph@redhat.com>
  2511. * elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
  2512. 2003-05-13 Alan Modra <amodra@bigpond.net.au>
  2513. H.J. Lu <hongjiu.lu@intel.com>
  2514. * elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Move from
  2515. elf32-ppc.c. Add ELF_LINK_FORCED_LOCAL check.
  2516. * elf32-ppc.c: (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Delete.
  2517. (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL for dynreloc check.
  2518. (ppc_elf_relocate_section): Likewise.
  2519. * elf64-ppc.c (allocate_dynrelocs): Likewise.
  2520. (ppc64_elf_relocate_section): Likewise. Use for .got relocs too.
  2521. (ppc64_elf_adjust_dynamic_symbol): Don't assume symbols with .plt
  2522. relocs need no other types.
  2523. * elf32-i386.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL for
  2524. dynreloc check.
  2525. (elf_i386_relocate_section): Likewise. Use for .got relocs too.
  2526. (elf_i386_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL for
  2527. .got relocs.
  2528. 2003-05-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2529. * elf32-sh.c (sh_elf_adjust_dynamic_symbol): For weak symbols,
  2530. copy ELF_LINK_NON_GOT_REF from weakdef.
  2531. (allocate_dynrelocs): For undef weak syms with non-default
  2532. visibility, a) don't allocate plt entries, b) don't allocate
  2533. .got relocs, c) discard dyn rel space
  2534. (sh_elf_relocate_section): d) don't generate .got relocs, e)
  2535. don't generate dynamic relocs.
  2536. (sh_elf_copy_indirect_symbol): Don't copy ELF_LINK_NON_GOT_REF
  2537. for weakdefs when symbol already adjusted.
  2538. 2003-05-12 Nick Clifton <nickc@redhat.com>
  2539. * elf32-xstormy16.c (xstormy16_elf_howto_table): use 'bitfield'
  2540. overflow detection for R_XSTORMY16_16 reloc.
  2541. 2003-05-12 Paul Clarke <paulc@senet.com.au>
  2542. * elf32-h8300.c: Fix typo in name of R_H8_DIR8 reloc.
  2543. 2003-05-11 Jason Eckhardt <jle@rice.edu>
  2544. * elf32-i860.c (elf32_i860_relocate_highadj): Properly
  2545. adjust upper bits.
  2546. (elf32_i860_relocate_splitn): Obtain upper 5 bits from the
  2547. proper place.
  2548. (elf32_i860_relocate_pc16): Obtain upper 5 bits from the
  2549. proper place.
  2550. 2003-05-11 Andreas Schwab <schwab@suse.de>
  2551. * elf32-m68k.c (elf_m68k_relocate_section): Replace ugly
  2552. complicated tests for unresolvable relocs with a simple direct
  2553. scheme using "unresolved_reloc" var. Report some detail on
  2554. bfd_reloc_outofrange and similar errors.
  2555. 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2556. * elf32-s390.c (allocate_dynrelocs, elf_s390_relocate_section):
  2557. Fix WILL_CALL_FINISH_DYNAMIC_SYMBOL call.
  2558. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
  2559. * elf64-s390.c: Likewise.
  2560. 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2561. * elf32-s390.c (ELIMINATE_COPY_RELOCS): Define as one.
  2562. (elf_s390_adjust_dynamic_symbol): For weak symbols, copy
  2563. ELF_LINK_NON_GOT_REF from weakdef.
  2564. (elf_s390_copy_indirect_symbol): Test whether the weakdef sym has
  2565. already been adjusted before treating it specially.
  2566. * el64-s390.c: Likwise.
  2567. 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
  2568. * elf32-s390.c (allocate_dynrelocs): For undef weak syms with
  2569. non-default visibility, a) don't make them dynamic, b) discard
  2570. space for dynamic relocs.
  2571. (elf_s390_relocate_section): Initialize the GOT entries and skip
  2572. R_390_{8,16,32}/R_390_PC{16,16DBL,32DBL,32} for weak undefined
  2573. symbols with non-default visibility.
  2574. * elf64-s390.c: Likewise.
  2575. 2003-05-09 Alan Modra <amodra@bigpond.net.au>
  2576. * cpu-arm.c (arm_check_note): Warning fix.
  2577. * elf32-iq2000.c (iq2000_elf_check_relocs): Warning fixes. Arrange
  2578. to keep relocs if edited.
  2579. (iq2000_elf_print_private_bfd_data): Return TRUE.
  2580. * elfxx-ia64.c (elfNN_ia64_relax_section): Use ELFNN_R_SYM, not
  2581. ELF64_R_SYM.
  2582. (elfNN_ia64_relax_ldxmov): Warning fix.
  2583. * xtensa-isa.c (xtensa_add_isa): Warning fix.
  2584. * xtensa-modules.c (get_num_opcodes): Warning fix.
  2585. 2003-05-09 Andrey Petrov <petrov@netbsd.org>
  2586. * elf.c (elf_fake_sections): Use correct cast for sh_name.
  2587. 2003-05-09 Alan Modra <amodra@bigpond.net.au>
  2588. * elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
  2589. elflink.h. Replace LOG_FILE_ALIGN with bed->s->log_file_align.
  2590. (_bfd_elf_create_dynamic_sections): Use bed->s->log_file_align.
  2591. (bfd_elf_record_link_assignment): Move from elflink.h.
  2592. (_bfd_elf_merge_symbol): Likewise.
  2593. (_bfd_elf_add_default_symbol): Likewise.
  2594. (_bfd_elf_export_symbol): Likewise.
  2595. (_bfd_elf_link_find_version_dependencies): Likewise.
  2596. (_bfd_elf_link_assign_sym_version): Likewise.
  2597. (_bfd_elf_link_read_relocs): Likewise.
  2598. (_bfd_elf_link_size_reloc_section): Likewise.
  2599. (_bfd_elf_fix_symbol_flags): Likewise.
  2600. (_bfd_elf_adjust_dynamic_symbol): Likewise.
  2601. (_bfd_elf_link_sec_merge_syms): Likewise.
  2602. (elf_link_read_relocs_from_section): Likewise. Use bed->s->sizeof_rel
  2603. and bed->s->sizeof_rela.
  2604. (_bfd_elf_link_output_relocs): Likewise.
  2605. * elf-bfd.h (struct elf_size_info): Rename file_align to
  2606. log_file_align.
  2607. (struct elf_info_failed): Move from elflink.h.
  2608. (struct elf_assign_sym_version_info): Likewise.
  2609. (struct elf_find_verdep_info): Likewise.
  2610. (_bfd_elf_create_dynamic_sections): Delete duplicate declaration.
  2611. (_bfd_elf_merge_symbol, _bfd_elf_add_default_symbol,
  2612. _bfd_elf_export_symbol, _bfd_elf_link_find_version_dependencies,
  2613. _bfd_elf_link_assign_sym_version,
  2614. _bfd_elf_link_create_dynamic_sections, _bfd_elf_link_read_relocs,
  2615. _bfd_elf_link_size_reloc_section, _bfd_elf_link_output_relocs,
  2616. _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
  2617. _bfd_elf_link_sec_merge_syms): Declare.
  2618. (bfd_elf32_link_create_dynamic_sections): Don't declare.
  2619. (_bfd_elf32_link_read_relocs): Likewise.
  2620. (bfd_elf64_link_create_dynamic_sections): Likewise.
  2621. (_bfd_elf64_link_read_relocs): Likewise.
  2622. * elflink.h: Move lots o' stuff elsewhere.
  2623. * bfd-in.h (bfd_elf32_record_link_assignment): Don't declare.
  2624. (bfd_elf64_record_link_assignment): Likewise.
  2625. (bfd_elf_record_link_assignment): Declare.
  2626. * bfd-in2.h: Regenerate.
  2627. * elfcode.h (elf_link_create_dynamic_sections): Don't declare.
  2628. (NAME(_bfd_elf,size_info)): Adjust for log_file_align.
  2629. * elf.c (_bfd_elf_init_reloc_shdr): Adjust for bed->s->log_file_align.
  2630. (assign_file_positions_for_segments): Likewise.
  2631. (assign_file_positions_except_relocs): Likewise.
  2632. (swap_out_syms, elfcore_write_note): Likewise.
  2633. * elf-m10200.c: Adjust for changed function names.
  2634. * elf-m10300.c: Likewise.
  2635. * elf32-arm.h: Likewise.
  2636. * elf32-h8300.c: Likewise.
  2637. * elf32-hppa.c: Likewise.
  2638. * elf32-ip2k.c: Likewise.
  2639. * elf32-m32r.c: Likewise.
  2640. * elf32-m68hc11.c: Likewise.
  2641. * elf32-m68hc1x.c: Likewise.
  2642. * elf32-m68k.c: Likewise.
  2643. * elf32-mips.c: Likewise.
  2644. * elf32-ppc.c: Likewise.
  2645. * elf32-sh.c: Likewise.
  2646. * elf32-v850.c: Likewise.
  2647. * elf32-xtensa.c: Likewise.
  2648. * elf64-alpha.c: Likewise.
  2649. * elf64-hppa.c: Likewise.
  2650. * elf64-mmix.c: Likewise.
  2651. * elf64-ppc.c: Likewise.
  2652. * elf64-sh64.c: Likewise.
  2653. * elfxx-ia64.c: Likewise.
  2654. * elfxx-mips.c: Likewise.
  2655. (MIPS_ELF_LOG_FILE_ALIGN): Use log_file_align.
  2656. * elf64-alpha.c (alpha_elf_size_info): Adjust for log_file_align.
  2657. * elf64-hppa.c (hppa64_elf_size_info): Likewise.
  2658. * elf64-mips.c (mips_elf64_size_info): Likewise.
  2659. * elf64-s390.c (s390_elf64_size_info): Likewise.
  2660. * elf64-sparc.c (sparc64_elf_size_info): Likewise.
  2661. 2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
  2662. * elflink.h (elf_add_default_symbol): After skipping the
  2663. unversioned symbol, go to non-default one.
  2664. 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
  2665. * elfxx-ia64.c (_bfd_elf_link_hash_hide_symbol): Also clear the
  2666. want_plt field.
  2667. (elfNN_ia64_relocate_section): Don't do dynamic symbol lookup
  2668. for symbols with non-default visibility.
  2669. 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
  2670. * elflink.h (elf_link_check_versioned_symbol): Also handle the
  2671. case that a DSO references a hidden symbol which may be
  2672. satisfied by a versioned symbol in another DSO.
  2673. (elf_link_output_extsym): Check versioned definition for hidden
  2674. symbol referenced by a DSO.
  2675. 2003-05-07 Nick Clifton <nickc@redhat.com>
  2676. * elf32-xstormy16.c (xstormy16_elf_howto_table): Reset
  2677. R_XSTORMY16_16 reloc to ignore overflows.
  2678. 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
  2679. * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Improve
  2680. error message for mixing different-endian files. Check for ABI
  2681. compatibility of input files with the selected emulation.
  2682. 2003-05-05 Alan Modra <amodra@bigpond.net.au>
  2683. * elf32-i386.c (allocate_dynrelocs): For undef weak syms with
  2684. non-default visibility, a) don't make them dynamic, b) discard
  2685. space for dynamic relocs.
  2686. * elf64-x86-64.c (allocate_dynrelocs): Likewise.
  2687. * elf32-ppc.c (allocate_dynrelocs): For undef weak syms with
  2688. non-default visibility, a) don't allocate plt entries, b) don't
  2689. allocate .got relocs, c) discard dyn rel space,
  2690. (ppc_elf_relocate_section): d) don't generate .got relocs, e)
  2691. don't generate dynamic relocs.
  2692. * elf64-ppc.c (allocate_dynrelocs): As above.
  2693. (ppc64_elf_relocate_section): As above.
  2694. 2003-05-05 Andreas Jaeger <aj@suse.de>
  2695. * elf64-x86-64.c (allocate_dynrelocs): Don't allocate dynamic
  2696. relocation entries for weak undefined symbols with non-default
  2697. visibility.
  2698. (elf64_x86_64_relocate_section): Initialize the GOT entries and
  2699. skip R_386_32/R_386_PC32 for weak undefined symbols with
  2700. non-default visibility.
  2701. 2003-05-04 H.J. Lu <hjl@gnu.org>
  2702. * elf32-i386.c (allocate_dynrelocs): Don't allocate dynamic
  2703. relocation entries for weak undefined symbols with non-default
  2704. visibility.
  2705. (elf_i386_relocate_section): Initialize the GOT entries and
  2706. skip R_386_32/R_386_PC32 for weak undefined symbols with
  2707. non-default visibility.
  2708. * elfxx-ia64.c (allocate_fptr): Don't allocate function
  2709. descriptors for weak undefined symbols with non-default
  2710. visibility.
  2711. (allocate_dynrel_entries): Don't allocate relocation entries
  2712. for symbols resolved to 0.
  2713. (set_got_entry): Don't install dynamic relocation for weak
  2714. undefined symbols with non-default visibility.
  2715. (set_pltoff_entry): Likewise.
  2716. * elflink.h (elf_fix_symbol_flags): Hide weak undefined symbols
  2717. with non-default visibility.
  2718. (elf_link_output_extsym): Don't make weak undefined symbols
  2719. with non-default visibility dynamic.
  2720. 2003-05-04 H.J. Lu <hjl@gnu.org>
  2721. * elflink.h (elf_merge_symbol): Correctly handle weak definition.
  2722. 2003-05-04 H.J. Lu <hjl@gnu.org>
  2723. * elflink.h (elf_merge_symbol): Don't record a hidden/internal
  2724. symbol dynamic. Check indirection when removing the old
  2725. definition for symbols with non-default visibility.
  2726. (elf_add_default_symbol): Skip when told by elf_merge_symbol.
  2727. 2003-05-02 Nick Clifton <nickc@redhat.com>
  2728. * elf32-xstormy16.c (xstormy16_elf_howto_table): Make the
  2729. R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain about
  2730. unsigned overflow.
  2731. 2003-05-02 Andreas Jaeger <aj@suse.de>
  2732. * elf64-x86-64.c (elf_x86_64_copy_indirect_symbol): Don't copy
  2733. ELF_LINK_NON_GOT_REF for weakdefs when symbol already adjusted.
  2734. (ELIMINATE_COPY_RELOCS): Define as one. Use throughout.
  2735. (elf_x86_64_adjust_dynamic_symbol): For weak symbols, copy
  2736. ELF_LINK_NON_GOT_REF from weakdef.
  2737. 2003-05-02 Charles Lepple <clepple@ghz.cc>
  2738. Nick Clifton <nickc@redhat.com>
  2739. * acinclude.m4: Fix name of --enable-install-libbfd switch.
  2740. * aclocal.m4: Regenerate.
  2741. * configure: Regenerate.
  2742. * Makefile.in: Regenerate.
  2743. 2003-05-01 Alan Modra <amodra@bigpond.net.au>
  2744. * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Test whether the
  2745. weakdef sym has already been adjusted before treating it specially.
  2746. * elf32-i386.c (elf_i386_copy_indirect_symbol): Don't copy
  2747. ELF_LINK_NON_GOT_REF for weakdefs when symbol already adjusted.
  2748. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  2749. (ppc64_elf_check_relocs): Set ELF_LINK_NON_GOT_REF.
  2750. 2003-04-28 H.J. Lu <hjl@gnu.org>
  2751. * elfxx-ia64.c (elfNN_ia64_relax_section): Relax ldxmov during
  2752. the relax finalize pass.
  2753. * section.c (struct sec): Add need_finalize_relax and remove
  2754. flag11.
  2755. (STD_SECTION): Update struct sec initializer.
  2756. * bfd-in2.h: Regenerated.
  2757. 2003-04-28 H.J. Lu <hjl@gnu.org>
  2758. * elflink.h (elf_merge_symbol): Call elf_backend_copy_indirect_symbol
  2759. to copy any information related to dynamic linking when we flip
  2760. the indirection.
  2761. 2003-04-27 H.J. Lu <hjl@gnu.org>
  2762. * elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New.
  2763. (ELF_LINK_DYNAMIC_WEAK): New.
  2764. * elflink.h (elf_merge_symbol): Add one argument to indicate if
  2765. a symbol should be skipped. Ignore definitions in dynamic
  2766. objects for symbols with non-default visibility.
  2767. (elf_add_default_symbol): Adjusted.
  2768. (elf_link_add_object_symbols): Check if a symbol should be
  2769. skipped. Don't merge the visibility field with the one from
  2770. a dynamic object.
  2771. (elf_link_check_versioned_symbol): Use undef_bfd.
  2772. (elf_link_output_extsym): Warn if a forced local symbol is
  2773. referenced from dynamic objects. Make non-weak undefined symbol
  2774. with non-default visibility a fatal error.
  2775. 2003-04-27 Daniel Jacobowitz <drow@mvista.com>
  2776. * configure.in: Bump version on HEAD to 2.14.90.
  2777. * configure: Regenerated.
  2778. 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
  2779. PR savannah/3331:
  2780. * elf32-m68hc11.c (m68hc11_elf_relax_section): Clear prev_insn_group
  2781. when we couldn't relax something.
  2782. 2003-04-25 Alan Modra <amodra@bigpond.net.au>
  2783. * elflink.h (elf_merge_symbol): When we find a regular definition
  2784. for an indirect symbol, flip the indirection so that the old
  2785. direct symbol now points to the new definition.
  2786. 2003-04-24 Roland McGrath <roland@redhat.com>
  2787. * elf.c (bfd_section_from_phdr): Map PT_GNU_EH_FRAME to "eh_frame_hdr".
  2788. 2003-04-24 Alan Modra <amodra@bigpond.net.au>
  2789. * elf32-ppc.c: Formatting and comment fixes.
  2790. (ELIMINATE_COPY_RELOCS): Move before ppc_elf_copy_indirect_symbol.
  2791. (ppc_elf_copy_indirect_symbol): Copy flags here for weakdefs.
  2792. 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
  2793. * archures.c (bfd_mach_h8300hn, bfd_mach_h8300sn): Added.
  2794. * bfd-in2.h: Rebuilt.
  2795. * coff-h8300.c (BADMAG): Add check for H8300HNBADMAG & H8300SNBADMAG.
  2796. * coffcode.h (coff_set_arch_mach_hook): Add case for H8300HNMAGIC
  2797. & H8300SNMAGIC.
  2798. (coff_set_flags): Add case for bfd_mach_h8300hn & bfd_mach_h8300sn.
  2799. * cpu-h8300.c (h8300_scan): Handle h8300hn, h8300sn.
  2800. (h8300sn_info_struct, h8300hn_info_struct): New.
  2801. * elf32-h8300.c (elf32_h8_mach): Handle case for h8300hn & h8300sn
  2802. (elf32_h8_final_write_processing): Likewise.
  2803. 2003-04-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  2804. * elf32-sh.c (tpoff): New.
  2805. (struct elf_sh_dyn_relocs): Remove tls_tpoff32.
  2806. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
  2807. (allocate_dynrelocs): Don't make unnecessary dynamic TLS
  2808. relocations. Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses.
  2809. (sh_elf_relocate_section): Likewise. Remove unnecessary tests.
  2810. (dtpoff_base): Fix wrong indentation.
  2811. (sh_elf_check_relocs): Don't set DF_STATIC_TLS flag with non-TLS
  2812. relocations. Don't set tls_tpoff32 flag. Don't make unnecessary
  2813. R_SH_TLS_TPOFF32 relocations.
  2814. 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
  2815. * archures.c (enum bfd_architecture): Amend comment to refer to SuperH.
  2816. * cpu-sh.c: Likewise.
  2817. * elf32-sh.c: Likewise.
  2818. * reloc.c (bfd_reloc_code_real): Likewise.
  2819. * elf32-sh64-com.c: Change comment to refer to SuperH.
  2820. * elf32-sh64.c: Likewise.
  2821. * elf64-sh64.c: Likewise.
  2822. * bfd-in2.h (enum bfd_architecture): Regenerate.
  2823. 2003-04-23 Alan Modra <amodra@bigpond.net.au>
  2824. From Julien LEMOINE <speedblue@debian.org>
  2825. * elf32-i386.c (elf_i386_info_to_howto): Delete.
  2826. (elf_info_to_howto): Define as elf_i386_info_to_howto_rel.
  2827. 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  2828. * archures.c: Replace references to Mitsubishi M32R with references
  2829. to Renesas M32R.
  2830. * relocs.c: Likewise.
  2831. * bfd-in2.h: Regenerate.
  2832. 2003-04-21 Richard Henderson <rth@redhat.com>
  2833. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Return false for an
  2834. executable when a symbol is defined both regular and dynamic.
  2835. 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
  2836. * Makefile.am (BFD32_BACKENDS): Add elf32-m68hc1x.lo.
  2837. (elf32-m68hc1x.lo): Update dependencies
  2838. * configure.in: Add elf32-m68hc1x.lo.
  2839. * configure: Rebuild.
  2840. * Makefile.in: Rebuild.
  2841. 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
  2842. * elf32-m68hc1x.c: New file (from elf32-m68hc11.c and elf32-m68hc12.c)
  2843. (m68hc11_elf_hash_table_create): New function.
  2844. (elf32_m68hc11_link_hash_table_free): New function.
  2845. (stub_hash_newfunc): New function.
  2846. (m68hc11_add_stub): New function.
  2847. (elf32_m68hc11_add_symbol_hook): New function.
  2848. (elf32_m68hc11_setup_section_lists): New function.
  2849. (elf32_m68hc11_next_input_section): New function.
  2850. (elf32_m68hc11_size_stubs): New function.
  2851. (elf32_m68hc11_build_stubs): New function.
  2852. (m68hc11_get_relocation_value): New function.
  2853. (elf32_m68hc11_relocate_section): Call the above to redirect
  2854. some relocations to the trampoline code.
  2855. (m68hc11_elf_export_one_stub): New function.
  2856. (m68hc11_elf_set_symbol): New function.
  2857. (elf32_m68hc11_build_stubs): Call it via bfd_hash_traverse.
  2858. (m68hc11_elf_get_bank_parameters): Get parameters only when the info
  2859. is not yet initialized.
  2860. * elf32-m68hc1x.h: New file (from elf32-m68hc11.c and elf32-m68hc12.c)
  2861. (elf32_m68hc11_stub_hash_entry): New struct.
  2862. (m68hc11_page_info): Add trampoline handler address.
  2863. (m68hc11_elf_link_hash_table): Add stubs generation members.
  2864. (elf32_m68hc11_add_symbol_hook): Declare.
  2865. (elf32_m68hc11_setup_section_lists): Declare.
  2866. (elf32_m68hc11_size_stubs): Declare.
  2867. (elf32_m68hc11_build_stubs): Declare.
  2868. * elf32-m68hc11.c (m68hc11_elf_ignore_reloc): Move to elf32-m68hc1x.c.
  2869. (elf32_m68hc11_gc_mark_hook, elf32_m68hc11_gc_sweep_hook): Likewise.
  2870. (elf32_m68hc11_check_relocs, elf32_m68hc11_relocate_section): Ditto.
  2871. (_bfd_m68hc11_elf_set_private_flags): Ditto.
  2872. (_bfd_m68hc11_elf_merge_private_bfd_data): Ditto.
  2873. (_bfd_m68hc11_elf_print_private_bfd_data): Ditto.
  2874. (bfd_elf32_bfd_link_hash_table_create): Define.
  2875. (elf_backend_add_symbol_hook): Define.
  2876. (m68hc11_elf_bfd_link_hash_table_create): New function.
  2877. (m68hc11_elf_build_one_stub): New function.
  2878. (m68hc11_elf_size_one_stub): New function.
  2879. (m68hc11_elf_bfd_link_hash_table_create): Install the above.
  2880. (bfd_elf32_bfd_link_hash_table_create): Define.
  2881. * elf32-m68hc12.c (m68hc11_elf_ignore_reloc): Remove.
  2882. (m68hc12_addr_is_banked): Remove, use m68hc11_addr_is_banked.
  2883. (m68hc12_phys_addr): Ditto.
  2884. (m68hc12_phys_page): Ditto.
  2885. (m68hc12_elf_special_reloc): Move to elf32-m68hc1x.c.
  2886. (elf32_m68hc11_gc_mark_hook): Likewise.
  2887. (elf32_m68hc11_gc_sweep_hook): Likewise.
  2888. (elf32_m68hc11_check_relocs): Likewise.
  2889. (elf32_m68hc11_relocate_section): Likewise.
  2890. (_bfd_m68hc12_elf_set_private_flags): Likewise.
  2891. (_bfd_m68hc12_elf_merge_private_bfd_data): Likewise.
  2892. (_bfd_m68hc12_elf_print_private_bfd_data): Likewise.
  2893. (m68hc12_elf_build_one_stub): New function.
  2894. (m68hc12_elf_size_one_stub): New function.
  2895. (m68hc12_elf_bfd_link_hash_table_create): New function, use the above.
  2896. (elf_backend_add_symbol_hook): Define.
  2897. (elf_m68hc11_howto_table): Use TRUE for pcrel relocs; fix masks.
  2898. 2003-04-18 Nick Clifton <nickc@redhat.com>
  2899. * format.c (bfd_check_format_matches): Only check associated
  2900. vector if the matching_vector has been created.
  2901. 2003-04-15 Alexandre Oliva <aoliva@redhat.com>
  2902. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo in
  2903. 2003-04-09's change.
  2904. 2003-04-15 Brian Ford <ford@vss.fsi.com>
  2905. * peicode.h (coff_swap_scnhdr_in): If a section holds
  2906. uninitialized data and is from an object file or from an
  2907. executable image that has not initialized the s_size field, or if
  2908. the physical size is padded, use the virtual size (stored in
  2909. s_paddr) instead.
  2910. 2003-04-15 H.J. Lu <hjl@gnu.org>
  2911. * elflink.h (elf_link_add_object_symbols): Properly report
  2912. filename for alignment reduction.
  2913. 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
  2914. * archures.c: Replace occurrances of 'Hitachi' with 'Renesas'.
  2915. * reloc.c: Likewise.
  2916. * coff-h8300.c: Likewise.
  2917. * coff-h8500.c: Likewise.
  2918. * coff-sh.c: Likewise.
  2919. * cpu-h8300.c: Likewise.
  2920. * cpu-sh.c: Likewise.
  2921. * elf32-h8300.c: Likewise.
  2922. * elf32-sh.c: Likewise.
  2923. * elf32-sh64-com.c: Likewise.
  2924. * elf32-sh64.c: Likewise.
  2925. * elf64-sh64.c: Likewise.
  2926. * bfd-in2.h: Regenerate.
  2927. 2003-04-14 H.J. Lu <hjl@gnu.org>
  2928. * elflink.h (elf_link_add_object_symbols): Maintain maximum
  2929. alignment for common symbols. Warn reducing alignment for
  2930. common symbols. Report old filename when symbol size changes.
  2931. 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
  2932. * elfxx-mips.c (mips_elf_calculate_relocation): Adjust two other
  2933. occurrences of the same test changed in the previous patch.
  2934. Optimize.
  2935. 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
  2936. * elfxx-mips.c (mips_elf_get_global_gotsym_index): New.
  2937. (mips_elf_calculate_relocation): Decay GOT_PAGE/GOT_OFST to
  2938. GOT_DISP/addend only if the symbol got a global GOT entry.
  2939. 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
  2940. * elfxx-mips.c (mips_elf_calculate_relocation): Decay
  2941. GOT_PAGE/GOT_OFST referencing overridable symbol to
  2942. GOT_DISP/addend.
  2943. (_bfd_mips_elf_check_relocs): Handle GOT_PAGE referencing
  2944. global symbol as GOT_DISP.
  2945. 2003-04-10 Bob Wilson <bob.wilson@acm.org>
  2946. * elf32-xtensa.c (elf_xtensa_relocate_section): Don't continue to the
  2947. next relocation on an undefined symbol.
  2948. 2003-04-09 Richard Henderson <rth@redhat.com>
  2949. * elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>:
  2950. Ignore relocations against r_symndx == 0.
  2951. 2003-04-09 H.J. Lu <hjl@gnu.org>
  2952. * elf64-alpha.c (elf64_alpha_relocate_section): Don't return
  2953. FALSE for undefined symbols.
  2954. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  2955. 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
  2956. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Try DWARF3-standard
  2957. and IRIX-specific shift-to-64-bit 4-byte lengths before following
  2958. addr_size.
  2959. 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
  2960. * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): Detect (ctor)
  2961. pointer size from ABI, not arch_bits_per_address.
  2962. 2003-04-07 Kevin Buettner <kevinb@redhat.com>
  2963. * elfn32-mips.c (elf32_mips_grok_prstatus): Adjust core file related
  2964. constants for n32 ABI.
  2965. 2003-04-06 Andrew Cagney <cagney@redhat.com>
  2966. * simple.c (bfd_simple_get_relocated_section_contents): Disable
  2967. free that leads to GDB vs BFD memory corruption.
  2968. 2003-04-04 Stephane Carrez <stcarrez@nerim.fr>
  2969. * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Also adjust
  2970. symbols that mark the end of the section.
  2971. (m68hc11_elf_relax_section): Use R_M68HC11_PCREL_8 relocs when
  2972. converting to a relative branch so that the offset is computed after
  2973. the relaxation; also relocate a jsr into a bsr if possible but don't
  2974. relax them if they are to a far symbol as we need to call the
  2975. trampoline code.
  2976. (elf_m68hc11_howto_table): Set pcrel_offset to true.
  2977. 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
  2978. * archures.c: Namespace cleanup. Rename bfd_mach_c3x to
  2979. bfd_mach_tic3x and bfd_mach_c4x to bfd_mach_tic4x
  2980. * bfd-in2.h: Regenerate
  2981. * coff-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/
  2982. * cpu-tic4x.c: Ditto
  2983. 2003-04-03 Nick Clifton <nickc@redhat.com>
  2984. * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Compute ps and ss
  2985. differently for object files and executables.
  2986. * peicode.h (coff_swap_scnhdr_in): Only set the s_size field
  2987. for object files or for executables who have not already
  2988. initialised the field.
  2989. * libpei.h (bfd_pe_executable_p): New macro. Return true if
  2990. the PE format bfd is an executable.
  2991. 2003-04-03 Alan Modra <amodra@bigpond.net.au>
  2992. * elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
  2993. here as it's too early to reliably determine locality.
  2994. (ppc_elf_gc_sweep_hook): Likewise.
  2995. (SYMBOL_REFERENCES_LOCAL): Expand comment.
  2996. 2003-04-02 Bob Wilson <bob.wilson@acm.org>
  2997. * xtensa-modules.c: Remove comment indicating that this is a
  2998. generated file.
  2999. 2003-04-02 Alan Modra <amodra@bigpond.net.au>
  3000. * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Test for NULL dynobj.
  3001. 2003-04-01 Bob Wilson <bob.wilson@acm.org>
  3002. * Makefile.am (ALL_MACHINES): Add cpu-xtensa.lo.
  3003. (ALL_MACHINES_CFILES): Add cpu-xtensa.c.
  3004. (BFD32_BACKENDS): Add elf32-xtensa.lo, xtensa-isa.lo, and
  3005. xtensa-modules.lo.
  3006. (BFD32_BACKENDS_CFILES): Add elf32-xtensa.c, xtensa-isa.c, and
  3007. xtensa-modules.c.
  3008. (cpu-xtensa.lo): New target.
  3009. (elf32-xtensa.lo): Likewise.
  3010. (xtensa-isa.lo): Likewise.
  3011. (xtensa-modules.lo): Likewise.
  3012. * Makefile.in: Regenerate.
  3013. * archures.c (bfd_architecture): Add bfd_{arch,mach}_xtensa.
  3014. (bfd_archures_list): Add bfd_xtensa_arch.
  3015. * config.bfd: Handle xtensa-*-*.
  3016. * configure.in: Handle bfd_elf32_xtensa_{le,be}_vec.
  3017. * configure: Regenerate.
  3018. * reloc.c: Add BFD_RELOC_XTENSA_{RTLD,GLOB_DAT,JMP_SLOT,RELATIVE,
  3019. PLT,OP0,OP1,OP2,ASM_EXPAND,ASM_SIMPLIFY}.
  3020. * targets.c (bfd_elf32_xtensa_be_vec): Declare.
  3021. (bfd_elf32_xtensa_le_vec): Likewise.
  3022. (bfd_target_vector): Add bfd_elf32_xtensa_{be,le}_vec.
  3023. * cpu-xtensa.c: New file.
  3024. * elf32-xtensa.c: Likewise.
  3025. * xtensa-isa.c: Likewise.
  3026. * xtensa-modules.c: Likewise.
  3027. * libbfd.h: Regenerate.
  3028. * bfd-in2.h: Likewise.
  3029. 2003-04-01 Nick Clifton <nickc@redhat.com>
  3030. * archures.c (bfd_mach_arm_unknown): Define.
  3031. * bfd-in.h (bfd_arm_merge_machines, bfd_arm+update_notes,
  3032. bfd_arm_get_mach_from_notes): Prototype.
  3033. * bfd-in2.h: Regenerate.
  3034. * coff-arm.c (coff_arm_merge_private_bfd_data): Call
  3035. bfd_arm_merge_machines.
  3036. (coff_arm_final_link_postscript): Call bfd_arm_update_notes.
  3037. * coffcode.h (coff_set_arch_mach_hook): Call
  3038. bfd_arm_get_mach_from_notes.
  3039. * coffgen.c (coff_real_object_p): Revert previous delta.
  3040. * cpu_arm.c (arm_check_note): New function. Examine a note in a
  3041. .note section.
  3042. (bfd_arm_merge_machines): New function: Handle the merging of ARM
  3043. binaries compiled for different architectures..
  3044. (bfd_arm_update_notes): New function: Update an ARM note section.
  3045. (bfd_arm_get_mach_from_notes): New function: Extract a bfd machine
  3046. number from an ARM note section.
  3047. * elf32-arm.h (elf32_arm_object_p): Use
  3048. bfd_arm_get_mach_from_notes.
  3049. (elf32_arm_merge_private_bfd_data): Use bfd_arm_merge_machines.
  3050. (elf32_arm_final_write_processing): Use bfd_arm_update_notes.
  3051. 2003-04-01 Ben Elliston <bje@wasabisystems.com>
  3052. * dwarf2.c (read_attribute_value): Correct typo in comment.
  3053. 2003-04-01 Nick Clifton <nickc@redhat.com>
  3054. * dwarf2.c (concat_filename): Use bfd_malloc() and strdup()
  3055. instead of concat().
  3056. (decode_line_info): Only free filename if it is not NULL.
  3057. (add_line_info): Make a copy of the filename when storing it into
  3058. the info structure.
  3059. 2003-03-31 Andreas Schwab <schwab@suse.de>
  3060. Daniel Jacobowitz <drow@mvista.com>
  3061. * simple.c (bfd_simple_get_relocated_section_contents): Add
  3062. parameter symbol_table. Optionally use it instead of the symbol
  3063. table from the bfd. Save and restore output offsets and output
  3064. sections around bfd_get_relocated_section_contents. Fix a memory
  3065. leak.
  3066. (simple_save_output_info, simple_restore_output_info): New
  3067. functions.
  3068. * bfd-in2.h: Regenerate.
  3069. * dwarf2.c (read_abbrevs): Use
  3070. bfd_simple_get_relocated_section_contents instead of
  3071. bfd_get_section_contents.
  3072. (decode_line_info): Likewise.
  3073. (_bfd_dwarf2_find_nearest_line): Likewise. Don't call
  3074. find_rela_addend.
  3075. (find_rela_addend): Remove.
  3076. * elfxx-ia64.c (elfNN_ia64_reloc): Weaken sanity check for
  3077. debugging sections.
  3078. (elfNN_ia64_hash_table_create): Create the hash table with malloc,
  3079. not bfd_zalloc.
  3080. 2003-03-31 David Heine <dlheine@suif.stanford.edu>
  3081. * aoutx.h (aout_link_hash_table_create): Use bfd_malloc instead of
  3082. bfd_alloc.
  3083. * dwarf2.c (concat_filename): Always allocate space for the
  3084. returned filename.
  3085. (decode_line_info): Free the allocated filename returned by
  3086. concat_filename.
  3087. * elf-eh-frame.c (bfd_elf_write_section_eh_frame): Fix memory leaks.
  3088. * elf.c (copy_private_bfd_data): Likewise.
  3089. (_bfd_elf_slurp_version_tables): Fix bug freeing contents pointer.
  3090. * elflink.h (elf_link_sort_relocs): Fix memory leak.
  3091. * format.c (bfd_check_format_matches): Likewise.
  3092. * linker.c (bfd_generic_final_link): Likewise.
  3093. * opncls.c (find_separate_debug_info): Likewise.
  3094. * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
  3095. 2003-03-28 H.J. Lu <hjl@gnu.org>
  3096. * elflink.h (elf_link_add_object_symbols): Correctly combine
  3097. visibilities.
  3098. 2003-03-27 Jakub Jelinek <jakub@redhat.com>
  3099. * elfxx-ia64.c (elfNN_ia64_relax_section): Reset self_dtpmod_offset
  3100. to -1 before recomputing got offsets.
  3101. 2003-03-26 Andreas Schwab <schwab@suse.de>
  3102. * elf32-m68k.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  3103. (elf_m68k_relocate_section): Use it to correctly handle symbols
  3104. forced to be local.
  3105. (elf_m68k_finish_dynamic_symbol): Emit RELATIVE reloc for got
  3106. entries for symbols that are forced to be local.
  3107. 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
  3108. * elfxx-mips.c (_bfd_mips_relax_section): New function.
  3109. * elfxx-mips.h (_bfd_mips_relax_section): Declare.
  3110. * elfn32-mips.c, elf64-mips.c: Use it.
  3111. 2003-03-25 Stan Cox <scox@redhat.com>
  3112. Nick Clifton <nickc@redhat.com>
  3113. Contribute support for Intel's iWMMXt chip - an ARM variant:
  3114. * archures.c: Add bfd_mach_arm_iWMMXt.
  3115. * reloc.c: Add BFD_RELOC_ARM_CP_OFF_IMM_S2.
  3116. * bfd-in2.h: Regenerate.
  3117. * libbfd.h: Regenerate.
  3118. * coff-arm.c (coff_arm_merge_private_bfd_data): Allow iWMMXt
  3119. object files to be linked with XScale ones.
  3120. (coff_arm_final_link_postscript): Update note section.
  3121. * coffcode.h (coff_set_arch_mach_hook): Handle note section.
  3122. * coffgen.c (coff_real_object_p): Call bfd_coff_set_arch_mach_hook
  3123. after identifying a coff binary.
  3124. * cpu-arm.c (processors): Add iWMMXt.
  3125. (arch_inf): Likewise.
  3126. * elf32-arm.h (arm_object_p): Handle note section.
  3127. (elf32_arm_merge_private_bfd_data): Allow iWMMXt object files to
  3128. be linked with XScale ones.
  3129. (elf32_arm_section_flags): New function: Set flags on note section.
  3130. (elf32_arm_final_write_processing): Handle note section.
  3131. 2003-03-21 DJ Delorie <dj@redhat.com>
  3132. * elf32-xstormy16.c (elf32_xstormy16_relocate_section): Call
  3133. _bfd_elf_rela_local_sym.
  3134. 2003-03-20 H.J. Lu <hjl@gnu.org>
  3135. * elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
  3136. non-ELF outputs.
  3137. 2003-03-20 Nick Clifton <nickc@redhat.com>
  3138. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Initialise $idata2 and
  3139. $idata5 in case bfd_coff_final_link is not called.
  3140. 2003-03-19 Jakub Jelinek <jakub@redhat.com>
  3141. * elf64-sparc.c (struct sparc64_elf_section_data): Add reloc_count
  3142. field.
  3143. (canon_reloc_count): Define.
  3144. (sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
  3145. sparc64_elf_canonicalize_dynamic_reloc): Use it instead of
  3146. reloc_count.
  3147. (sparc64_elf_canonicalize_reloc): New routine.
  3148. (bfd_elf64_canonicalize_reloc): Define.
  3149. 2003-03-18 Jakub Jelinek <jakub@redhat.com>
  3150. * elfxx-ia64.c (elfNN_ia64_relax_section): Handle relaxation
  3151. againt mergeable sections. Take r_addend into account when caching
  3152. trampolines.
  3153. 2003-03-18 Richard Henderson <rth@redhat.com>
  3154. * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
  3155. local symbols that have no dyninfo.
  3156. 2003-03-14 Gene Smith <gene.smith@siemens.com>
  3157. * ieee.c (ieee_write_expression): Handle the case where symbol is
  3158. NULL.
  3159. General formatting improvements.
  3160. 2003-03-13 Nick Clifton <nickc@redhat.com>
  3161. * configure.in (LINGUAS): Add zh_CN.
  3162. * configure: Regenerate.
  3163. * po/zh_CN.po: New file.
  3164. 2003-03-13 Elias Athanasopoulos <elathan@phys.uoa.gr>
  3165. * aout-cris.c (BYTES_IN_WORD): Don't define.
  3166. aout-encap.c: Likewise.
  3167. aout-ns32k.c: Likewise.
  3168. aout-tic30.c: Likewise.
  3169. hp300bsd.c: Likewise.
  3170. i386aout.c: Likewise.
  3171. i386dynix.c: Likewise.
  3172. i386linux.c: Likewise.
  3173. i386lynx.c: Likewise.
  3174. i386mach3.c: Likewise.
  3175. m68k4knetbsd.c: Likewise.
  3176. m68klinux.c: Likewise.
  3177. m68klynx.c: Likewise.
  3178. m68knetbsd.c: Likewise.
  3179. m88kmach3.c: Likewise.
  3180. mipsbsd.c: Likewise.
  3181. newsos3.c: Likewise.
  3182. sparclinux.c: Likewise.
  3183. sparclynx.c: Likewise.
  3184. sparcnetbsd.c: Likewise.
  3185. vaxbsd.c: Likewise. Fix comment formatting.
  3186. 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
  3187. * Reverted 2003-03-02's patch.
  3188. * elfxx-target.h (bfd_elfNN_canonicalize_reloc): Make it
  3189. overridable.
  3190. * elf64-mips.c (mips_elf64_canonicalize_reloc,
  3191. mips_elf64_get_dynamic_reloc_upper_bound,
  3192. mips_elf64_canonicalize_dynamic_reloc): New, adapted from elf.c.
  3193. (bfd_elf64_get_canonicalize_reloc,
  3194. bfd_elf64_get_dynamic_reloc_upper_bound,
  3195. bfd_elf64_canonicalize_dynamic_reloc): Define.
  3196. (mips_elf64_slurp_reloc_table): Support dynamic.
  3197. (mips_elf64_slurp_one_reloc_table): Adjust.
  3198. 2003-03-12 Nick Clifton <nickc@redhat.com>
  3199. * xsym.c (bfd_sym_fetch_type_information_table_entry): Change
  3200. 'index' to 'offset' in test for zero value.
  3201. 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
  3202. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Do not create
  3203. dynamic relocations pointing to local or section symbols, use the
  3204. NULL symbol instead. Document the choice to not emit an
  3205. additional R_MIPS_64 relocation.
  3206. 2003-03-11 Alan Modra <amodra@bigpond.net.au>
  3207. * elf32-ppc.c (ppc_elf_relocate_section): Subtract tls seg vma from
  3208. zero index dynamic tls relocs generated for the GOT. Tidy code.
  3209. Set "relocation" to 1 on DTPMOD32 relocs. Optimize HA adjustment.
  3210. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  3211. 2003-03-07 Alan Modra <amodra@bigpond.net.au>
  3212. * elf32-ppc.c (ppc_elf_relocate_section): Don't look for a nop after
  3213. a tls_get_addr call.
  3214. * elf32-ppc.c (ELIMINATE_COPY_RELOCS): Define as one.
  3215. (ppc_elf_adjust_dynamic_symbol): For weak symbols, copy
  3216. ELF_LINK_NON_GOT_REF from weakdef.
  3217. * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define as one.
  3218. (ppc64_elf_adjust_dynamic_symbol): For weak symbols, copy
  3219. ELF_LINK_NON_GOT_REF from weakdef.
  3220. * elf32-i386.c (ELIMINATE_COPY_RELOCS): Define as one. Use throughout.
  3221. (elf_i386_adjust_dynamic_symbol): For weak symbols, copy
  3222. ELF_LINK_NON_GOT_REF from weakdef.
  3223. 2003-03-06 Jakub Jelinek <jakub@redhat.com>
  3224. Andrew Haley <aph@redhat.com>
  3225. * elflink.h (elf_bfd_discard_info): Don't process eh frames if
  3226. output is relocateable.
  3227. 2003-03-06 Steven Konopa <skonopa@kgo.csc.com>
  3228. * som.c (som_fixup_formats): Correct formats for R_AUX_UNWIND and
  3229. R_COMMENT.
  3230. 2003-03-06 Alan Modra <amodra@bigpond.net.au>
  3231. * elf32-ppc.c (ppc_elf_create_linker_section): Don't capitalize
  3232. error messages.
  3233. (ELIMINATE_COPY_RELOCS): Define to zero.
  3234. (ppc_elf_relocate_section): Don't deref htab->tls_sec when calculating
  3235. TLSLD relocs. Report reloc types on a number of errors. Optimize
  3236. LOCAL24PC check for non-local syms. Don't capitalize error messages.
  3237. * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define to zero.
  3238. (ppc64_elf_relocate_section): Don't deref htab->tls_sec when
  3239. calculating TLSLD relocs. Report reloc types on a number of errors.
  3240. Don't capitalize error messages.
  3241. 2003-03-03 H.J. Lu <hjl@gnu.org>
  3242. * elfxx-ia64.c (USE_BRL): Removed.
  3243. (oor_ip): Removed.
  3244. 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
  3245. * elf32-sh.c (sh_elf_howto_tab): Make R_SH_IND12W into an ordinary
  3246. relocation (no special function), and make it non-partial_inplace.
  3247. (sh_elf_relax_section): When creating a bsr, use a consistent value
  3248. no matter if the symbol is extern or not; set addend to -4.
  3249. Don't swap load / non-load instructions for SH4.
  3250. (sh_elf_relax_delete_bytes): In R_SH_IND12W case, check the offset
  3251. rather than if the symbol is external to determine if adjusting the
  3252. offset makes sense. Adjust the addend too if appropriate.
  3253. (sh_elf_relocate_section): In R_SH_IND12W, don't fiddle with the
  3254. relocation.
  3255. 2003-03-03 Nick Clifton <nickc@redhat.com>
  3256. * po/da.po: Installed latest translation.
  3257. 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3258. * elf32-mips.c (elf_mips_howto_table_rel): Change definition of
  3259. R_MIPS_PC16 to rightshift 2.
  3260. (elf_reloc_map mips_reloc_map): Map to rightshifted BFD reloc.
  3261. (bfd_elf32_bfd_reloc_type_lookup): Support
  3262. BFD_RELOC_MIPSEMB_16_PCREL_S2.
  3263. * elf64-mips.c (mips_elf64_howto_table_rel): Change definition of
  3264. R_MIPS_PC16 to rightshift 2.
  3265. (mips_elf64_howto_table_rela): Likewise.
  3266. (mips_reloc_map): Map to rightshifted BFD reloc.
  3267. * elfn32-mips.c: The same as in elf64-mips.c.
  3268. * elfxx-mips.c (mips_elf_got_for_ibfd): Typo in comment.
  3269. (mips_elf_calculate_relocation): Handle rightshifted addends for
  3270. R_MIPS_PC16.
  3271. * reloc.c (BFD_RELOC_MIPSEMB_16_PCREL_S2): New BFD relocation for
  3272. MIPS Embedded PIC. Remove superfluous empty COMMENT.
  3273. * libbfd.h: Regenerate.
  3274. * bfd-in2.h: Regenerate.
  3275. 2003-02-28 Richard Henderson <rth@redhat.com>
  3276. * elfxx-ia64.c (elfNN_ia64_relax_section): Correct bounds
  3277. for ltoff22x relaxation.
  3278. 2003-03-01 Alan Modra <amodra@bigpond.net.au>
  3279. * bfd-in.h (_bfd): Don't define.
  3280. * bfd.c: Rename occurrences of "struct _bfd" to "struct bfd".
  3281. * syms.c: Likewise.
  3282. * bfd-in2.h: Regenerate.
  3283. 2003-02-27 Richard Henderson <rth@redhat.com>
  3284. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add want_gotx;
  3285. (elfNN_ia64_check_relocs): Set it.
  3286. (allocate_global_data_got): Check it.
  3287. (allocate_local_got): Likewise.
  3288. (allocate_dynrel_entries): Likewise.
  3289. (elfNN_ia64_relax_ldxmov): New.
  3290. (elfNN_ia64_relax_section): Handle LTOFF22X, LDXMOV.
  3291. (elfNN_ia64_choose_gp): Split out from ...
  3292. (elfNN_ia64_final_link): ... here.
  3293. 2003-02-27 Andrew Cagney <cagney@redhat.com>
  3294. * bfd.c (struct bfd): Rename "struct _bfd".
  3295. * bfd-in.h: Update copyright.
  3296. (struct bfd): Rename "struct _bfd".
  3297. (_bfd): Define for backward compatibility.
  3298. * bfd-in2.h: Regenerate.
  3299. 2003-02-25 Alan Modra <amodra@bigpond.net.au>
  3300. * elflink.h (elf_bfd_final_link): Apportion reloc counts to rel_hdr
  3301. and rel_hdr2 when initially counting input relocs rather than after
  3302. creating output reloc sections.
  3303. (elf_link_read_relocs_from_section): Don't abort with wrong reloc
  3304. sizes.
  3305. * Makefile.am: Run "make dep-am".
  3306. * Makefile.in: Regenerate.
  3307. 2003-02-24 Kris Warkentin <kewarken@qnx.com>
  3308. * elf.c (elfcore_read_notes): Add check for QNX style core file.
  3309. (elfcore_grog_nto_note): New function.
  3310. (elfcore_grog_nto_gregs): New function.
  3311. (elfcore_grog_nto_status): New function.
  3312. 2003-02-24 Alan Modra <amodra@bigpond.net.au>
  3313. * elflink.c (_bfd_elf_create_got_section): Check existing .got
  3314. section flags before concluding that we've already been called.
  3315. Don't use register keyword.
  3316. (_bfd_elf_create_dynamic_sections): Don't use register keyword.
  3317. (_bfd_elf_create_linker_section): Formatting.
  3318. 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
  3319. * coff-h8300.c: Fix typo: intial -> initial.
  3320. * coff-ppc.c: Likewise.
  3321. 2003-02-20 Alan Modra <amodra@bigpond.net.au>
  3322. * elf32-ppc.c: Formatting.
  3323. (allocate_dynrelocs): LD and GD relocs against the same sym need
  3324. separate GOT entries.
  3325. (ppc_elf_relocate_section): Correct GOT handling for multiple GOT
  3326. entries per symbol.
  3327. 2003-02-19 Alan Modra <amodra@bigpond.net.au>
  3328. * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Simplify dynamic reloc
  3329. removal. Localize vars. Remove unnecessary dynobj test.
  3330. * elf32-i386 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead
  3331. of INFO.
  3332. (allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
  3333. and optimize.
  3334. (elf_i386_relocate_section): Likewise.
  3335. (elf_i386_gc_sweep_hook): Simplify dyn reloc removal. Localize vars.
  3336. * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
  3337. * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
  3338. * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
  3339. * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
  3340. * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise. Remove
  3341. local_dynrel for section too. Don't touch HIPLT22, LOPLT10, PCPLT32
  3342. or PCPLT10 relocs. Don't subtract twice on PLT32 relocs.
  3343. Formatting.
  3344. * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define.
  3345. (ppc64_elf_check_relocs): Use it. Correct comment. Move SEC_ALLOC
  3346. test.
  3347. (ppc64_elf_adjust_dynamic_symbol): Use ELIMINATE_COPY_RELOCS.
  3348. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
  3349. (allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
  3350. and optimize. Use ELIMINATE_COPY_RELOCS.
  3351. (ppc64_elf_relocate_section): Likewise.
  3352. * elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
  3353. (ppc_elf_copy_indirect_symbol): Copy pc_count field.
  3354. (ELIMINATE_COPY_RELOCS): Define.
  3355. (ppc_elf_adjust_dynamic_symbol): Convert copy relocs to dynamic.
  3356. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
  3357. (MUST_BE_DYN_RELOC): Define.
  3358. (allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
  3359. and optimize. Trim dyn_relocs.
  3360. (ppc_elf_check_relocs): Don't generate dyn_relocs when we know they'll
  3361. not be used. Do generate dyn_relocs for copy reloc avoidance. Keep
  3362. track of pc_rel dyn relocs.
  3363. (ppc_elf_relocate_section): Remove "will_become_local". Adjust
  3364. WILL_CALL_FINISH_DYNAMIC_SYMBOL use. Trim dyn relocs as per
  3365. allocate_dynrelocs. Don't recalculate "sec".
  3366. 2003-02-18 Alan Modra <amodra@bigpond.net.au>
  3367. * elf32-ppc.c (ppc_elf_relocate_section): Remove unnecessary test.
  3368. * elf64-ppc.c (ppc64_elf_tls_optimize): Decrement tlsld_got.refcount
  3369. on invalid LD relocs.
  3370. (allocate_dynrelocs): Invalid LD relocs don't use tlsld_got entry.
  3371. (ppc64_elf_relocate_section): Unify new handling of LD relocs and
  3372. tlsld_got entry. Use IS_PPC64_TLS_RELOC.
  3373. * elf32-ppc.h: New file.
  3374. * elf32-ppc.c: Include elf32-ppc.h.
  3375. (NOP, CROR_151515, CROR_313131, TP_OFFSET, DTP_OFFSET): Define.
  3376. (struct ppc_elf_link_hash_entry): Rename "root" to "elf". Adjust uses.
  3377. Add "tls_mask" field.
  3378. (TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, TLS_TLS, TLS_TPRELGD): Define.
  3379. (struct ppc_elf_link_hash_table): Rename "root" to "elf". Adjust uses.
  3380. Add got, relgot, plt, relplt, dynbss, relbss, dynsbss, relsbss,
  3381. sdata, sdata2, tls_sec, tls_get_addr, tlsld_got fields.
  3382. Make use of htab shortcuts throughout file.
  3383. (ppc_elf_link_hash_newfunc): Init tls_mask field.
  3384. (ppc_elf_link_hash_table_create): Init new fields.
  3385. (ppc_elf_copy_indirect_symbol): Copy tls_mask.
  3386. (ppc_elf_howto_raw): Add tls relocs.
  3387. (ppc_elf_reloc_type_lookup): Handle them.
  3388. (ppc_elf_unhandled_reloc): New function.
  3389. (ppc_elf_create_got): Stash got section pointer in hash table,
  3390. return status. Make .rela.got too.
  3391. (ppc_elf_create_dynamic_sections): Stash section pointers in htab.
  3392. (ppc_elf_adjust_dynamic_symbol): Only set up copy relocs when
  3393. NON_GOT_REF set. Don't allocate space in .plt here..
  3394. (allocate_dynrelocs): ..do so here instead, properly ref-counting and
  3395. not allocating plt entries unnecessarily. Allocate got entries here.
  3396. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  3397. (ppc_elf_size_dynamic_sections): Allocate local got entries. Pass
  3398. "info" during allocate_dynrelocs hash traversal. Use htab section
  3399. shortcuts rather than searching for named sections. Get rid of
  3400. "plt" and "strip" booleans.
  3401. (update_local_sym_info, bad_shared_reloc): New functions.
  3402. (ppc_elf_check_relocs): Handle TLS relocs. Move .rela.got creation to
  3403. ppc_elf_create_got. Don't mark got or plt reloc syms dynamic, do so
  3404. in allocate_dynreloc. Use update_local_sym_info and bad_shared_reloc.
  3405. Disallow R_PPC_EMB_RELSDA, R_PPC_EMB_NADDR32, R_PPC_EMB_NADDR16,
  3406. R_PPC_EMB_NADDR16_LO, R_PPC_EMB_NADDR16_HI and R_PPC_EMB_NADDR16_HA
  3407. in shared libs. R_PPC_PLTREL32 is a plt reloc too. Refcount all
  3408. relocs that might use a plt entry. Set NON_GOT_REF too.
  3409. Enumerate all do-nothing relocs.
  3410. (ppc_elf_gc_sweep_hook): Simplify removal of dynrelocs. Handle
  3411. tls relocs and all plt relocs.
  3412. (ppc_elf_tls_setup, ppc_elf_tls_optimize): New functions.
  3413. (ppc_elf_finish_dynamic_symbol): Don't build got entries here.
  3414. (ppc_elf_finish_dynamic_sections): Rewrite tag code using htab
  3415. shortcuts.
  3416. (ppc_elf_relocate_section): Tidy. Handle TLS relocs. Use
  3417. bfd_elf_local_sym_name. Simplify unresolved reloc code. Build got
  3418. entries and got relocs here. Warn on non-zero got reloc addend.
  3419. Split out branch taken/not taken reloc code into a separate switch
  3420. and correct offset calculation. Allow BRTAKEN/BRNTAKEN dynamic relocs.
  3421. Split out HA reloc adjustments to separate switch statement. Don't
  3422. warn on reloc overflow if we've already warned about undefined.
  3423. Don't rebuild sym name when reporting errors. Report all possible
  3424. errors from _bfd_final_link_relocate.
  3425. (bfd_elf32_bfd_final_link): Don't define.
  3426. 2003-02-18 Alan Modra <amodra@bigpond.net.au>
  3427. * elf64-ppc.c (ppc64_elf_relocate_section): Don't init "r". Don't
  3428. rebuild sym name when reporting errors.
  3429. 2003-02-17 Nick Clifton <nickc@redhat.com>
  3430. * elflink.h (elf_link_output_extsym): Only check
  3431. allow_shlib_undefined for shared libraries.
  3432. * elf32-i386.c (elf_i386_relocate_section): Remove bogus check
  3433. of allow_shlib_undefined.
  3434. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  3435. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  3436. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  3437. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  3438. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  3439. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  3440. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  3441. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  3442. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  3443. * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
  3444. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  3445. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  3446. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  3447. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  3448. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  3449. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
  3450. 2003-02-17 Nick Clifton <nickc@redhat.com>
  3451. * elf.c (SEGMENT_AFTER_SEGMENT): Add third parameter - the
  3452. address field to use in the comparison.
  3453. (SEGMENT_OVERLAPS): Check that LMAs overlap as well.
  3454. 2003-02-14 Bob Wilson <bob.wilson@acm.org>
  3455. * elfcore.h (elf_core_file_p): Compare alternate machine codes for ELF
  3456. backends when checking if the generic ELF target should be used.
  3457. * syms.c (_bfd_stab_section_find_nearest_line): For line number stabs
  3458. outside of functions, treat values as absolute addresses.
  3459. * bfd.c: Change embedded documentation to use consistent indentation
  3460. and to split up long lines. Change informal style of description
  3461. for functions lacking real documentation.
  3462. * coffcode.h: Break up long lines in embedded documentation.
  3463. * format.c: Likewise.
  3464. * targets.c: Likewise.
  3465. * libcoff.h: Regenerate.
  3466. * bfd-in2.h: Regenerate.
  3467. 2003-02-14 Alan Modra <amodra@bigpond.net.au>
  3468. * elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.
  3469. (ppc64_elf_copy_indirect_symbol): Merge tls_mask too.
  3470. (ppc64_elf_gc_sweep_hook): Simplify removal of dyn_relocs.
  3471. (allocate_dynrelocs): Don't treat undefined and undefweak specially.
  3472. (ppc_size_one_stub): Fix warning, and tighten plt entry check.
  3473. (group_sections): Don't share a stub section if stubs are for a large
  3474. section. Adjust comment.
  3475. (ppc64_elf_size_stubs): Roughly double the size left for stubs if
  3476. !stubs_always_before_branch.
  3477. (ppc64_elf_relocate_section): Initialize tlsld GOT entry once. Don't
  3478. treat undefined and undefweak specially when processing dyn relocs.
  3479. 2003-02-13 Jakub Jelinek <jakub@redhat.com>
  3480. * elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO.
  3481. 2003-02-13 Nick Clifton <nickc@redhat.com>
  3482. * elf32-arm.h (elf32_thumb_to_arm_stub): Include section VMAs
  3483. in computation of offset to insert into BL instruction.
  3484. 2003-02-11 Uwe Stieber <uwe@wwws.de>
  3485. * config.bfd: Add support for kaOS as cross build target system.
  3486. 2003-02-11 Alan Modra <amodra@bigpond.net.au>
  3487. * elf64-ppc.c (ppc64_elf_check_relocs): Match versioned
  3488. .__tls_get_addr too.
  3489. (ppc64_elf_tls_setup): Ensure cached tls_get_addr is not indirect.
  3490. 2003-02-10 Kaz kojima <kkojima@rr.iij4u.or.jp>
  3491. * elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
  3492. (elf_sh_link_hash_entry): Remove tls_tpoff32 field.
  3493. (sh_elf_link_hash_newfunc): Remove the initialization of
  3494. tls_tpoff32 field.
  3495. (allocate_dynrelocs): Keep dyn_relocs if it includes the entry
  3496. for which tls_tpoff32 flag is set.
  3497. (sh_elf_relocate_section): Covert to LE only if the dyn_relocs
  3498. of the symbol includes the entry matched with the input_section
  3499. and having tls_tpoff32 flag on. When linking statically, set
  3500. symbol index of R_SH_TLS_TPOFF32 relocation to zero if the symbol
  3501. is defined in this executable.
  3502. (sh_elf_check_relocs): Set tls_tpoff32 flag appropriately.
  3503. 2003-02-10 Jakub Jelinek <jakub@redhat.com>
  3504. * elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
  3505. even if there is just non-empty .rela.plt.
  3506. 2003-02-10 Nick Clifton <nickc@redhat.com>
  3507. * archures.c (bfd_mach_arm_ep9312): Define.
  3508. * bfd-in2.h: Regenerate.
  3509. * cpu-arm.c (processors[]): Add ep9312.
  3510. (bfd_arm_arch): Add ep9312.
  3511. * elf32-arm.h (elf32_arm_merge_private_data): Update error
  3512. messages and add test for Maverick floating point support.
  3513. (elf32_arm_print_private_bfd_data): Handle
  3514. EF_ARM_MAVERICK_FLOAT flag.
  3515. (elf32_arm_object_p): New function.
  3516. (elf_backend_object_p): Define.
  3517. 2003-02-10 Alan Modra <amodra@bigpond.net.au>
  3518. * elf64-ppc.c: Rename assorted occurrences of tls_type and similar
  3519. variables, structure fields or function params to tls_mask or
  3520. similar to better reflect usage.
  3521. (struct got_entry): Comment.
  3522. (struct ppc_link_hash_entry): Expand comment, and renumber TLS_*.
  3523. (get_tls_mask): Rename from get_tls_type.
  3524. 2003-02-09 Alan Modra <amodra@bigpond.net.au>
  3525. * elf64-ppc.c (TLS_GD_LD): Don't define..
  3526. (TLS_GD): ..define this instead and update all uses.
  3527. (TLS_TPRELGD): Define.
  3528. (ppc64_elf_link_hash_table_create): Tweak initialization of
  3529. init_refcount and init_offset.
  3530. (ppc64_elf_check_relocs): Add one extra element to t_symndx array.
  3531. Mark second slot of GD or LD toc entries.
  3532. (get_tls_type): Return an int. Distinguish toc GD and LD entries
  3533. from other tls types.
  3534. (ppc64_elf_tls_setup): New function, split out from..
  3535. (ppc64_elf_tls_optimize): ..here. Don't optimize when symbols are
  3536. defined in a dynamic object. Fix LD optimization. Don't set TLS_TPREL
  3537. on GD->IE optimization, use TLS_TPRELGD instead. Use get_tls_type
  3538. return value to properly decide whether toc GD and LD entries can
  3539. optimize away __tls_get_addr call. Check next reloc after DTPMOD64
  3540. to determine GD or LD rather than looking at TLS_LD flag. Don't
  3541. attempt to adjust got entry tls_type here..
  3542. (allocate_dynrelocs): ..instead, adjust got entry tls_type here, and
  3543. look for possible merges.
  3544. (ppc64_elf_size_dynamic_sections): Adjust local got entries for
  3545. optimization.
  3546. (ppc64_elf_size_stubs): Tweak __tls_get_addr fudge.
  3547. (ppc64_elf_relocate_section): Rename some vars to better reflect usage.
  3548. Make use of return value from get_tls_type to properly detect GD and
  3549. LD optimizations. Split tlsld/gd hi/ha from lo/ds case. Don't
  3550. handle tls_get_addr removal when looking at REL24 relocs, do it when
  3551. looking at the previous reloc. Check reloc after DTPMOD64 to determine
  3552. GD or LD.
  3553. * elf64-ppc.h (ppc64_elf_tls_setup): Declare.
  3554. 2003-02-08 Alan Modra <amodra@bigpond.net.au>
  3555. * elf32-hppa.c (group_sections): Don't share a stub section if
  3556. stubs are for a large section.
  3557. * elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
  3558. stubs if !stubs_always_before_branch.
  3559. 2003-02-07 Nick Clifton <nickc@redhat.com>
  3560. * elf.c (swap_out_syms): Generate an error message if an
  3561. equivalent output section cannot be found for a symbol.
  3562. 2003-02-07 Jakub Jelinek <jakub@redhat.com>
  3563. * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
  3564. local_got_entries is NULL.
  3565. 2003-02-06 Andreas Schwab <schwab@suse.de>
  3566. * elf-eh-frame.c (get_DW_EH_PE_signed): Define.
  3567. (read_value): Add parameter is_signed, use signed extraction if
  3568. the value is signed.
  3569. (_bfd_elf_write_section_eh_frame): Pass signed flag of the
  3570. encoding to read_value.
  3571. 2003-02-06 Alan Modra <amodra@bigpond.net.au>
  3572. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
  3573. plt info when called to transfer weak sym info.
  3574. 2003-02-05 Alan Modra <amodra@bigpond.net.au>
  3575. * reloc.c: Add PPC and PPC64 TLS relocs.
  3576. * libbfd.h: Regenerate.
  3577. * bfd-in2.h: Regenerate.
  3578. * elf64-ppc.c (TP_OFFSET, DTP_OFFSET): Declare.
  3579. (ppc64_elf_howto_raw): Add TLS howto's. Adjust R_PPC64_NONE to be
  3580. against a 32 bit field.
  3581. (ppc64_elf_reloc_type_lookup): Handle TLS relocs.
  3582. (_ppc64_elf_section_data): Add t_symndx and comments.
  3583. (ppc64_elf_section_data): Use elf_section_data macro.
  3584. (ppc64_elf_new_section_hook): American spelling.
  3585. (struct got_entry, struct plt_entry): New.
  3586. (MUST_BE_DYN_RELOC): Rename from IS_ABSOLUTE_RELOC.
  3587. (struct ppc_stub_hash_entry): Add "addend" field.
  3588. (struct ppc_link_hash_entry): Add "tls_type".
  3589. (TLS_TLS, TLS_GD_LD, TLS_LD, TLS_TPREL, TLS_DTPREL,
  3590. TLS_EXPLICIT): Define.
  3591. (struct ppc_link_hash_table): Add tls_sec, tls_get_addr, tlsld_got.
  3592. (link_hash_newfunc): Init new fields.
  3593. (ppc64_elf_link_hash_table_create): Likewise. Set init_refcount and
  3594. init_offset to NULL.
  3595. (ppc64_elf_copy_indirect_symbol): Copy got and plt info. Don't call
  3596. _bfd_elf_link_hash_copy_indirect, rather insert relevant code from
  3597. there.
  3598. (update_local_sym_info, update_plt_info): New functions.
  3599. (ppc64_elf_check_relocs): Use them. Handle TLS relocs. Adjust GOT
  3600. handling to use got.glist rather than got.refcount. Likewise for PLT.
  3601. (ppc64_elf_gc_sweep_hook): Handle TLS relocs, new GOT and PLT lists.
  3602. (func_desc_adjust): Adjust for new PLT list.
  3603. (ppc64_elf_adjust_dynamic_symbol): Likewise.
  3604. (get_sym_h, get_tls_type): New functions.
  3605. (ppc64_elf_edit_opd): Remove unused variable. Use get_sym_h.
  3606. (ppc64_elf_tls_optimize): New function.
  3607. (allocate_dynrelocs): Adjust for new PLT and GOT lists. Allocate
  3608. TLS relocs.
  3609. (ppc64_elf_size_dynamic_sections): Likewise.
  3610. (ppc_type_of_stub): Adjust for new PLT list.
  3611. (ppc_build_one_stub): Likewise.
  3612. (ppc64_elf_size_stubs): Likewise. Use get_sym_h. Treat __tls_get_addr
  3613. calls specially.
  3614. (ppc64_elf_relocate_section): Adjust for new GOT and PLT lists. Handle
  3615. TLS relocs. Report local syms using bfd_elf_local_sym_name. Don't
  3616. init GOT entries that have a reloc. Generate GOT relocs here..
  3617. (ppc64_elf_finish_dynamic_symbol): ..not here. Adjust for PLT list.
  3618. * elf64-ppc.h (ppc64_elf_tls_optimize): Declare.
  3619. 2003-02-04 Andreas Schwab <schwab@suse.de>
  3620. * elf32-m68k.c (elf_m68k_hash_entry): Define.
  3621. (elf_m68k_link_hash_traverse): Remove.
  3622. (elf_m68k_link_hash_newfunc): Use struct bfd_hash_entry and
  3623. elf_m68k_hash_entry instead of struct elf_m68k_link_hash_entry to
  3624. reduce casting.
  3625. (elf_m68k_check_relocs): Use elf_m68k_hash_entry instead of
  3626. casting.
  3627. (elf_m68k_size_dynamic_sections): Use elf_link_hash_traverse
  3628. instead of elf_m68k_link_hash_traverse.
  3629. (elf_m68k_discard_copies): Change first parameter to pointer to
  3630. struct elf_link_hash_entry and use elf_m68k_hash_entry when struct
  3631. elf_m68k_link_hash_entry is needed.
  3632. 2003-02-04 Alan Modra <amodra@bigpond.net.au>
  3633. * elf-bfd.h (struct got_entry, struct plt_entry): Forward declare.
  3634. (struct elf_link_hash_entry): Add "glist" and "plist" fields to
  3635. "got" union, and declare as gotplt_union. Use gotplt_uinion for
  3636. "plt" field.
  3637. (struct elf_link_hash_table): Make "init_refcount" a gotplt_union.
  3638. Add "init_offset" field.
  3639. (struct elf_obj_tdata <local_got>): Add "struct got_entry **" to union.
  3640. (elf_local_got_ents): Declare.
  3641. * elf.c (_bfd_elf_link_hash_newfunc): Adjust initialization of "got"
  3642. and "plt".
  3643. (_bfd_elf_link_hash_hide_symbol): Use "init_offset".
  3644. (_bfd_elf_link_hash_table_init): Set "init_offset".
  3645. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set init_refcount
  3646. from init_offset.
  3647. (elf_adjust_dynamic_symbol): Set plt and got offsets using init_offset.
  3648. * elf.c (bfd_elf_local_sym_name): Split out from..
  3649. (group_signature): ..here.
  3650. * elf-bfd.h (bfd_elf_local_sym_name): Declare.
  3651. 2003-02-04 Alan Modra <amodra@bigpond.net.au>
  3652. * elf-bfd.h (enum elf_link_info_type): Remove.
  3653. (struct bfd_elf_section_data): Move sec_info_type, use_rela_p fields
  3654. to struct sec. Remove linkonce_p field.
  3655. (elf_linkonce_p): Delete.
  3656. (elf_discarded_section): Update for sec_info_type change.
  3657. * section.c (struct sec): Add sec_info_type, use_rela_p, has_tls_reloc,
  3658. flag11, flag12, flag13, flag14, flag15, flag16, flag20, flag24.
  3659. (ELF_INFO_TYPE_NONE): Define.
  3660. (ELF_INFO_TYPE_STABS): Define.
  3661. (ELF_INFO_TYPE_MERGE): Define.
  3662. (ELF_INFO_TYPE_EH_FRAME): Define.
  3663. (ELF_INFO_TYPE_JUST_SYMS): Define.
  3664. (STD_SECTION): Update struct sec initializer.
  3665. * ecoff.c (bfd_debug_section): Likewise.
  3666. * elf.c: Likewise. Update occurrences of sec_info_type and use_rela_p.
  3667. * elflink.h: Likewise.
  3668. * elf-eh-frame.c: Likewise.
  3669. * elf64-alpha.c: Likewise.
  3670. * elfxx-ia64.c: Likewise.
  3671. * elfxx-mips.c: Likewise.
  3672. * bfd-in2.h: Regenerate.
  3673. * elf32-sparc.c (sec_do_relax): Use elf_section_data macro rather than
  3674. referring to used_by_bfd.
  3675. * elf64-sparc.c (sec_do_relax): Likewise.
  3676. * elf64-mmix.c (mmix_elf_section_data): Likewise.
  3677. * elfxx-mips.c (mips_elf_section_data): Likewise.
  3678. * ieee.c (ieee_slurp_section_data): Use ieee_per_section macro.
  3679. (ieee_get_section_contents): Likewise.
  3680. (ieee_new_section_hook): Formatting.
  3681. (ieee_canonicalize_reloc): Remove commented out code.
  3682. * mmo.c (mmo_section_data): Define. Use throughout file.
  3683. * oasys.c (oasys_get_section_contents): Use oasys_per_section macro.
  3684. 2003-01-31 Graydon Hoare <graydon@redhat.com>
  3685. * Makefile.am (opncls.lo): Add dependency upon libiberty.h.
  3686. * Makefile.in: Regenerate.
  3687. * opncls.c (calc_crc32, get_debug_link_info,
  3688. seperate_debug_file_exists, find_seperate_debug_file): New
  3689. internal functions.
  3690. (bfd_follow_gnu_debuglink): New function. Follow the pointer
  3691. contained inside a .gnu_debuglink section.
  3692. * bfd-in2.h: Regenerate.
  3693. 2003-01-29 Alexandre Oliva <aoliva@redhat.com>
  3694. * elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
  3695. entry->abfd when it's NULL.
  3696. 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
  3697. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
  3698. _bfd_elf_section_offset returning -2 the same way as -1.
  3699. * elfxx-mips.c (mips_elf_multi_got): New function.
  3700. (struct mips_got_entry): Make symndx and gotidx signed. Moved
  3701. addend into union along with address and link hash entry.
  3702. (struct mips_got_info): Added bfd2got and next.
  3703. (struct mips_elf_hash_sort_data): Added max_unref_got_dynindx.
  3704. (mips_elf_got_section, mips_elf_create_got_section): Use
  3705. SEC_EXCLUDE bit to tell whether we really need the got
  3706. section. Take boolean arguments to disregard an excluded
  3707. section, or to create it as excluded. Adjust all callers.
  3708. Use mips_elf_got_section all over.
  3709. (mips_elf_local_got_index, mips_elf_got_page,
  3710. mips_elf_got16_entry): Take input bfd as argument, and pass it
  3711. on to mips_elf_create_local_got_entry.
  3712. (mips_elf_global_got_index, mips_elf_create_local_got_entry):
  3713. Take input bfd as argument, and manage entries in the
  3714. appropriate GOT.
  3715. (mips_elf_got_offset_from_index): Take input bfd as argument,
  3716. and use it to adjust the GP offset of the bfd.
  3717. (mips_elf_sort_hash_table, mips_elf_sort_hash_table_f): Move
  3718. unreferenced GOT entries of global symbols to the end.
  3719. (mips_elf_record_global_got_symbol): Take input bfd as
  3720. argument. Add entries to the master GOT hash table.
  3721. (struct mips_elf_bfd2got_hash): New.
  3722. (struct mips_elf_got_per_bfd_arg): New.
  3723. (struct mips_elf_set_global_got_offset_arg): New.
  3724. (mips_elf_hash_bfd_vma, mips_elf_multi_got_entry_hash,
  3725. mips_elf_multi_got_entry_eq, mips_elf_bfd2got_entry_hash,
  3726. mips_elf_bfd2got_entry_eq, mips_elf_make_got_per_bfd,
  3727. mips_elf_merge_gots, mips_elf_set_global_got_offset,
  3728. mips_elf_resolve_final_got_entry,
  3729. mips_elf_resolve_final_got_entries, mips_elf_adjust_gp,
  3730. mips_elf_got_for_ibfd): New functions.
  3731. (ELF_MIPS_GP_OFFSET): Don't depend on SGI_COMPAT.
  3732. (MIPS_ELF_GOT_MAX_SIZE): New macro.
  3733. (STUB_LW): Generate 64-bit stub regardless of SGI_COMPAT.
  3734. (mips_elf_got_entry_hash): Take new fields into account. Use
  3735. mips_elf_hash_bfd_vma.
  3736. (mips_elf_got_entry_eq): Take new fields into account.
  3737. (mips_elf_create_got_section): Initialize new fields.
  3738. (mips_elf_calculate_relocation): Pass input_bfd to functions
  3739. that now take it. Adjust gp for the input_bfd.
  3740. (mips_elf_allocate_dynamic_relocation,
  3741. mips_elf_create_dynamic_relocation,
  3742. _bfd_mips_elf_create_dynamic_sections): Use...
  3743. (mips_elf_rel_dyn_section): New function. Borrow code from...
  3744. (_bfd_mips_elf_check_relocs): Pass input_bfd to functions that
  3745. now take it. Create the got section if needed, even if
  3746. excluded, before recording a global got symbol. Move some
  3747. code to...
  3748. (mips_elf_record_local_got_symbol): New fn.
  3749. (_bfd_mips_elf_size_dynamic_sections): Disable combreloc.
  3750. Compute multi-got global entries offsets. Move GOT code to...
  3751. (_bfd_mips_elf_always_size_sections): Call mips_elf_multi_got
  3752. if the GOT is too big.
  3753. (_bfd_mips_elf_finish_dynamic_symbol): Set got entry of
  3754. undefweak symbol to zero. Generate dynamic relocations for
  3755. non-primary GOT entries for global symbols.
  3756. (_bfd_mips_elf_finish_dynamic_sections): Handle multi-got
  3757. case. Generate dynamic relocations for local got entries.
  3758. Sort dynamic relocations on N64 too, using...
  3759. (sort_dynamic_relocs_64): New fns.
  3760. (_bfd_mips_elf_hide_symbol): Adjust multi-got counters.
  3761. (_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_XGOT.
  3762. 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
  3763. * bfd.c (struct _bfd): Added id field.
  3764. * opncls.c (_bfd_id_counter): New static variable.
  3765. (_bfd_new_bfd): Use it.
  3766. * bfd-in2.h: Rebuilt.
  3767. 2003-01-25 Alan Modra <amodra@bigpond.net.au>
  3768. * elf32-sparc.c (bfd_elf32_new_section_hook): Define.
  3769. 2003-01-25 Jakub Jelinek <jakub@redhat.com>
  3770. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
  3771. (elf32_sparc_rev32_howto): New variable.
  3772. (sparc_reloc_map): Add TLS relocs.
  3773. (elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
  3774. Handle REV32.
  3775. (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
  3776. New functions.
  3777. (struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
  3778. struct elf32_sparc_link_hash_table):
  3779. New structures.
  3780. (elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
  3781. elf32_sparc_hash_table): Define.
  3782. (link_hash_newfunc, elf32_sparc_link_hash_table_create,
  3783. create_got_section, elf32_sparc_create_dynamic_sections,
  3784. elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
  3785. functions.
  3786. (elf32_sparc_check_relocs): Handle TLS relocs. Add dynamic reloc
  3787. reference counting.
  3788. (elf32_sparc_gc_sweep_hook): Likewise.
  3789. (elf32_sparc_adjust_dynamic_symbol): Likewise.
  3790. (elf32_sparc_size_dynamic_sections): Likewise.
  3791. (elf32_sparc_relocate_section): Likewise.
  3792. (allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
  3793. New functions.
  3794. (elf32_sparc_object_p): Allocate backend private object data.
  3795. (bfd_elf32_bfd_link_hash_table_create,
  3796. elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
  3797. elf_backend_can_refcount): Define.
  3798. (elf_backend_create_dynamic_sections): Define to
  3799. elf32_sparc_create_dynamic_sections.
  3800. * reloc.c: Add SPARC TLS relocs.
  3801. * bfd-in2.h, libbfd.h: Rebuilt.
  3802. * elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
  3803. (sparc_reloc_map): Likewise.
  3804. 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
  3805. * bfd-in2.h: Regenerate.
  3806. * elf32-s390.c (elf_s390_mkobject, elf_s390_tls_transition,
  3807. s390_tls_reloc, dtpoff_base, tpoff, invalid_tls_insn): New functions.
  3808. (elf_howto_table): Add TLS relocs.
  3809. (elf_s390_reloc_type_lookup): Likewise.
  3810. (elf_s390_link_hash_entry): Add tls_type.
  3811. (elf_s390_hash_entry, elf_s390_obj_tdata, elf_s390_local_got_tls_type):
  3812. New macros.
  3813. (elf_s390_link_hash_table): Add tls_ldm_got.
  3814. (link_hash_newfunc): Initialize tls_type.
  3815. (elf_s390_link_hash_table_create): Initialize refcount of tls_ldm_got.
  3816. (elf_s390_copy_indirect_symbol): Copy tls_type information.
  3817. (elf_s390_check_relocs): Support TLS relocs.
  3818. (elf_s390_gc_sweep_hook): Likewise.
  3819. (allocate_dynrelocs): Likewise.
  3820. (elf_s390_size_dynamic_sections): Likewise.
  3821. (elf_s390_relocate_section): Likewise.
  3822. (elf_s390_finish_dynamic_symbol): Likewise.
  3823. (bfd_elf32_mkobject): Define for TLS.
  3824. * elf64-s390.c: Same changes as for elf32-s390.c.
  3825. * libbfd.h: Regenerate.
  3826. * reloc.c: Add s390 TLS relocations.
  3827. 2003-01-24 Charles Lepple <clepple@ghz.cc>
  3828. * aclocal.m4: Fix name of --enable-install-libbfd switch.
  3829. 2003-01-23 Nick Clifton <nickc@redhat.com>
  3830. * Add sh2e support:
  3831. 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
  3832. * archures.c (bfd_mach_sh2e): Added.
  3833. * bfd-in2.h: Rebuilt.
  3834. * cpu-sh.c (arch_info_struct): Added SH2e.
  3835. * elf32-sh.c (sh_elf_set_mach_from_flags): Handle EF_SH2E.
  3836. 2003-01-23 Alan Modra <amodra@bigpond.net.au>
  3837. * elf-bfd.h (struct bfd_elf_section_data): Remove tdata. Change
  3838. dynindx to an int. Rearrange for better packing.
  3839. * elf.c (_bfd_elf_new_section_hook): Don't alloc if already done.
  3840. * elf32-mips.c (bfd_elf32_new_section_hook): Define.
  3841. * elf32-sh64.h: New. Split out from include/elf/sh.h.
  3842. (struct _sh64_elf_section_data): New struct.
  3843. (sh64_elf_section_data): Don't dereference sh64_info (was tdata).
  3844. * elf32-sh64-com.c: Include elf32-sh64.h.
  3845. * elf32-sh64.c: Likewise.
  3846. (sh64_elf_new_section_hook): New function.
  3847. (bfd_elf32_new_section_hook): Define.
  3848. (sh64_elf_fake_sections): Adjust for sh64_elf_section_data change.
  3849. (sh64_bfd_elf_copy_private_section_data): Likewise.
  3850. (sh64_elf_final_write_processing): Likewise.
  3851. * elf32-sparc.c (struct elf32_sparc_section_data): New.
  3852. (elf32_sparc_new_section_hook): New function.
  3853. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
  3854. (sec_do_relax): Define.
  3855. (elf32_sparc_relax_section): Adjust to use sec_do_relax.
  3856. (elf32_sparc_relocate_section): Likewise.
  3857. * elf64-mips.c (bfd_elf64_new_section_hook): Define.
  3858. * elf64-mmix.c (struct _mmix_elf_section_data): New.
  3859. (mmix_elf_section_data): Define. Use throughout file.
  3860. (mmix_elf_new_section_hook): New function.
  3861. (bfd_elf64_new_section_hook): Define.
  3862. * elf64-ppc.c (struct _ppc64_elf_section_data): New.
  3863. (ppc64_elf_section_data): Define. Use throughout.
  3864. (ppc64_elf_new_section_hook): New function.
  3865. (bfd_elf64_new_section_hook): Define.
  3866. * elf64-sparc.c (struct sparc64_elf_section_data): New.
  3867. (sparc64_elf_new_section_hook): New function.
  3868. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
  3869. (sec_do_relax): Define.
  3870. (sparc64_elf_relax_section): Adjust to use sec_do_relax.
  3871. (sparc64_elf_relocate_section): Likewise.
  3872. (bfd_elf64_new_section_hook): Define.
  3873. * elfn32-mips.c (bfd_elf32_new_section_hook): Define.
  3874. * elfxx-mips.c (struct _mips_elf_section_data): New.
  3875. (mips_elf_section_data): Define. Use throughout.
  3876. (_bfd_mips_elf_new_section_hook): New function.
  3877. (mips_elf_create_got_section): Don't alloc used_by_bfd.
  3878. * elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare.
  3879. * elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef.
  3880. * Makefile.am: Run "make dep-am".
  3881. * Makefile.in: Regenerate.
  3882. 2003-01-21 Richard Henderson <rth@redhat.com>
  3883. * elf64-alpha.c (ALPHA_ELF_LINK_HASH_PLT_LOC): New.
  3884. (struct alpha_elf_link_hash_entry): Add plt_old_section, plt_old_value.
  3885. (elf64_alpha_adjust_dynamic_symbol): Set them.
  3886. (elf64_alpha_size_plt_section_1): Reset them when plt entry removed.
  3887. (elf64_alpha_relax_tls_get_addr): Handle LDM relocs. Frob the
  3888. symbol index when relaxing LDM to TPREL.
  3889. (elf64_alpha_relax_section): Likewise. Allow relaxation of GD
  3890. relocs, even if the target isn't locally defined.
  3891. (elf64_alpha_check_relocs): Frob LDM reloc symndx to zero.
  3892. (elf64_alpha_relocate_section): Likewise. Force TP-relative
  3893. relocs vs symndx 0 to the tp base.
  3894. 2003-01-21 Fabio Alemagna <falemagn@aros.org>
  3895. * config.bfd: Handle i[3456]86-*-aros*.
  3896. 2003-01-21 Andreas Schwab <schwab@suse.de>
  3897. * elf32-ppc.c (struct ppc_elf_dyn_relocs): Define.
  3898. (struct ppc_elf_link_hash_entry): Define.
  3899. (ppc_elf_hash_entry): New function.
  3900. (struct ppc_elf_link_hash_table): Define.
  3901. (ppc_elf_hash_table): New function.
  3902. (ppc_elf_link_hash_newfunc): New function.
  3903. (ppc_elf_link_hash_table_create): New function.
  3904. (ppc_elf_copy_indirect_symbol): New function.
  3905. (allocate_dynrelocs): New function.
  3906. (readonly_dynrelocs): New function.
  3907. (ppc_elf_size_dynamic_sections): Allocate space for dynamic
  3908. relocs and determine DT_TEXTREL.
  3909. (ppc_elf_check_relocs): Don't do that here, just count the
  3910. dynamic relocs.
  3911. (ppc_elf_gc_sweep_hook): Discard any dynamic relocs against the
  3912. removed section.
  3913. (bfd_elf32_bfd_link_hash_table_create): Define.
  3914. (elf_backend_copy_indirect_symbol): Define.
  3915. 2003-01-21 Richard Henderson <rth@redhat.com>
  3916. * elf64-alpha.c (alpha_dynamic_entries_for_reloc): GOTTPREL and
  3917. TPREL also get a reloc if shared. Remove SREL support.
  3918. (elf64_alpha_emit_dynrel): New.
  3919. (elf64_alpha_relocate_section): Use it. Resolve dynamic TPREL
  3920. and GOTTPREL relocs to local symbols against the tp base.
  3921. (elf64_alpha_finish_dynamic_symbol): Use elf64_alpha_emit_dynrel.
  3922. * elf64-alpha.c (elf64_alpha_relax_got_load): Decrement got
  3923. use count before clobbering r_type.
  3924. (elf64_alpha_relax_tls_get_addr): Don't use pos[1] if insn
  3925. ordering would mean dataflow inspection is necessary.
  3926. 2003-01-20 Svein E. Seldal <Svein.Seldal@solidas.com>
  3927. * coffcode.h (coff_set_flags): Added get/set arch hooks.
  3928. 2003-01-20 Fabio Alemagna <falemagn@aros.org>
  3929. * elf32-sh.c: Treat elfNN_bed like other macros defined in
  3930. elfxx-target.h and #undef it before #define'ing it.
  3931. * elf32-i386.c: Likewise.
  3932. * elf32-sh64.c: Likewise.
  3933. * elf64-alpha.c: Likewise.
  3934. * elf64-sh64.c: Likewise.
  3935. 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
  3936. * bfd-in2.h: Regenerate.
  3937. * elf32-s390.c (elf_s390_adjust_gotplt): New prototype.
  3938. (elf_howto_table): Rename R_390_GOTOFF to R_390_GOTOFF32. Add
  3939. R_390_GOTOFF16, R_390_GOTOFF64, R_390_GOTPLT12, R_390_GOTPLT16,
  3940. R_390_GOTPLT32, R_390_GOTPLT64, R_390_GOTPLTENT, R_390_PLTOFF16,
  3941. R_390_PLTOFF32 and R_390_PLTOFF64.
  3942. (elf_s390_reloc_type_lookup): Likewise.
  3943. (struct elf_s390_link_hash_entry): Add gotplt_refcount to keep track
  3944. of GOTPLT references to a function.
  3945. (link_hash_newfunc): Initialize gotplt_refcount.
  3946. (elf_s390_check_relocs): Move allocation of local_got_refcounts array
  3947. and creation of the got section out of the main switch. Add support
  3948. for the gotoff, gotplt and pltoff relocations.
  3949. (elf_s390_gc_sweep_hook): Add reference counting for gotoff, gotplt
  3950. and pltoff.
  3951. (elf_s390_adjust_gotplt): New function.
  3952. (elf_s390_adjust_dynamic_symbol): Adjust gotplt refcount for removed
  3953. plt entries.
  3954. (allocate_dynrelocs): Add comment.
  3955. (elf_s390_relocate_section): Change r_type to unsigned. Add support
  3956. for gotoff, gotplt and pltoff relocations.
  3957. * elf64-s390.c: Same changes as for elf32-s390.c.
  3958. * libbfd.h: Regenerate.
  3959. * reloc.c: Add BFD_RELOC_390_GOTOFF64, BFD_RELOC_390_GOTPLT12,
  3960. BFD_RELOC_390_GOTPLT16, BFD_RELOC_390_GOTPLT32, BFD_RELOC_390_GOTPLT64,
  3961. BFD_RELOC_390_GOTPLTENT, BFD_RELOC_390_PLTOFF16, BFD_RELOC_390_PLTOFF32
  3962. and BFD_RELOC_390_PLTOFF64.
  3963. 2003-01-18 Jakub Jelinek <jakub@redhat.com>
  3964. * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle
  3965. R_IA64_TPREL64[LM]SB against non-global symbol properly.
  3966. 2003-01-16 Jakub Jelinek <jakub@redhat.com>
  3967. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add
  3968. self_dtpmod_done and self_dtpmod_offset.
  3969. (allocate_global_data_got): Only use one got entry for all
  3970. dtpmod relocs against local symbols.
  3971. (allocate_dynrel_entries): Only need .rela.got entry for
  3972. dtpmod against global symbol.
  3973. (elfNN_ia64_size_dynamic_sections): Initialize self_dtpmod_offset.
  3974. Reserve space in .rela.got for the local dtpmod entry.
  3975. (set_got_entry): Initialize the common local dtpmod .got entry.
  3976. (elfNN_ia64_relocate_section): Handle R_IA_64_DTPREL64LSB
  3977. and R_IA_64_DTPREL64MSB.
  3978. 2003-01-16 Alan Modra <amodra@bigpond.net.au>
  3979. * elf64-ppc.c: Include elf/ppc64.h rather than elf/ppc.h.
  3980. (R_PPC_*): Rename all occurrences to R_PPC64_*.
  3981. (R_PPC64_ADDR30): Rename all occurrences to R_PPC64_REL30.
  3982. (enum elf_ppc_reloc_type): Ditto to enum elf_ppc64_reloc_type.
  3983. (ppc64_elf_gc_sweep_hook): Handle R_PPC64_REL30 along with other
  3984. relative relocs, not with absolute ones.
  3985. * Makefile.am: Run "make dep-am".
  3986. * Makefile.in: Regenerate.
  3987. * po/SRC-POTFILES.in: Regenerate.
  3988. 2003-01-15 Andreas Schwab <schwab@suse.de>
  3989. * elf32-ppc.c (ppc_elf_check_relocs): Don't set DF_TEXTREL for a
  3990. relocation against a non-allocated readonly section.
  3991. 2003-01-10 Alan Modra <amodra@bigpond.net.au>
  3992. * elf32-ppc.c (ppc_elf_relocate_section): Adjust addend for GOT16_HA.
  3993. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. PLTGOT16_HA too.
  3994. 2002-01-08 Klee Dienes <kdienes@apple.com>
  3995. * Makefile.am (ALL_MACHINES): Use cpu-msp430.lo, not cpu-msp430.c.
  3996. (BFD32_BACKENDS): Use elf32-msp430.lo, not elf32-msp430.c.
  3997. * Makefile.in: Regenerate.
  3998. 2003-01-08 Alexandre Oliva <aoliva@redhat.com>
  3999. * elfn32-mips.c (prev_reloc_section): New.
  4000. (GET_RELOC_ADDEND): Use it. Parenthesize macro arguments.
  4001. (SET_RELOC_ADDEND): Parenthesize macro argument.
  4002. 2003-01-07 John David Anglin <dave.anglin@nrc.gc.ca>
  4003. * elf32-hppa.c (final_link_relocate): For all DP relative relocations,
  4004. adjust addil instructions if the symbol has no section.
  4005. 2003-01-07 DJ Delorie <dj@redhat.com>
  4006. * elf32-xstormy16.c (xstormy16_elf_howto_table): Make REL_12 not
  4007. partial_inplace.
  4008. 2003-01-07 Andreas Schwab <schwab@suse.de>
  4009. * elf32-m68k.c (elf_m68k_check_relocs): Don't set DF_TEXTREL for
  4010. PC relative relocations.
  4011. (elf_m68k_discard_copies): Set it here instead.
  4012. 2002-01-02 Ben Elliston <bje@redhat.com>
  4013. Jeff Johnston <jjohnstn@redhat.com>
  4014. * Makefile.am (ALL_MACHINES): Add cpu-iq2000.lo.
  4015. (ALL_MACHINES_CFILES): Add cpu-iq2000.c.
  4016. (BFD32_BACKENDS): Add elf32-iq2000.lo.
  4017. (BFD32_BACKENDS_CFILES): Add elf32-iq2000.c.
  4018. (cpu-iq2000.lo): New target.
  4019. * Makefile.in: Regenerate.
  4020. * config.bfd: Handle iq2000-*-elf.
  4021. * archures.c (bfd_architecture): Add bfd_{arch,mach}_iq2000.
  4022. (bfd_archures_list): Add bfd_iq2000_arch.
  4023. * configure.in: Handle bfd_elf32_iq2000_vec.
  4024. * configure: Regenerate.
  4025. * reloc.c: Add BFD_RELOC_IQ2000_OFFSET_16, BFD_RELOC_IQ2000_OFFSET_21,
  4026. and BFD_RELOC_IQ2000_UHI16.
  4027. * targets.c (bfd_elf32_iq2000_vec): Declare.
  4028. (bfd_target_vector): Add bfd_elf32_iq2000_vec.
  4029. * elf.c (prep_headers): Set e_machine to EM_IQ2000.
  4030. * cpu-iq2000.c: New file.
  4031. * elf32-iq2000.c: Likewise.
  4032. * libbfd.h: Regenerate.
  4033. * bfd-in2.h: Likewise.
  4034. 2003-01-02 Richard Sandiford <rsandifo@redhat.com>
  4035. * elfxx-mips.c: Include libiberty.h.
  4036. (elf_mips_isa, _bfd_mips_elf_mach_extends_p): Remove.
  4037. (mips_set_isa_flags): New function, split out from...
  4038. (_bfd_mips_elf_final_write_processing): ...here. Only call
  4039. mips_set_isa_flags if the EF_MIPS_MACH bits are clear.
  4040. (mips_mach_extensions): New array.
  4041. (mips_32bit_flags_p): New function.
  4042. (_bfd_mips_elf_merge_private_bfd_data): Rework architecture checks.
  4043. Use mips_32bit_flags_p to check if one binary is 32-bit and the
  4044. other is 64-bit. When adopting IBFD's architecture, adopt the
  4045. bfd_mach as well as the flags.
  4046. 2003-01-02 Nick Kelsey <nickk@ubicom.com>
  4047. * elf32-ip2k.c: Re-work of linker relaxation code for the ip2k to
  4048. fix internal errors, fix bad code generation, fix incorrect stabs
  4049. information, and improve ability to eliminate redundant page
  4050. instructions. Added code to ip2k_final_link_relocate to self-verify
  4051. the linker relaxation. Fix formatting problems.
  4052. 2002-12-30 Chris Demetriou <cgd@broadcom.com>
  4053. * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case.
  4054. * archures.c (bfd_mach_mipsisa32r2): New define.
  4055. * bfd-in2.h: Regenerate.
  4056. * cpu-mips.c (I_mipsisa32r2): New enum value.
  4057. (arch_info_struct): Add entry for I_mipsisa32r2.
  4058. * elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach)
  4059. (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2.
  4060. (_bfd_mips_elf_final_write_processing): Add
  4061. bfd_mach_mipsisa32r2 case.
  4062. (_bfd_mips_elf_merge_private_bfd_data): Handle merging of
  4063. binaries marked as using MIPS32 Release 2.
  4064. 2002-12-30 Dmitry Diky <diwil@mail.ru>
  4065. * Makefile.am: Add msp430 target.
  4066. * configure.in: Likewise.
  4067. * Makefile.in: Regenerate.
  4068. * configure: Regenerate.
  4069. * archures.c: Add msp430 architecture vector.
  4070. * config.bfd: Likewise.
  4071. * reloc.c: Add msp430 relocs.
  4072. * targets.c: Add msp320 target.
  4073. * cpu-msp430.c: New file: msp430 cpu detection.
  4074. * elf32-msp430.c: New file: msp430 reloc processing.
  4075. * bfd-in2.h: Regenerate.
  4076. * libbfd.h: Regenerate.
  4077. 2002-12-28 Jakub Jelinek <jakub@redhat.com>
  4078. * elf.c (elf_sort_sections): Don't reorder .tbss.
  4079. (assign_file_positions_for_segments): Only adjust off/voff
  4080. for increased alignment in PT_LOAD or PT_NOTE segment,
  4081. but adjust p_filesz for .tbss too. in PT_LOAD consider
  4082. .tbss to have zero memory size.
  4083. (copy_private_bfd_data) [SECTION_SIZE]: Define.
  4084. [IS_CONTAINED_BY_VMA, IS_CONTAINED_BY_LMA]: Use it.
  4085. [INCLUDE_SECTION_IN_SEGMENT]: Only put SHF_TLS sections
  4086. into PT_TLS segment. Never put SHF_TLS sections in
  4087. segments other than PT_TLS or PT_LOAD.
  4088. * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Clear .plt
  4089. sh_entsize.
  4090. 2002-12-23 DJ Delorie <dj@redhat.com>
  4091. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Fix logic reversal.
  4092. 2002-12-23 Alan Modra <amodra@bigpond.net.au>
  4093. * elflink.h (elf_link_output_extsym): Heed strip_discarded.
  4094. 2002-12-23 Nick Clifton <nickc@redhat.com>
  4095. * archures.c (bfd_arch_get_compatible): Add third parameter
  4096. 'accept_unknowns'. Only accept unknown format BFDs if
  4097. accept_unknowns is true, or if the format is "binary".
  4098. * bfd-in2.h: Regenerate.
  4099. 2002-12-21 Nick Clifton <nickc@redhat.com>
  4100. * coff-arm.c (coff_arm_relocate_section): Disable WINCE workaround
  4101. that subtracted 8 from pc relative relocations.
  4102. 2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
  4103. * coff-h8300.c: Fix comment typos.
  4104. * coffcode.h: Likewise.
  4105. * cpu-cris.c: Likewise.
  4106. * elf32-vax.c: Likewise.
  4107. * genlink.h: Likewise.
  4108. * linker.c: Likewise.
  4109. * som.c: Likewise.
  4110. * tekhex.c: Likewise.
  4111. * vms-misc.c: Likewise.
  4112. 2002-12-20 DJ Delorie <dj@redhat.com>
  4113. * reloc.c: Add BFD_RELOC_XSTORMY16_12.
  4114. * libbfd.h: Regenerate.
  4115. * bfd-in2.h: Regenerate.
  4116. * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12.
  4117. (xstormy16_reloc_map): Add R_XSTORMY16_12.
  4118. 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
  4119. * doc/bfdint.texi: Fix typos.
  4120. 2002-12-20 Paul Eggert <eggert@twinsun.com>
  4121. Port to POSIX 1003.1-2001.
  4122. * acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".
  4123. * configure.in (build-warnings): Likewise.
  4124. (Horrible hacks to build DLLs on Windows): Do not rely on "tail -1".
  4125. * aclocal.m4: Regenerate.
  4126. * config.in: Regenerate.
  4127. * configure: Regenerate.
  4128. 2002-12-19 Alan Modra <amodra@bigpond.net.au>
  4129. * coff-h8300.c: Include libiberty.h.
  4130. (h8300_reloc16_extra_cases): Check the hash table creator before
  4131. referencing h8300 specific fields. Stash the hash table pointer
  4132. in a local var. Comment typo fixes.
  4133. (h8300_bfd_link_add_symbols): Likewise.
  4134. * reloc.c (struct reloc_howto_struct): Revise src_mask and
  4135. dst_mask comments.
  4136. * bfd-in2.h: Regenerate.
  4137. 2002-12-18 Alan Modra <amodra@bigpond.net.au>
  4138. * elf32-ppc.c (ppc_elf_relocate_section): Reorganize dynamic reloc
  4139. code a little. Comment on dynamic relocs against section symbols.
  4140. 2002-12-17 Roger Sayle <roger@eyesopen.com>
  4141. * configure.host (ia64-*-hpux*): Support 64 bit targets using
  4142. the HP compiler's "long long".
  4143. 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
  4144. * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_LO16
  4145. and R_XSTORMY16_HI16) howto entries.
  4146. (xstormy16_reloc_map): Map R_XSTORMY16_{LO,HI}16 to BFD_RELOC_{LO,HI}16.
  4147. (xstormy16_info_to_howto_rela): Use R_XSTORMY16_GNU_VTINHERIT to
  4148. determine the start of the second reloc table.
  4149. 2002-12-16 Nathan Tallent <eraxxon@alumni.rice.edu>
  4150. * ecofflink.c: Fix the reading of the debugging information
  4151. of Tru64/Alpha binaries that are produced by recent Compaq
  4152. compilers.
  4153. (mk_fdrtab): Fix error in creating the FDR (file descriptor)
  4154. table.
  4155. (lookup_line): Because of the strange information sometimes
  4156. generated by Compaq's recent compilers, change how the FDR
  4157. table is searched so that PDRs (procedure descriptors) are
  4158. correctly found. Note that this change is really more of a hack;
  4159. however, I have included extensive documentation as to why
  4160. this is the best solution short of an extensive rewrite or
  4161. another hack.
  4162. (fdrtab_lookup): Add comments to explain the algorithm.
  4163. 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
  4164. * elf-m10300.c (elf32_mn10300_link_hash_newfunc): Reorder
  4165. initializers to match struct declaration.
  4166. 2002-12-12 Alan Modra <amodra@bigpond.net.au>
  4167. * dwarf2.c (comp_unit_contains_address): Comment typo fix.
  4168. * elf.c (get_program_header_size): Likewise.
  4169. * elf32-m32r.c (m32r_elf_lo16_reloc): Likewise.
  4170. (m32r_elf_generic_reloc): Likewise.
  4171. * elf32-ppc.c (ppc_elf_howto_init): Likewise.
  4172. * elflink.h (elf_bfd_discard_info): Likewise.
  4173. 2002-12-12 Alan Modra <amodra@bigpond.net.au>
  4174. * elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset
  4175. to DT_JMPREL. Use srelplt input section size for DT_PLTRELSZ and
  4176. DT_RELSZ adjustment, not output section. Avoid writing tags when
  4177. unchanged. Don't assume linker script is sane, adjust DT_REL too.
  4178. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw
  4179. size of srelplt for DT_PLTRELSZ. Use srelplt input section size for
  4180. DT_RELASZ adjustment, not output section. Avoid writing tags when
  4181. unchanged. Adjust DT_RELA.
  4182. * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better
  4183. formatting. Avoid writing tags when unchanged. Adjust DT_RELA.
  4184. 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
  4185. * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide
  4186. addend by 4.
  4187. 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
  4188. * elfxx-mips.c (struct mips_got_entry): New.
  4189. (struct mips_got_info): Added got_entries field.
  4190. (mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions.
  4191. (mips_elf_local_got_index, mips_elf_got_page,
  4192. mips_elf_got16_entry): Re-implement in terms of new...
  4193. (mips_elf_create_local_got_entry): Rewrite to use got_entries.
  4194. Change return type.
  4195. (mips_elf_highest): Warning clean-up.
  4196. (mips_elf_create_got_section): Initialize got_entries.
  4197. (_bfd_mips_elf_check_relocs): Use got_entries to estimate
  4198. local got size.
  4199. (_bfd_mips_elf_size_dynamic_sections): Do not account for
  4200. GOT_PAGE entries, since we now reuse GOT16 entries.
  4201. 2002-12-10 Jason Thorpe <thorpej@wasabisystems.com>
  4202. * aoutx.h (set_section_contents): Allow an otherwise unrepresentable
  4203. read-only section that lies after .text and before .data to be
  4204. written into the output file and included in a_text.
  4205. (translate_to_native_sym_flags): If an otherwise unrepresentable
  4206. section was merged with .text, convert its symbols to N_TEXT
  4207. symbols.
  4208. * libaout.h (aout_section_merge_with_text_p): New macro.
  4209. 2002-12-08 Alan Modra <amodra@bigpond.net.au>
  4210. * bfd-in.h: Comment typo fix. Formatting.
  4211. * bfd-in2.h: Regenerate.
  4212. * coff64-rs6000.c (xcoff64_openr_next_archived_file): Warning fix.
  4213. * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): Prototype.
  4214. * elf64-mmix.c (mmix_dump_bpo_gregs): Warning fix.
  4215. 2002-12-05 Richard Henderson <rth@redhat.com>
  4216. * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21BI.
  4217. Only send PCREL21B though the plt. Fix installed reloc type.
  4218. (elfNN_ia64_relocate_section): Give error for dynamic reloc
  4219. against PCREL22 or PCREL64I; clean up error messages for
  4220. branch relocs.
  4221. 2002-12-04 Kevin Buettner <kevinb@redhat.com>
  4222. * elf64-mips.c (elf64_mips_grok_prstatus, elf64_mips_grok_psinfo):
  4223. New functions.
  4224. (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
  4225. 2002-12-04 David Mosberger <davidm@hpl.hp.com>
  4226. * cpu-ia64-opc.c: Add operand constant "ar.csd".
  4227. 2002-12-04 H.J. Lu <hjl@gnu.org>
  4228. * elfxx-ia64.c (get_local_sym_hash): Use section ID instead of
  4229. BFD address when constructing local name.
  4230. 2002-12-04 Andreas Schwab <schwab@suse.de>
  4231. * elf32-m68k.c (struct elf_m68k_link_hash_table): Add sym_sec
  4232. member.
  4233. (elf_m68k_link_hash_table_create): Initialize it.
  4234. (elf_m68k_check_relocs): Handle symbols that are forced to be
  4235. local due to visibility changes.
  4236. (elf_m68k_adjust_dynamic_symbol): Likewise.
  4237. (elf_m68k_size_dynamic_sections): Likewise.
  4238. (elf_m68k_discard_copies): Likewise.
  4239. (elf_m68k_relocate_section): Likewise.
  4240. 2002-12-04 Alan Modra <amodra@bigpond.net.au>
  4241. * elf64-ppc.c (ppc64_elf_edit_opd): Correct typo.
  4242. 2002-12-04 Alan Modra <amodra@bigpond.net.au>
  4243. * srec.c (srec_write_symbols): Restore '$' prefix to address
  4244. accidentally removed in 2002-04-04 change.
  4245. (srec_get_symtab): Use 0 instead of `(long) FALSE'.
  4246. 2002-12-03 Nick Clifton <nickc@redhat.com>
  4247. * elf32-ppc.c (apuinfo_list_init): New function.
  4248. (apuinfo_list_add): New function: Add a value to the list.
  4249. (apuinfo_list_length): New function: Return the number of
  4250. values on the list.
  4251. (apuinfo_list_element): New function: Return a value on the
  4252. list.
  4253. (apuinfo_list_finish): New function: Free the resources used
  4254. by the list.
  4255. (ppc_elf_begin_write_processing): New function. Scan the
  4256. input bfds for apuinfo sections.
  4257. (ppc_elf_write_section): New function: Delay the creation of
  4258. the contents of an apuinfo section in an output bfd.
  4259. (ppc_elf_final_write_processing): New function. Create the
  4260. contents of an apuinfo section in an output bfd.
  4261. (elf_backend_begin_write_processing): Define.
  4262. (elf_backend_final_write_processing): Define.
  4263. (elf_backend_write_section): Define.
  4264. 2002-12-03 Richard Henderson <rth@redhat.com>
  4265. * cpu-ia64-opc.c (elf64_ia64_operands): Add ldxmov entry.
  4266. 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
  4267. Fix PR savannah/1417:
  4268. * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Don't adjust
  4269. branch if it goes to the start of the deleted region.
  4270. 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
  4271. * bfd-in2.h (bfd_mach_m6812): Rebuild.
  4272. * archures.c (bfd_mach_m6812_default, bfd_mach_m6812,
  4273. bfd_mach_m6812s): Declare.
  4274. * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): New function.
  4275. (_bfd_m68hc12_elf_set_private_flags): Call it.
  4276. (_bfd_m68hc12_elf_print_private_bfd_data): Report processor version.
  4277. (_bfd_m68hc12_elf_merge_private_bfd_data): Merge the flags and
  4278. report microcontroller incompatibilities (HC12 vs HCS12).
  4279. (elf_backend_object_p): Update.
  4280. 2002-11-30 Alan Modra <amodra@bigpond.net.au>
  4281. * bfd-in.h (TRUE_FALSE_ALREADY_DEFINED, BFD_TRUE_FALSE): Delete.
  4282. (enum bfd_boolean, boolean): Delete.
  4283. (bfd_boolean): Typedef to an int.
  4284. (FALSE, TRUE): Define.
  4285. * aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c, aout-cris.c,
  4286. aout-encap.c, aout-ns32k.c, aout-target.h, aout-tic30.c, aoutf1.h,
  4287. aoutx.h, archive.c, archive64.c, archures.c, bfd-in.h, bfd.c, bfdwin.c,
  4288. binary.c, bout.c, cache.c, cisco-core.c, coff-a29k.c, coff-alpha.c,
  4289. coff-apollo.c, coff-arm.c, coff-aux.c, coff-h8300.c, coff-h8500.c,
  4290. coff-i386.c, coff-i860.c, coff-i960.c, coff-ia64.c, coff-m68k.c,
  4291. coff-m88k.c, coff-mcore.c, coff-mips.c, coff-or32.c, coff-ppc.c,
  4292. coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, coff-tic30.c,
  4293. coff-tic4x.c, coff-tic54x.c, coff-tic80.c, coff-w65.c, coff-we32k.c,
  4294. coff-z8k.c, coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c,
  4295. corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c,
  4296. cpu-cris.c, cpu-d10v.c, cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c,
  4297. cpu-h8300.c, cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c,
  4298. cpu-i860.c, cpu-i960.c, cpu-ia64.c, cpu-ip2k.c, cpu-m10200.c,
  4299. cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c, cpu-m68hc12.c, cpu-m68k.c,
  4300. cpu-m88k.c, cpu-mcore.c, cpu-mips.c, cpu-mmix.c, cpu-ns32k.c,
  4301. cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c,
  4302. cpu-rs6000.c, cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c,
  4303. cpu-tic4x.c, cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c,
  4304. cpu-w65.c, cpu-we32k.c, cpu-xstormy16.c, cpu-z8k.c, dwarf1.c,
  4305. dwarf2.c, ecoff.c, ecofflink.c, efi-app-ia32.c, efi-app-ia64.c,
  4306. elf-bfd.h, elf-eh-frame.c, elf-hppa.h, elf-m10200.c, elf-m10300.c,
  4307. elf-strtab.c, elf.c, elf32-arc.c, elf32-arm.h, elf32-avr.c,
  4308. elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c, elf32-fr30.c,
  4309. elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c, elf32-hppa.h,
  4310. elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
  4311. elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c,
  4312. elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c,
  4313. elf32-pj.c, elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-sh64-com.c,
  4314. elf32-sh64.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
  4315. elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c,
  4316. elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
  4317. elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c,
  4318. elfarm-oabi.c, elfcode.h, elfcore.h, elflink.c, elflink.h,
  4319. elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
  4320. elfxx-target.h, format.c, freebsd.h, genlink.h, hash.c, hp300hpux.c,
  4321. hppabsd-core.c, hpux-core.c, i386aout.c, i386linux.c, i386lynx.c,
  4322. i386mach3.c, i386msdos.c, i386os9k.c, ieee.c, ihex.c, irix-core.c,
  4323. libaout.h, libbfd-in.h, libbfd.c, libcoff-in.h, libecoff.h, libieee.h,
  4324. libnlm.h, liboasys.h, libpei.h, libxcoff.h, linker.c, lynx-core.c,
  4325. m68klinux.c, m68klynx.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c,
  4326. mmo.c, netbsd-core.c, netbsd.h, nlm.c, nlm32-alpha.c, nlm32-i386.c,
  4327. nlm32-ppc.c, nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
  4328. pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c, pe-mcore.c, pe-mips.c,
  4329. pe-sh.c, peXXigen.c, pef.c, pei-arm.c, pei-i386.c, pei-mcore.c,
  4330. pei-mips.c, pei-sh.c, peicode.h, ppcboot.c, ptrace-core.c, reloc.c,
  4331. reloc16.c, riscix.c, rs6000-core.c, sco5-core.c, section.c, simple.c,
  4332. som.c, som.h, sparclinux.c, sparclynx.c, srec.c, stabs.c, sunos.c,
  4333. syms.c, targets.c, tekhex.c, ticoff.h, trad-core.c, versados.c,
  4334. vms-gsd.c, vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h,
  4335. xcoff-target.h, xcofflink.c, xsym.c, xsym.h: Replace boolean with
  4336. bfd_boolean, true with TRUE, false with FALSE. Simplify comparisons
  4337. of bfd_boolean vars with TRUE/FALSE. Formatting.
  4338. * bfd-in2.h, libbfd.h, libcoff.h: Regenerate
  4339. 2002-11-28 Alan Modra <amodra@bigpond.net.au>
  4340. * elf-bfd.h: Replace occurrences of Elf32_Internal_* and
  4341. Elf64_Internal_* with Elf_Internal_*. Replace Elf_Internal_Rel
  4342. with Elf_Internal_Rela.
  4343. * elf-hppa.h, elf-m10200.c, elf-m10300.c, elf32-arc.c, elf32-arm.h,
  4344. elf32-avr.c, elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c,
  4345. elf32-fr30.c, elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c,
  4346. elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
  4347. elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c,
  4348. elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c,
  4349. elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-v850.c, elf32-vax.c,
  4350. elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c,
  4351. elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c,
  4352. elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c, elfarm-oabi.c,
  4353. elfcode.h, elflink.h, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c: Ditto.
  4354. * elf-hppa.h (elf_hppa_internal_shdr): Delete. Use Elf_Internal_Shdr
  4355. throughout instead.
  4356. * elf.c (_bfd_elf_no_info_to_howto_rel): Delete.
  4357. * elfcode.h (elf_swap_reloca_in): Pass source operand as a bfd_byte *.
  4358. Remove INLINE keyword.
  4359. (elf_swap_reloc_in): Likewise. Also clear r_addend.
  4360. (elf_swap_reloc_out, elf_swap_reloca_out): Pass destination operand
  4361. as a bfd_byte *.
  4362. (elf_write_relocs): Consolidate REL and RELA code.
  4363. (elf_slurp_reloc_table_from_section): Simplify REL code.
  4364. (NAME(_bfd_elf,size_info)): Populate reloc swap entries.
  4365. * elf-bfd.h (MAX_INT_RELS_PER_EXT_REL): Define.
  4366. * elflink.h (elf_link_read_relocs_from_section): Consolidate REL and
  4367. RELA code.
  4368. (elf_link_adjust_relocs): Likewise. Don't malloc space for temp
  4369. reloc array, use a fixed size of MAX_INT_RELS_PER_EXT_REL.
  4370. (elf_link_output_relocs): Likewise.
  4371. (elf_reloc_link_order): Likewise.
  4372. (elf_finish_pointer_linker_section): Likewise.
  4373. (struct elf_link_sort_rela): Remove union.
  4374. (elf_link_sort_cmp1): Update to suit.
  4375. (elf_link_sort_cmp2): Here too.
  4376. (elf_link_sort_relocs): Consolidate REL and RELA code. Fix memory
  4377. over-allocation for int_rels_per_ext_rel != 1 case.
  4378. * elf32-arm.h: Update all bfd_elf32_swap_reloc_out calls.
  4379. * elf32-i386.c: Likewise.
  4380. * elf32-cris.c: Likewise for bfd_elf32_swap_reloca_out.
  4381. * elf32-hppa.c, elf32-i370.c, elf32-m68k.c, elf32-ppc.c, elf32-s390.c,
  4382. elf32-sh.c, elf32-vax.c, elfxx-mips.c: Likewise.
  4383. * elf64-alpha.c: Likewise for bfd_elf64_swap_reloca_out.
  4384. * elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c,
  4385. elf64-sparc.c, elf64-x86-64.c: Likewise.
  4386. * elfxx-ia64.c: Likewise for bfd_elfNN_swap_reloca_out.
  4387. * elfxx-mips.c (sort_dynamic_relocs): Likewise for
  4388. bfd_elf32_swap_reloc_in.
  4389. * elf32-arm.h: Update elf32_arm_info_to_howto calls.
  4390. * elf32-mips.c: Likewise for mips_info_to_howto_rel.
  4391. (mips_elf64_swap_reloc_in): Zero r_addend.
  4392. (mips_elf64_be_swap_reloc_in): Likewise.
  4393. (mips_elf64_slurp_one_reloc_table): Simplify.
  4394. * elf64-alpha.c (alpha_elf_size_info): Populate reloc swap entries.
  4395. * elf64-hppa.c (hppa64_elf_size_info): Likewise.
  4396. * elf64-sparc.c (sparc64_elf_size_info): Likewise.
  4397. 2002-11-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4398. * elf32-sh.c (sh_elf_relocate_section): Don't complain about
  4399. unresolved debugging relocs in dynamic applications.
  4400. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  4401. 2002-11-26 Alan Modra <amodra@bigpond.net.au>
  4402. * elf-eh-frame.c (ENSURE_NO_RELOCS): Disregard R_*_NONE relocs.
  4403. (_bfd_elf_discard_section_eh_frame): Don't discard duplicate CIEs
  4404. on a relocatable link. Comment typos.
  4405. * elf.c (_bfd_elf_link_hash_newfunc): Assign elements of structure
  4406. in the order they are declared. Clear elf_hash_value too.
  4407. (_bfd_elf_link_hash_table_init): Likewise assign in order. Clear
  4408. eh_info and tls_segment.
  4409. * elflink.h (elf_link_input_bfd <emit_relocs>): Keep reloc offsets
  4410. sorted when discarding relocs by turning them into R_*_NONE.
  4411. * libbfd.c (warn_deprecated): Comment spelling.
  4412. * po/SRC-POTFILES.in: Regenerate.
  4413. 2002-11-21 Richard Henderson <rth@redhat.com>
  4414. * elflink.h (elf_link_add_object_symbols): Don't overwrite the
  4415. arch's st_other bits when merging visibilities.
  4416. (elf_link_output_extsym): Tidy clearing of visibility field.
  4417. 2002-11-21 Alan Modra <amodra@bigpond.net.au>
  4418. * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
  4419. (SWAP_OUT_RELOC_OFFSET): Define.
  4420. 2002-11-20 Alexandre Oliva <aoliva@redhat.com>
  4421. * elf.c (_bfd_elf_link_hash_table_init): Make sure
  4422. can_refcount is properly extended to the type of
  4423. init_refcount.
  4424. 2002-11-19 Alexandre Oliva <aoliva@redhat.com>
  4425. * elfxx-mips.c (MIPS_RELOC_RELA_P): New macro.
  4426. (_bfd_mips_elf_relocate_section): Use it.
  4427. * elfxx-mips.c (MNAME): New macro.
  4428. (_bfd_mips_elf_check_relocs): Use it.
  4429. (_bfd_mips_elf_discard_info): Likewise.
  4430. (_bfd_mips_elf_final_link): Likewise.
  4431. 2002-11-19 Alan Modra <amodra@bigpond.net.au>
  4432. * elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
  4433. rel_hdr.sh_size too.
  4434. 2002-11-18 Klee Dienes <kdienes@apple.com>
  4435. * Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
  4436. (BFD32_LIBS_CFILES): Add bfdwin.c, bfdio.c.
  4437. (BFD_H_FILES): Add bfdwin.c, bfdio.c.
  4438. (LIBBFD_H_FILES): Add bfdwin.c, bfdio.c.
  4439. Add dependencies for bfdwin.c, bfdio.c.
  4440. * bfd.c: Remove bfd_get_mtime, bfd_get_size.
  4441. * libbfd.c: Remove real_read, bfd_bread, _bfd_window_internal,
  4442. bfd_init_window, bfd_free_window, bfd_get_file_window, bfd_bwrite,
  4443. bfd_tell, bfd_flush, bfd_stat, bfd_seek.
  4444. * bfdio.c: New file. Contains real_read, bfd_bread, bfd_write,
  4445. bfd_tell, bfd_flush, bfd_stat, bfd_seek, bfd_ge_mtime,
  4446. bfd_get_size (moved from libbfd.c and bfd.c).
  4447. * bfdwin.c New file. Contains _bfd_window_internal,
  4448. bfd_init_window, bfd_free_window, bfd_get_file_window (moved from
  4449. libbfd.c and bfd.c).
  4450. * po/SRC-POTFILES.in: Regenerate.
  4451. * po/bfd.pot: Regenerate.
  4452. * libbfd.h: Regenerate.
  4453. * bfd-in2.h: Regenerate.
  4454. * aclocal.m4: Regenerate.
  4455. * Makefile.in: Regenerate.
  4456. * configure: Regenerate.
  4457. 2002-11-18 Klee Dienes <kdienes@apple.com>
  4458. * bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
  4459. 2002-11-15 Kazu Hirata <kazu@cs.umass.edu>
  4460. * coff-h8300.c (h8300_reloc16_estimate): Do not optimize away
  4461. jsr after a short jump.
  4462. * elf32-h8300.c (elf32_h8_relax_section): Likewise.
  4463. 2002-11-15 Klee Dienes <kdienes@apple.com>
  4464. * pef.c (bfd_pef_convert_architecture): Move declaration of
  4465. ARCH_POWERPC and ARCH_M68K to the start of the function.
  4466. 2002-11-14 Svein E. Seldal <Svein.Seldal@solidas.com>
  4467. * coff-tic4x.c (tic4x_howto_table): Formatting fixup
  4468. 2002-11-14 Hans-Peter Nilsson <hp@bitrange.com>
  4469. * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
  4470. For bpo_gregs_section->contents, allocate _raw_size, not
  4471. _cooked_size.
  4472. 2002-11-13 Klee Dienes <kdienes@apple.com>
  4473. * config.bfd: Add entries for powerpc-*-darwin and cousins.
  4474. 2002-11-13 H.J. Lu <hjl@gnu.org>
  4475. * elfcode.h (elf_object_p): Don't restore abfd->arch_info.
  4476. 2002-11-13 Klee Dienes <kdienes@apple.com>
  4477. Alan Modra <amodra@bigpond.net.au>
  4478. * bfd.c (struct bfd_preserve): New.
  4479. (bfd_preserve_save): New function.
  4480. (bfd_preserve_restore): Ditto.
  4481. (bfd_preserve_finish): Ditto.
  4482. * bfd-in2.h: Regenerate.
  4483. * mach-o.c: Formatting.
  4484. (bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
  4485. (bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
  4486. (bfd_mach_o_core_p): Ditto.
  4487. (bfd_mach_o_scan): Pass in mdata.
  4488. * mach-o.h (bfd_mach_o_scan): Update prototype.
  4489. * pef.c: Formatting.
  4490. (bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
  4491. (bfd_pef_xlib_object_p): Ditto.
  4492. (bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
  4493. * pef.h (bfd_pef_scan): Update prototype.
  4494. * xsym.c: Formatting, K&R fixes.
  4495. (bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
  4496. (bfd_sym_scan): New function split out from bfd_sym_object_p.
  4497. * xsym.h (bfd_sym_scan): Declare.
  4498. * elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
  4499. * elfcore.h (elf_core_file_p): Likewise.
  4500. * targets.c (_bfd_target_vector): Revert 2002-11-08 change.
  4501. 2002-11-12 Nick Clifton <nickc@redhat.com>
  4502. * po/da.po: Updated Danish translation.
  4503. 2002-11-12 Alan Modra <amodra@bigpond.net.au>
  4504. * elflink.h (elf_link_add_object_symbols): Optimize stabs for
  4505. relocatable link too.
  4506. (elf_link_input_bfd): When emitting relocs, adjust offsets for
  4507. eh_frame and stab sections. Zap deleted relocs.
  4508. (elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
  4509. (elf_bfd_discard_info): Run for relocatable link too.
  4510. * elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
  4511. Handle ld -r case.
  4512. (ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
  4513. * elf64-ppc.h (ppc64_elf_edit_opd): Declare.
  4514. * elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
  4515. (struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
  4516. (struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
  4517. (enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
  4518. (struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
  4519. (struct elf_link_hash_table): Add eh_info.
  4520. (struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
  4521. (_bfd_elf_discard_section_eh_frame): Update prototype.
  4522. (_bfd_elf_discard_section_eh_frame_hdr): Likewise.
  4523. (_bfd_elf_write_section_eh_frame): Likewise.
  4524. (_bfd_elf_write_section_eh_frame_hdr): Likewise.
  4525. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
  4526. param. Get "hdr_info" from link hash table.
  4527. (_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
  4528. header section from link hash table. Save header section to elf_tdata.
  4529. (_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
  4530. header section from link hash table. Don't alloc hdr_info. Clear
  4531. hdr_sec instead of setting "strip".
  4532. (_bfd_elf_eh_frame_section_offset): Formatting.
  4533. (_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
  4534. Get header section from link hash table.
  4535. (_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
  4536. Get header section from link hash table.
  4537. * elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
  4538. (get_program_header_size): Likewise.
  4539. (_bfd_elf_section_offset): Formatting.
  4540. * elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
  4541. section pointer in link hash table.
  4542. (elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
  4543. and _bfd_elf_write_section_eh_frame calls. Update comment about
  4544. eh_frame entries.
  4545. (elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
  4546. _bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
  4547. * po/SRC-POTFILES.in: Regenerate.
  4548. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
  4549. relocs for discarded FDEs. Remove dead code.
  4550. (_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
  4551. * elflink.h (elf_bfd_discard_info): Don't save edited relocs.
  4552. Tidy conditions under which stabs are edited. Formatting.
  4553. * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
  4554. from discarded relocs.
  4555. * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
  4556. section adjustments after testing magic values.
  4557. 2002-11-12 Thomas Moestl <tmm@FreeBSD.org>
  4558. * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
  4559. references to large plt symbols.
  4560. 2002-11-12 Klee Dienes <kdienes@apple.com>
  4561. * mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
  4562. looking for an unused section name.
  4563. 2002-11-11 Kazu Hirata <kazu@cs.umass.edu>
  4564. * coff-h8300.c: Fix formatting.
  4565. * elf32-h8300.c: Likewise.
  4566. * reloc16.c: Likewise.
  4567. 2002-11-09 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
  4568. * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
  4569. section when dynamic section unused; _bfd_strip_section_from_output
  4570. instead.
  4571. 2002-11-08 Alan Modra <amodra@bigpond.net.au>
  4572. * targets.c (_bfd_target_vector): Disable pef_vec, pef_xlib_vec
  4573. and sym_vec.
  4574. * dwarf2.c: Revert last change.
  4575. 2002-11-07 Michal Ludvig <mludvig@suse.cz>
  4576. * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
  4577. _bfd_dwarf2_find_nearest_line): Use
  4578. bfd_simple_get_relocated_section_contents() instead of
  4579. bfd_get_section_contents().
  4580. * reloc.c (bfd_perform_relocation): Add sanity check.
  4581. * simple.c (simple_get_relocated_section_contents): If the section
  4582. does not have any relocs associated with it, just return the
  4583. unadjusted contents.
  4584. 2002-11-07 Hans-Peter Nilsson <hp@axis.com>
  4585. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT,
  4586. case R_CRIS_32_GOT>: Correct test for filling in constant .got
  4587. contents, enabling for a non-DSO, for symbols defined in the
  4588. program with --export-dynamic.
  4589. 2002-11-07 Alan Modra <amodra@bigpond.net.au>
  4590. * elf64-ppc.c: Comment typo fixes.
  4591. (ppc64_elf_merge_private_bfd_data): Allow BFD_ENDIAN_UNKNOWN input.
  4592. 2002-11-07 Nick Clifton <nickc@redhat.com>
  4593. * po/da.po: Updated Danish translation.
  4594. 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
  4595. * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Generate
  4596. exactly three internal relocs per external reloc. Set reloc_count
  4597. to the external reloc count.
  4598. 2002-11-06 Klee Dienes <kdienes@apple.com>
  4599. * coff-stgo32.c (stub_bytes): Mark as const.
  4600. Fix comment formatting.
  4601. 2002-11-06 Klee Dienes <kdienes@apple.com>
  4602. * Makefile.am (BFD32_BACKENDS): Add mach-o.lo, pef.lo, and
  4603. xsym.lo.
  4604. (BFD32_BACKENDS_CFILES): Add mach-o.c, pef.c, and xsym.c.
  4605. (SOURCE_HFILES): Add mach-o.h, pef.h, pef-traceback.h, xsym.h
  4606. * archures.c (enum bfd_architecture): Add bfd_arch_m98k.
  4607. * bfd.c (struct bfd): Add private data for mach-o, pef, and sym.
  4608. * targets.c (enum bfd_flavour): Add flavours for mach-o, pef, and
  4609. sym.
  4610. (_bfd_target_vector): Add target vectors for mach-o, pef, and sym.
  4611. * Makefile.in: Regenerate.
  4612. * doc/Makefile.in: Regenerate.
  4613. * bfd-in2.h: Regenerate.
  4614. * xsym.c: New file. Contains support for the Apple/Metrowerks
  4615. xSYM debugging format.
  4616. * xsym.h: New file.
  4617. * pef.c: New file. Contains support for the Apple Code Fragment
  4618. Manager Preferred Executable Format
  4619. * pef.h: New file.
  4620. * pef-traceback.h: New file. Contains support for parsing PowerPC
  4621. traceback tables as used by PEF executables (and perhaps other
  4622. systems as well).
  4623. * mach-o.c: New file. Contains support for the Mach-O object file
  4624. format.
  4625. * mach-o.h: New file.
  4626. * mach-o-target.c: New file. Declares the mach-o targets
  4627. themselves. Included three times by mach-o.c; each time with a
  4628. different set of macros set.
  4629. 2002-11-06 Graeme Peterson <gp@qnx.com>
  4630. * Makefile.am: Remove entries for elf32-qnx.[ch].
  4631. * Makefile.in: Regenerate.
  4632. * config.bfd: Change arm-nto to use bfd_elf32_{big|little}arm_vec,
  4633. ppc-nto to use bfd_elf32_powerpc{le}_vec, sh-nto to use
  4634. bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
  4635. * configure.in: Remove support for bfd_elf32_sh{l}qnx_vec,
  4636. bfd_elf32_powerpc{le}qnx_vec, bfd_elf32_{big|little}armqnx_vec,
  4637. and bfd_elf32_i386qnx_vec, and removed elf32-qnx.lo from other targets.
  4638. bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
  4639. * configure: Regenerate.
  4640. * elf32-qnx.c: Remove.
  4641. * elf32-qnx.h: Remove.
  4642. * elf.c: Remove calls to QNX specific set_nonloadable_filepos,
  4643. is_contained_by_filepos, and copy_private_bfd_data_p.
  4644. * elf-bfd.h (struct elf_backend_data): Remove set_nonloadable_filepos,
  4645. is_contained_by_filepos, and copy_private_bfd_data_p.
  4646. * elf32-i386.c: Remove QNX extended bfd support.
  4647. * elf32-ppc.c: Remove QNX extended bfd support.
  4648. * elf32-sh.c: Remove QNX extended bfd support.
  4649. * elfarm-nabi.c: Remove QNX extended bfd support.
  4650. * targets.c: Remove qnx vectors.
  4651. * elfxx-target.h (elf_backend_set_nonloadable_filepos): Remove
  4652. (elf_backend_is_contained_by_filepos): Remove.
  4653. (elf_backend_copy_private_bfd_data_p): Remove.
  4654. * po/SRC-POTFILES.in: Regenerate.
  4655. 2002-11-06 David O'Brien <obrien@FreeBSD.org>
  4656. Alan Modra <amodra@bigpond.net.au>
  4657. * elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of
  4658. dynamic relocs against section symbols for the output section vma.
  4659. 2002-11-05 Alan Modra <amodra@bigpond.net.au>
  4660. * elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
  4661. t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
  4662. 2002-11-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4663. Alan Modra <amodra@bigpond.net.au>
  4664. * config.bfd (sh-*-linux*): Use bfd_elf*_sh64*lin_vec as sh64
  4665. vectors in target_selvecs.
  4666. (shle-*-netbsdelf*): Use bfd_elf*_sh64*nbsd_vec as sh64 vectors
  4667. in target_selvecs.
  4668. (sh-*-netbsdelf*): Likewise.
  4669. * configure.in (assocvecs): New variable. Handle assocvecs like
  4670. selvecs.
  4671. * configure: Regenerate.
  4672. * format.c (bfd_check_format_matches): Store bfd_target pointers
  4673. in matching_vector instead of target names. Select first target
  4674. from bfd_associated_vector that matches a list of ambiguous targets.
  4675. * targets.c (_bfd_associated_vector): New array.
  4676. (bfd_associated_vector): New variable.
  4677. (_bfd_target_vector): Add bfd_elf*_sh64*lin_vec.
  4678. * libbfd-in.h (bfd_associated_vector): Declare.
  4679. * libbfd.h: Regenerate.
  4680. 2002-11-05 Elias Athanasopoulos <eathan@otenet.gr>
  4681. * vms-gsd.c (_bfd_vms_write_gsd): Check that symbol->udata.p is
  4682. non-NULL before dereferencing.
  4683. 2002-11-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4684. * vms.c (vms_object_p): Restore the start address when returning
  4685. NULL.
  4686. 2002-11-04 Alan Modra <amodra@bigpond.net.au>
  4687. Hans-Peter Nilsson <hp@axis.com>
  4688. * elflink.h (struct elf_final_link_info): Add shndxbuf_size.
  4689. (elf_bfd_final_link): Don't bother zeroing symtab_hdr fields.
  4690. Set up a larger symshndxbuf, and write it out. Free it on
  4691. exit rather than freeing symbuf twice. Correct section index
  4692. on output section symbol loop.
  4693. (elf_link_output_sym): Accumulate symbol extension section
  4694. indices, reallocating symshndxbuf rather than writing it out.
  4695. (elf_link_flush_output_syms): Don't flush symshndxbuf.
  4696. * elf.c (assign_section_numbers): Init i_shdrp to all zero.
  4697. Use bfd_zalloc to clear i_shdrp[0] too.
  4698. 2002-11-03 Stephen Clarke <stephen.clarke@earthling.net>
  4699. * elf32-sh64-com.c (sh64_address_in_cranges): Use
  4700. _raw_size of cranges section if _cooked_size not yet set.
  4701. 2002-11-03 Hans-Peter Nilsson <hp@axis.com>
  4702. * elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters
  4703. for bfd_elf32_swap_symbol_out.
  4704. 2002-10-31 David O'Brien <obrien@FreeBSD.org>
  4705. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
  4706. signed and unsigned in comparison.
  4707. 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
  4708. * coffcode.h: Remove extraneous '\'.
  4709. 2002-10-28 H.J. Lu <hjl@gnu.org>
  4710. * Makefile.am (targets.lo): Depend on Makefile instead of
  4711. config.status.
  4712. (archures.lo): Likewise.
  4713. * Makefile.in: Regenerated.
  4714. 2002-10-25 Jason Thorpe <thorpej@wasabisystems.com>
  4715. * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Add
  4716. bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to
  4717. targ_selvecs.
  4718. 2002-10-25 Jim Wilson <wilson@redhat.com>
  4719. * elf64-sh64.c (sh_elf64_relocate_section): Call
  4720. _bfd_elf_rela_local_sym. Handle relocs against STT_SECTION symbol
  4721. of SHF_MERGE section.
  4722. 2002-10-25 Hans-Peter Nilsson <hp@axis.com>
  4723. * simple.c: Correct placement of ATTRIBUTE_UNUSED.
  4724. 2002-10-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
  4725. * aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to
  4726. unsigned int. Cast RELOC_BASE10, RELOC_BASE13 and RELOC_BASE22 to
  4727. unsigned int.
  4728. (NAME(aout,final_link)): Cast enum used in assignment.
  4729. (aout_link_write_symbols): Cast enums in comparisons, int values to
  4730. boolean, enums in assignments to int.
  4731. (aout_link_input_section_std): Cast rel->r_index to unsigned int.
  4732. (aout_link_input_section_ext): Likewise. Cast enums used in
  4733. comparisons with unsigned ints.
  4734. (aout_link_reloc_link_order): Cast enum to int in assignment.
  4735. * archive.c (_bfd_generic_read_ar_hdr_mag): Cast result of memchr
  4736. calls to char *.
  4737. * bfd-in.h (bfd_set_section_vma): Cast enum true to unsigned int in
  4738. assignment.
  4739. * bfd-in2.h (bfd_set_section_vma): Likewise.
  4740. * bfd.c (bfd_record_phdr): Cast enums in assignments.
  4741. * binary.c (bfd_alloc): Cast enum to long.
  4742. * coffgen.c (_bfd_coff_is_local_label_name): Cast return to boolean.
  4743. * dwarf2.c (read_abbrevs): Add casts to enum types.
  4744. (read_attribute_value): Likewise.
  4745. (arange_add): Cast result of bfd_zalloc call.
  4746. (comp_unit_contains_address): Return true and false.
  4747. (comp_unit_find_nearest_line): Cast return to boolean.
  4748. * format.c (bfd_check_format_matches, bfd_set_format): Likewise.
  4749. * gen-aout.c: define macro '_' if not defined.
  4750. * libbfd.c (bfd_realloc): Cast malloc and realloc to PTR.
  4751. (bfd_bwrite): Cast bfd_realloc to bfd_byte *.
  4752. (bfd_write_bigendian_4byte_int): Cast return to boolean.
  4753. (bfd_seek): Cast bfd_realloc to bfd_byte *.
  4754. (bfd_generic_is_local_label_name): Cast return to boolean.
  4755. * libcoff.h (_bfd_coff_adjust_symndx): Remove extraneous '\'.
  4756. * linker.c (_bfd_link_hash_newfunc): Cast bfd_hash_allocate result to
  4757. struct bfd_hash_entry *.
  4758. (_bfd_generic_link_hash_newfunc): likewise.
  4759. (_bfd_generic_final_link): Cast enum to unsigned int.
  4760. * merge.c (sec_merge_emit): Cast return to boolean.
  4761. (merge_strings): Add casts to const unsigned char *.
  4762. * reloc.c (bfd_get_reloc_code_name): Cast enums in comparison to int.
  4763. (bfd_generic_get_relocated_section_content): Cast enum to unsigned int.
  4764. * section.c (bfd_section_hash_newfunc): Cast bfd_hash_allocate result
  4765. to struct bfd_hash_entry *.
  4766. (bfd_set_section_content): Add cast to PTR in comparison.
  4767. * simple.c (simple_dummy_warning, simple_dummy_undefined_symbol,
  4768. simple_dummy_reloc_overflow, simple_dummy_reloc_dangerous,
  4769. simple_dummy_unattached_reloc,
  4770. bfd_simple_get_relocated_section_contents): Add K&R declarations and
  4771. function definitions.
  4772. * srec.c (S3Forced): Initialize to false.
  4773. (srec_get_symtab): Cast return value from bfd_alloc to asymbol *.
  4774. * stabs.c (_bfd_link_section_stabs): Cast enum to int in comparisons.
  4775. (_bfd_discard_section_stabs): Likewise. Also cast return to boolean.
  4776. * syms.c (bfd_is_undefined_symclass): Cast return to boolean.
  4777. (_bfd_stab_section_find_nearest_line): Cast enum to bfd_byte in
  4778. comparisons.
  4779. 2002-10-23 Jakub Jelinek <jakub@redhat.com>
  4780. * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic
  4781. relocs into shared lib non-allocated reloc sections.
  4782. 2002-10-23 Nathan Tallent <eraxxon@alumni.rice.edu>
  4783. * dwarf2.c (add_line_info): Ensure that the line_info_table is
  4784. sorted even when given an out-of-order line sequence.
  4785. (lookup_address_in_line_info_table): When an exact VMA match is
  4786. not found, return line information with the closest VMA.
  4787. 2002-10-23 Ross Alexander <ross.alexander@uk.neceur.com>
  4788. * elf64-hppa.c: Force DT_FLAGS to always be set. Required by
  4789. HPUX 11.00 patch PHSS_26559.
  4790. 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
  4791. * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't move
  4792. the options section into a separate section unless IRIX 6
  4793. compatibility is enabled.
  4794. 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
  4795. * elflink.h (struct elf_link_sort_rela): Turn rel and rela
  4796. into arrays.
  4797. (elf_link_sort_cmp1, elf_link_sort_cmp2): Adjust.
  4798. (elf_link_sort_relocs): Likewise. Take int_rels_per_ext_rel
  4799. into account.
  4800. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Compose
  4801. R_MIPS_REL32 with R_MIPS64 if ABI_64_P.
  4802. 2002-10-21 Graeme Peterson <gp@qnx.com>
  4803. * targets.c (_bfd_target_vector): Add missing qnx vectors.
  4804. 2002-10-21 Alan Modra <amodra@bigpond.net.au>
  4805. * targets.c (bfd_target_list): Don't return the default target twice.
  4806. 2002-10-21 Elias Athanasopoulos <eathan@otenet.gr>
  4807. * archive.c (_bfd_archive_bsd_update_armap_timestamp): Replace
  4808. perror with bfd_perror.
  4809. 2002-10-19 H.J. Lu <hjl@gnu.org>
  4810. * elflink.h (elf_link_add_object_symbols): Correctly handle
  4811. DT_RPATH and DT_RUNPATH.
  4812. 2002-10-19 Mark Kettenis <kettenis@gnu.org>
  4813. * elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.
  4814. 2002-10-17 Denis Chertykov <denisc@overta.ru>
  4815. * elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code
  4816. for ip2k port.
  4817. 2002-10-17 Alan Modra <amodra@bigpond.net.au>
  4818. * elfxx-target.h (USE_REL): Don't define as 1.
  4819. * elf32-arm.h (USE_REL): Provide a default define of 0.
  4820. Use #if rather than #ifdef when testing USE_REL.
  4821. * elf32-m32r.c: Likewise.
  4822. * elf32-arc.c (USE_REL): Define as 1.
  4823. * elf32-d10v.c (USE_REL): Likewise.
  4824. * elf32-m32r.c (USE_REL): Likewise.
  4825. * elf32-m68hc11.c (USE_REL): Likewise.
  4826. * elf32-m68hc12.c (USE_REL): Likewise.
  4827. * elf32-or32.c (USE_REL): Likewise.
  4828. * elfarm-nabi.c (USE_REL): Likewise.
  4829. 2002-10-16 Jakub Jelinek <jakub@redhat.com>
  4830. * config.bfd (s390-*-linux*): Add targ64_selvecs.
  4831. (s390x-*-linux*): Add targ_selvecs.
  4832. 2002-10-16 Alan Modra <amodra@bigpond.net.au>
  4833. * Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
  4834. elf32-i386-fbsd.lo, elf32-i386qnx.lo, elf32-ppcqnx.lo,
  4835. elf32-sh-lin.lo, elf32-sh64-lin.lo, elf32-sh-nbsd.lo,
  4836. elf32-sh64-nbsd.lo, elf32-shqnx.lo. Add elf32-qnx.lo.
  4837. (BFD32_BACKENDS_CFILES): Likewise for corresponding C files.
  4838. (BFD64_BACKENDS): Remove elf64-sh64-lin.lo, elf64-sh64-nbsd.lo.
  4839. (BFD64_BACKENDS_CFILES): Likewise for corresponding C files.
  4840. (SOURCE_HFILES): Add elf32-qnx.h.
  4841. (BUILD_HFILES): Add bfdver.h.
  4842. Run "make dep-am".
  4843. * Makefile.in: Regenerate.
  4844. * configure.in Update bfd vector dependencies.
  4845. * configure: Regenerate.
  4846. * elf32-i386-fbsd.c: Delete. Move code to elf32-i386.c.
  4847. * elf32-i386qnx.c: Likewise.
  4848. * elf32-ppcqnx.c: Delete. Move code to elf32-ppc.c.
  4849. * elf32-sh-nbsd.c: Delete. Move code to elf32-sh.c.
  4850. * elf32-sh-lin.c: Likewise.
  4851. * elf32-shqnx.c: Likewise.
  4852. * elf32-sh64-lin.c: Delete. Move code to elf32-sh64.c.
  4853. * elf32-sh64-nbsd.c: Likewise.
  4854. * elf64-sh64-lin.c: Delete. Move code to elf64-sh64.c.
  4855. * elf64-sh64-nbsd.c: Likewise.
  4856. * elfarmqnx-nabi.c: Delete. Move code to elfarm-nabi.c.
  4857. * elf32-arm.h (ELF_MAXPAGESIZE): Always define.
  4858. * elf32-i386.c: Remove ELF_ARCH and ELF32_I386_C_INCLUDED tests.
  4859. * elf32-ppc.c: Remove ELF32_PPC_C_INCLUDED tests.
  4860. * elf32-qnx.h (elf_backend_set_nonloadable_filepos): Always define.
  4861. (elf_backend_is_contained_by_filepos): Likewise.
  4862. (elf_backend_copy_private_bfd_data_p): Likewise.
  4863. Globalize and move functions to..
  4864. * elf32-qnx.c: ..here. New file.
  4865. * elf32-sh.c: Remove ELF_ARCH and ELF32_SH_C_INCLUDED tests. Don't
  4866. emit target vectors when INCLUDE_SHMEDIA.
  4867. * elf32-sh64.c: Remove ELF_ARCH test. Move TARGET_* etc. defines to
  4868. end of file.
  4869. * elf64-sh64.c: Remove ELF_ARCH test.
  4870. * elfarm-nabi.c: Remove ELFARM_NABI_C_INCLUDED test.
  4871. * po/BLD-POTFILES.in: Regenerate.
  4872. * po/SRC-POTFILES.in: Regenerate.
  4873. 2002-10-16 Alan Modra <amodra@bigpond.net.au>
  4874. * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
  4875. loaded with --just-symbols.
  4876. * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define.
  4877. * elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
  4878. * elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
  4879. * elfarmqnx-nabi.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
  4880. 2002-10-15 Richard Henderson <rth@redhat.com>
  4881. * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd.
  4882. (BFD64_BACKENDS_CFILES): Likewise.
  4883. * configure.in (bfd_elf64_alpha_freebsd_vec): Use elf64-alpha.
  4884. * elf64-alpha-fbsd.c: Remove file, move code ...
  4885. * elf64-alpha.c: ... here.
  4886. * Makefile.in, configure: Rebuild.
  4887. 2002-10-14 Richard Henderson <rth@redhat.com>
  4888. * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment
  4889. VALUE, not ADDEND.
  4890. 2002-10-14 Stephen Clarke <stephen.clarke@superh.com>
  4891. * elf32-sh.c (elf_sh_link_hash_entry): Replace
  4892. datalabel_got_offset with union of datalabel_got
  4893. offset and refcount.
  4894. (sh_elf_link_hash_newfunc): Initialize datalabel_got.refcount.
  4895. (allocate_dynrelocs): Delete unnecessary code for
  4896. STT_DATALABEL type. Create entry in got for
  4897. datalabel version of symbol if datalabel_got.refcount > 0.
  4898. (sh_elf_relocate_section): Use datalabel_got union.
  4899. (sh_elf_gc_sweep_hook): Pull common code to initialize
  4900. h and eh out of switch statement. Declare seen_stt_datalabel.
  4901. Initialize it. Decrement datalabel_got.refcount for
  4902. got relocs when seen_stt_datalabel is true.
  4903. Decrement local_got_refcounts entry for datalabel got relocs
  4904. of local symbols.
  4905. (sh_elf_copy_indirect_symbol): Copy datalabel_got field over.
  4906. (sh_elf_check_relocs): Declare seen_stt_datalabel.
  4907. Initialize it. When seen_stt_datalabel is true, increment
  4908. datalabel_got refcount rather than got.refcount.
  4909. (sh_elf_finish_dynamic_symbol): Create relocs to
  4910. initialize got entry for datalabel version of symbol.
  4911. 2002-10-14 Alan Modra <amodra@bigpond.net.au>
  4912. * Makefile.am: Run "make dep-am".
  4913. (BFD_H_FILES): Remove version.h.
  4914. * bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move..
  4915. * version.h: ..to here.
  4916. * configure.in (bfd_version_date): Remove.
  4917. (AC_OUTPUT): Make bfdver.h from version.h.
  4918. * bfd.c: #include "bfdver.h".
  4919. * vms-hdr.c: Likewise.
  4920. * Makefile.in: Regenerate.
  4921. * bfd-in2.h: Regenerate.
  4922. * configure: Regenerate.
  4923. * po/SRC-POTFILES.in: Regenerate.
  4924. 2002-10-14 Alan Modra <amodra@bigpond.net.au>
  4925. * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
  4926. bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64,
  4927. bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64,
  4928. bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850,
  4929. bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8,
  4930. bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple,
  4931. bfd_mach_ia64_elf64, bfd_mach_ia64_elf32,
  4932. bfd_mach_ip2022, bfd_mach_ip2022ext,
  4933. bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber.
  4934. * bfd-in2.h: Regenerate.
  4935. 2002-10-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4936. * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
  4937. endian vector to targ_selvecs.
  4938. 2002-10-13 Alexandre Oliva <aoliva@redhat.com>
  4939. * elfxx-mips.c (mips_elf_calculate_relocation): Take
  4940. save_addend argument. Don't apply the 32-bit mask to a
  4941. GPREL32 value if it's to be used in another relocation. Don't
  4942. use forced-check computation of local_p to decide whether to
  4943. add gp0 to GPREL16 value. Don't use only the lowest 16 bits
  4944. of the addend of a non-in-place GPREL16 relocation.
  4945. (_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
  4946. mips_elf_calculate_relocation().
  4947. 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
  4948. * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
  4949. with symbols in other sections if we relaxed something; the sections
  4950. output offsets must be re-computed before.
  4951. 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
  4952. * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
  4953. handling to use Elf_Internal_Sym.
  4954. (m68hc11_elf_relax_delete_bytes): Likewise.
  4955. 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  4956. * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
  4957. sh_elf_object_p, dtpoff_base): New functions.
  4958. (sh_elf_howto_table): Add TLS relocs.
  4959. (sh_reloc_map): Likewise.
  4960. (sh_elf_info_to_howto): Support TLS relocs.
  4961. (elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
  4962. (sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
  4963. New macros.
  4964. (sh_elf_obj_tdata): New.
  4965. (elf_sh_link_hash_table): Add tls_ldm_got.
  4966. (sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
  4967. (allocate_dynrelocs): Support TLS relocs.
  4968. (sh_elf_size_dynamic_sections): Likewise.
  4969. (sh_elf_relocate_section): Support TLS relocs. Don't try to find
  4970. .rela.got section when found already. Return false after printing
  4971. error about unresolvable relocation.
  4972. (sh_elf_gc_sweep_hook): Support TLS relocs.
  4973. (sh_elf_check_relocs): Likewise.
  4974. (sh_elf_finish_dynamic_symbol): Likewise.
  4975. (bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
  4976. * reloc.c: Add SH TLS relocs.
  4977. * bfd-in2.h, libbfd.h: Regenerate.
  4978. 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
  4979. * Makefile.in: Regenerated.
  4980. 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
  4981. * Makefile.am: Run dep-am.
  4982. (BFD_H_DEP): Add simple.c and linker.c.
  4983. (BFD32_LIBS): Add simple.lo.
  4984. (BFD32_LIBS_CFILES): Add simple.c.
  4985. * Makefile.in: Regenerated.
  4986. * bfd-in2.h: Regenerated.
  4987. * simple.c: New file.
  4988. 2002-10-11 Alan Modra <amodra@bigpond.net.au>
  4989. * coff-arm.c (record_arm_to_thumb_glue): Avoid type-punned pointers.
  4990. (record_thumb_to_arm_glue): Likewise.
  4991. * ecoff.c (ecoff_link_add_externals): Likewise.
  4992. * elf32-arm.h (record_arm_to_thumb_glue): Likewise.
  4993. (record_thumb_to_arm_glue): Likewise.
  4994. * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
  4995. * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
  4996. * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
  4997. * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
  4998. * elf64-ppc.c (func_desc_adjust): Likewise.
  4999. * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
  5000. (sh64_elf64_create_dynamic_sections): Likewise.
  5001. * elflink.c (_bfd_elf_create_got_section): Likewise.
  5002. (_bfd_elf_create_dynamic_sections): Likewise.
  5003. (_bfd_elf_create_linker_section): Likewise.
  5004. * elflink.h (elf_add_default_symbol): Likewise.
  5005. (elf_link_create_dynamic_sections): Likewise.
  5006. (NAME(bfd_elf,size_dynamic_sections)): Likewise.
  5007. * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Likewise.
  5008. * elfxx-mips.c (mips_elf_create_got_section): Likewise.
  5009. (_bfd_mips_elf_add_symbol_hook): Likewise.
  5010. (_bfd_mips_elf_create_dynamic_sections): Likewise.
  5011. * linker.c (generic_link_add_symbol_list): Likewise.
  5012. * xcofflink.c (xcoff_link_add_symbols): Likewise.
  5013. * elfxx-ia64.c (oor_brl, oor_ip): Conditionally define.
  5014. * elf64-ppc.c (edit_opd): Only zero opd syms when function is
  5015. completely removed. Correct local sym adjustment.
  5016. 2002-10-10 Stephen Clarke <stephen.clarke@superh.com>
  5017. * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
  5018. Correct mistake in calculation of address of .got.
  5019. * elf64-sh64.c (elf_sh64_pic_plt_entry_be,
  5020. elf_sh64_pic_plt_entry_le): Likewise.
  5021. 2002-10-09 Richard Shann <richard.shann@superh.com>
  5022. Stephen Clarke <stephen.clarke@superh.com>
  5023. * Makefile.am: Add entries for elf32-sh64-lin.c and
  5024. elf64-sh64-lin.c. Regenerate.
  5025. * Makefile.in: Regenerate.
  5026. * config.bfd: Change sh64eb-*-linux* and sh64-*-linux*
  5027. to use sh64 vectors rather than sh vectors.
  5028. * configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
  5029. bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
  5030. * configure: Regenerate.
  5031. * elf32-sh64-lin.c: New file.
  5032. * elf64-sh64-lin.c: New file.
  5033. * targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
  5034. bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
  5035. 2002-10-08 H.J. Lu <hjl@gnu.org>
  5036. * elf32-i386.c (elf_i386_relocate_section): Re-arrange the
  5037. IE->LE transition for R_386_TLS_IE.
  5038. 2002-10-08 Alan Modra <amodra@bigpond.net.au>
  5039. * elf64-ppc.c (edit_opd): Correct test for discarded sections.
  5040. 2002-10-07 Mark Elbrecht <snowball3@softhome.net>
  5041. * cofflink.c (mark_relocs): Don't mark relocations in excluded
  5042. sections.
  5043. 2002-10-07 Alan Modra <amodra@bigpond.net.au>
  5044. * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
  5045. code.
  5046. * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
  5047. 2002-10-06 Alan Modra <amodra@bigpond.net.au>
  5048. * opncls.c: Formatting.
  5049. (_bfd_new_bfd): Use a smaller section hash table.
  5050. 2002-10-05 Alexandre Oliva <aoliva@redhat.com>
  5051. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
  5052. of the other two relocations packed with a REL32 to NONE.
  5053. 2002-10-02 Stephen Clarke <stephen.clarke@superh.com>
  5054. * elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
  5055. (sh_elf_link_hash_newfunc): Initialize it.
  5056. (allocate_dynrelocs): Transfer gotplt refs from plt.refcount
  5057. to got.refcount for symbols that are forced local or when
  5058. we have direct got refs.
  5059. (sh_elf_gc_sweep_hook): Adjust gotplt_refcount. Use it
  5060. to correctly adjust got.refcount and plt.refcount.
  5061. (sh_elf_copy_indirect_symbol): Copy gotplt_refcount across.
  5062. (sh_elf_check_relocs): Increment gotplt_refcount.
  5063. 2002-10-01 Jakub Jelinek <jakub@redhat.com>
  5064. * elf32-i386.c (elf_i386_relocate_section): Fix
  5065. movl foo@indntpoff, %eax IE->LE transition.
  5066. 2002-10-01 Jakub Jelinek <jakub@redhat.com>
  5067. * elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
  5068. sequence and its transitions.
  5069. 2002-10-01 Jakub Jelinek <jakub@redhat.com>
  5070. * elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32
  5071. to st_value + addend in non-code sections.
  5072. * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve
  5073. R_X86_64_DTPOFF32 to st_value + addend in non-code sections.
  5074. 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
  5075. Ken Raeburn <raeburn@cygnus.com>
  5076. Aldy Hernandez <aldyh@redhat.com>
  5077. Eric Christopher <echristo@redhat.com>
  5078. Richard Sandiford <rsandifo@redhat.com>
  5079. * archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New.
  5080. (bfd_mach_mips5500): New.
  5081. * cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New.
  5082. (arch_info_struct): Add corresponding entries here.
  5083. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120,
  5084. E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
  5085. (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120,
  5086. bfd_mach_mips5400 and bfd_mach_mips5500.
  5087. (_bfd_mips_elf_mach_extends_p): New function.
  5088. (_bfd_mips_elf_merge_private_bfd_data): Use it to help merge
  5089. the EF_MIPS_MACH flags.
  5090. * bfd-in2.h: Regenerate.
  5091. 2002-09-28 Jason Thorpe <thorpej@wasabisystems.com>
  5092. * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
  5093. .got sections.
  5094. 2002-09-28 Alan Modra <amodra@bigpond.net.au>
  5095. * elf.c (map_sections_to_segments): Correct test for start of
  5096. writable section in the same page as end of read-only section.
  5097. 2002-09-27 Matt Thomas <matt@3am-software.com>
  5098. * elf32-vax.c (elf_vax_check_relocs): Remove unused
  5099. local_got_refcounts usage. Remove allocation of got slot.
  5100. (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage.
  5101. Remove de-allocation of got slot.
  5102. (elf_vax_size_dynamic_section): Fix some indentation. Add hash
  5103. traversal for elf_vax_instantiate_got_entries. Allow empty .got
  5104. sections to be GC'ed.
  5105. (elf_vax_instantiate_got_entries): New function.
  5106. (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove
  5107. tests that are now handled by elf_vax_instantiate_got_entries.
  5108. Assert GOT entry falls within .got section size. Remove redundant
  5109. comparisions. Fix comments.
  5110. 2002-09-27 Jakub Jelinek <jakub@redhat.com>
  5111. * reloc.c: Add x86-64 TLS relocs.
  5112. * bfd-in2.h, libbfd.h: Rebuilt.
  5113. * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
  5114. relocs. Add TLS relocs.
  5115. (x86_64_reloc_map): Add TLS relocs.
  5116. (elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
  5117. (struct elf64_x86_64_link_hash_entry): Add tls_type field.
  5118. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
  5119. (elf64_x86_64_hash_entry): Define.
  5120. (struct elf64_x86_64_obj_tdata): New.
  5121. (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
  5122. (struct elf64_x86_64_link_hash_table): Add tls_ld_got.
  5123. (link_hash_newfunc): Initialize tls_type.
  5124. (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
  5125. (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
  5126. (elf64_x86_64_mkobject): New.
  5127. (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
  5128. (elf64_x86_64_tls_transition): New.
  5129. (elf64_x86_64_check_relocs): Add r_type variable and use it.
  5130. Handle TLS relocs.
  5131. (elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
  5132. (allocate_dynrelocs): Allocate GOT space for TLS relocs.
  5133. (elf64_x86_64_size_dynamic_sections): Likewise.
  5134. (dtpoff_base, tpoff): New.
  5135. (elf64_x86_64_relocate_section): Handle TLS relocs.
  5136. (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
  5137. entries.
  5138. (bfd_elf64_mkobject): Define.
  5139. * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
  5140. DF_STATIC_TLS if shared.
  5141. 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5142. * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
  5143. empty relocation sections.
  5144. 2002-09-26 Alan Modra <amodra@bigpond.net.au>
  5145. * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
  5146. (ppc64_elf_build_stubs): Build them here instead.
  5147. 2002-09-24 Jakub Jelinek <jakub@redhat.com>
  5148. * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE
  5149. addend into r_addend, not *r_offset.
  5150. (elf32_sparc_finish_dynamic_symbol): Likewise.
  5151. * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at
  5152. R_SPARC_RELATIVE's r_offset.
  5153. 2002-09-23 Nathan Tallent <eraxxon@alumni.rice.edu>
  5154. * dwarf2.c (decode_line_info): Update to correctly decode
  5155. the (non-standard DWARF2) out-of-order address sequences
  5156. generated by the Intel C++ 6.0 compiler for ia64-Linux.
  5157. 2002-09-23 Mark Elbrecht <snowball3@softhome.net>
  5158. * config.bfd: For DJGPP targets, match with any cpu and any machine.
  5159. 2002-09-23 Alan Modra <amodra@bigpond.net.au>
  5160. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
  5161. for discarded FDEs. Remove redundant assignment.
  5162. * elflink.h (elf_bfd_discard_info): Save edited relocs.
  5163. 2002-09-22 H.J. Lu <hjl@gnu.org>
  5164. * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Don't merge
  5165. the relocation count between different .reloc sections.
  5166. 2002-09-21 Alan Modra <amodra@bigpond.net.au>
  5167. * elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and
  5168. ".sdata.*" for R_PPC_SDAREL16, ".sbss2*" and ".sdata2*" for
  5169. R_PPC_EMB_SDA2REL. Similarly for R_PPC_EMB_SDA21 and
  5170. R_PPC_EMB_RELSDA.
  5171. * elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount"
  5172. unsigned. Move "symcount" assignment out of loop.
  5173. * Makefile.am: Run "make dep-am".
  5174. * Makefile.in: Regenerate.
  5175. * configure: Regenerate.
  5176. * po/SRC-POTFILES.in: Regnerate.
  5177. 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
  5178. * dwarf2.c (_bfd_dwarf2_find_nearest_line): If address length is
  5179. zero, set it to 8 for (non-standard) 64-bit DWARF2 formats
  5180. (e.g. IRIX64).
  5181. 2002-09-19 Jakub Jelinek <jakub@redhat.com>
  5182. * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word
  5183. even if generating R_PPC_RELATIVE reloc.
  5184. (ppc_elf_relocate_section): Make sure relocation is performed
  5185. if skip == -2. Clear memory at r_offset when creating dynamic
  5186. relocation.
  5187. 2002-09-19 Jakub Jelinek <jakub@redhat.com>
  5188. * reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
  5189. BFD_RELOC_386_TLS_GOTIE): Add.
  5190. * bfd-in2.h, libbfd.h: Rebuilt.
  5191. * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
  5192. and R_386_TLS_GOTIE.
  5193. (elf_i386_reloc_type_lookup): Handle it.
  5194. (struct elf_i386_link_hash_entry): Change tls_type type to unsigned
  5195. char instead of enum, change GOT_* into defines.
  5196. (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
  5197. (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
  5198. (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is
  5199. accessed both as normal and TLS symbol. Move R_386_TLS_LDM and
  5200. R_386_PLT32 cases so that R_386_TLS_IE can fall through.
  5201. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
  5202. (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
  5203. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
  5204. (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
  5205. tls_type is GOT_TLS_IE_BOTH.
  5206. (elf_i386_size_dynamic_sections): Likewise.
  5207. (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
  5208. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
  5209. (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
  5210. all 4 GOT_TLS_* TLS types.
  5211. 2002-09-19 Nick Clifton <nickc@redhat.com>
  5212. * elflink.h (elf_fix_symbol_flags): When examining weak symbols,
  5213. follow indirect links.
  5214. 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
  5215. * ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
  5216. correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
  5217. on 64 bit machines.
  5218. (ecoff_swap_sym_in) <iss>: Likewise.
  5219. * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Fix error reading
  5220. ECOFF information: 'ioptMax' refers to the actual *size*
  5221. of the optimization symtab, not the number of entries.
  5222. 2002-09-19 Daniel Jacobowitz <drow@mvista.com>
  5223. * elf32-arm.h (elf32_arm_adjust_dynamic_symbol): Update
  5224. ELF_LINK_HASH_NEEDS_PLT logic.
  5225. 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
  5226. * elfcode.h (elf_slurp_reloc_table_from_section): Check
  5227. correct relocation count.
  5228. 2002-09-17 Daniel Jacobowitz <drow@mvista.com>
  5229. * bfd-in.h (bfd_get_dynamic_symcount): Define.
  5230. * bfd.c (struct _bfd): Add dynsymcount.
  5231. * bfd-in2.h: Regenerated.
  5232. * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
  5233. abfd->dynsymcount.
  5234. * elfcode.h (elf_slurp_reloc_table_from_section): Check
  5235. for overflow.
  5236. 2002-09-17 Stan Cox <scox@redhat.com>
  5237. * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
  5238. (mips_elf64_final_gp): Don't make up gp value.
  5239. * elfn32-mips.c (mips_elf_final_gp): Likewise.
  5240. * elfxx-mips.c (_bfd_mips_elf_final_link): Always create
  5241. .MIPS.options/.options section.
  5242. 2002-09-17 David O'Brien <obrien@FreeBSD.org>
  5243. * elf32-i386-fbsd.c: Always label using the EI_OSABI method.
  5244. It is benign for FreeBSD < 4.1. Minor reformatting.
  5245. * elf64-alpha-fbsd.c: Likewise.
  5246. 2002-09-17 Jakub Jelinek <jakub@redhat.com>
  5247. * elf32-i386.c (elf_i386_relocate_section) [R_386_TLS_TPOFF32]: Negate
  5248. addend.
  5249. 2002-09-17 Alan Modra <amodra@bigpond.net.au>
  5250. * elf64-alpha.c (alpha_elf_size_info): Make static.
  5251. 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
  5252. * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
  5253. * cpu-tic4x.c: Ditto.
  5254. 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5255. * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
  5256. duplicate define.
  5257. 2002-09-16 Bruno Haible <bruno@clisp.org>
  5258. * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
  5259. by a target variant implementation.
  5260. * elf64-alpha.c: Likewise.
  5261. * elf32-i386-fbsd.c: New file.
  5262. * elf64-alpha-fbsd.c: New file.
  5263. * targets.c: Support bfd_elf32_i386_freebsd_vec and
  5264. bfd_elf64_alpha_freebsd_vec.
  5265. * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
  5266. bfd_elf64_alpha_freebsd_vec.
  5267. * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
  5268. (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
  5269. (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
  5270. (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
  5271. (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
  5272. * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
  5273. specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.
  5274. 2002-09-12 Jakub Jelinek <jakub@redhat.com>
  5275. * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is
  5276. NULL.
  5277. (elf_i386_relocate_section): Return false after printing error about
  5278. unresolvable relocation.
  5279. 2002-09-12 Nick Clifton <nickc@redhat.com>
  5280. * elf32-arm.h (elf32_arm_final_link_relocate): Fix handling of
  5281. R_ARM_THM_PC11.
  5282. 2002-09-11 Jeffrey Law <law@redhat.com>
  5283. * elf32-h8300.c (elf32_h8_relax_section): Fix typo.
  5284. 2002-09-11 Andrew Haley <aph@cambridge.redhat.com>
  5285. * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and
  5286. line_ptr before deciding we've found a symbol.
  5287. 2002-09-11 Nick Clifton <nickc@redhat.com>
  5288. * po/da.po: New Danish translation file.
  5289. * configure.in (LINGUAS): Add 'da'.
  5290. * configure: Regenerate.
  5291. 2002-09-10 Michael Snyder <msnyder@redhat.com>
  5292. * irix-core.c (do_sections, do_sections64): New functions.
  5293. (irix_core_core_file_p): Call new functions do_sections,
  5294. do_sections64, depending on corefile (32-bit or 64-bit).
  5295. 2002-09-09 Richard Henderson <rth@redhat.com>
  5296. * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M
  5297. and PCREL21F like PCREL21B.
  5298. 2002-09-04 Kevin Buettner <kevinb@redhat.com>
  5299. * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default
  5300. vector.
  5301. 2002-09-02 Nick Clifton <nickc@redhat.com>
  5302. * elf32-v850.c (v850_elf_final_link_relocate): Use helpful
  5303. names instead of cryptically overloaded bfd_reloc error
  5304. codes.
  5305. (v850_elf_relocate_section): Likewise.
  5306. (v850_elf_relax_section): Replace caching of external symbols
  5307. with caching of internal symbols obtained from calling
  5308. bfd_elf_get_elf_syms().
  5309. Fixup problems with freeing cached allocated memory blocks.
  5310. 2002-09-02 Alan Modra <amodra@bigpond.net.au>
  5311. * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
  5312. (bfd_pj_arch): Use bfd_default_scan.
  5313. * cpu-v850.c (scan): Remove.
  5314. (N): Use bfd_default_scan.
  5315. * cpu-z8k.c (scan_mach): Remove.
  5316. (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
  5317. first. Use bfd_default_scan.
  5318. * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
  5319. bfd_mach constants.
  5320. (ecoff_get_magic): Likewise.
  5321. * elf32-v850.c (v850_elf_object_p): Likewise.
  5322. (v850_elf_final_write_processing): Likewise.
  5323. * mipsbsd.c (MY(set_arch_mach)): Likewise.
  5324. (MY(write_object_contents)): Likewise.
  5325. * coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
  5326. * coffcode.h (coff_write_object_contents): Likewise.
  5327. (coff_set_arch_mach_hook): Add comment describing machine == 0.
  5328. Remove unnecessary "machine" assignments.
  5329. (coff_write_relocs): Test for the absolute section sym by testing
  5330. section and flags.
  5331. * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
  5332. and bfd_mach_i386_i386_intel_syntax.
  5333. * pdp11.c (NAME(aout,machine_type)): Likewise.
  5334. 2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
  5335. * bfd-in.h (align_power): Cast constants to bfd_vma type.
  5336. * bfd-in2.h (align_power): Likewise.
  5337. 2002-08-30 Alan Modra <amodra@bigpond.net.au>
  5338. * Makefile.am: Run "make dep-am".
  5339. * Makefile.in: Regenerate.
  5340. * cpu-avr.c (compatible): Don't use hard-coded mach constants.
  5341. * cpu-powerpc.c (powerpc_compatible): Likewise.
  5342. * cpu-rs6000.c (rs6000_compatible): Likewise.
  5343. 2002-08-28 Catherine Moore <clm@redhat.com>
  5344. * elf32-v850.c (v850_elf_reloc_map): Add new relocs.
  5345. (v850-elf-reloc): Don't resolve pc relative relocs.
  5346. (v850_elf_ignore_reloc): New routine.
  5347. (v850_elf_final_link_relocate): Handle new relocs.
  5348. (v850_elf_relax_delete_bytes ): New routine.
  5349. (v850_elf_relax_section): New routine.
  5350. (bfd_elf32_bfd_relax_section): Define.
  5351. (HOWTO): New entries for new relocs.
  5352. * reloc.c (BFD_RELOC_V850_LONGCALL): New reloc.
  5353. (BFD_RELOC_V850_LONGJUMP): New reloc.
  5354. (BFD_RELOC_V850_ALIGN): New reloc.
  5355. * archures.c: Remove redundant v850ea architecture.
  5356. * cpu-v850.c: Remove redundant v850ea support.
  5357. * libbfd.h: Regenerate.
  5358. * bfd-in2.h: Regenerated.
  5359. 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
  5360. * config.bfd: Add tic4x-*-*coff* and c4x-*-*coff* target.
  5361. * configure.in: Add tic4x_coff vector files.
  5362. * configure: Regenerate.
  5363. * Makefile.am: Add tic4x target.
  5364. * Makefile.in: Regenerate.
  5365. 2002-08-27 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
  5366. * archures.c: Add the BFD arch type tic4x.
  5367. * bfd-in.h: Add BFD_IN_MEMORY flag.
  5368. * coff-tic4x.c: New file.
  5369. * coffswap.h (coff_swap_sym_out): Add preadjuster.
  5370. * cpu-tic4x.c: New file.
  5371. * targets.c: Added tic4x- in list of xvecs.
  5372. * ticoff.h: New file.
  5373. * bfd-in2.h: Regenerate.
  5374. 2002-08-27 Adam Nemet <anemet@lnxw.com>
  5375. * elf32-arm.h (elf32_arm_finish_dynamic_sections): Set the last
  5376. bit of DT_INIT and DT_FINI for Thumb functions.
  5377. 2002-08-26 Alan Modra <amodra@bigpond.net.au>
  5378. * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.
  5379. 2002-08-26 Alan Modra <amodra@bigpond.net.au>
  5380. * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8.
  5381. 2002-08-24 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5382. * elf32-sh.c (sh_elf_copy_indirect_symbol): New.
  5383. (create_got_section, allocate_dynrelocs, readonly_dynrelocs):
  5384. Likewise.
  5385. (struct elf_sh_pcrel_relocs_copied): Removed.
  5386. (struct elf_sh_dyn_relocs): New.
  5387. (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied
  5388. field with dyn_relocs.
  5389. (struct elf_sh_link_hash_table): Add short-cuts to get dynamic
  5390. sections and sym_sec.
  5391. (sh_elf_link_hash_newfunc): Clear dyn_relocs.
  5392. (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec.
  5393. (sh_elf_create_dynamic_sections): Use create_got_section instead
  5394. of _bfd_elf_create_got_section.
  5395. (sh_elf_check_relocs): Likewise.
  5396. (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic
  5397. sections.
  5398. (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections,
  5399. sh_elf_relocate_section, sh_elf_check_relocs,
  5400. sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections):
  5401. Likewise.
  5402. (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the
  5403. dynamic relocations and avoiding the copy relocation when we
  5404. didn't find any dynamic relocations in the section which has
  5405. contents or is read-only.
  5406. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
  5407. (sh_elf_size_dynamic_sections): Don't reset the size of
  5408. .rela.got section even if dynamic_sections_created flag is off.
  5409. Don't use sh_elf_discard_copies. Scan all input bfd and use
  5410. allocate_dynrelocs. Call readonly_dynrelocs to determine
  5411. whether we need DT_TEXTREL.
  5412. (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine
  5413. whether the symbol was never referred to.
  5414. (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL.
  5415. (sh_elf_gc_sweep_hook): Fill with the real sweep function.
  5416. (sh_elf_check_relocs): Call create_got_section if the short-cut
  5417. to .got is null. Increment reference counters only instead of
  5418. allocating space on dynamic sections here. Don't conditionalize
  5419. uninitialized got.offset value when marking the symbol as a
  5420. global offset table entry. Keep relocations for symbols satisfied
  5421. by a dynamic library to avoid copy relocations for the symbol.
  5422. Set dynobj field of an elf hash table if needed.
  5423. (sh_elf_finish_dynamic_sections): Handle null section pointer
  5424. correctly.
  5425. (elf_backend_copy_indirect_symbol): Defined.
  5426. (elf_backend_can_refcount): Defined.
  5427. 2002-08-23 Nick Clifton <nickc@redhat.com>
  5428. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Undo
  5429. previous change. Add comment explaining why.
  5430. 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
  5431. * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
  5432. contents of .got.plt[2] to tr0, not address of .got.plt.
  5433. (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
  5434. patching absolute plt entry. For shmedia plt entry, set bottom bit
  5435. of branch to plt0 as this is a branch to an shmedia instruction.
  5436. * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
  5437. Copy contents of .got.plt[2] to tr0, not address of .got.plt.
  5438. (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
  5439. branch to plt0.
  5440. (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
  5441. patching absolute plt entry. For shmedia plt entry, branch to
  5442. plt0 is now ptrel, so use relative offset. Set bottom bit of
  5443. branch target as it is a branch to an shmedia instruction.
  5444. 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>,
  5445. Richard Shann <richard.shann@superh.com>
  5446. * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT
  5447. value if .init is an SHmedia function. Similarly for DT_FINI.
  5448. * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
  5449. 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
  5450. * elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
  5451. dynamic section.
  5452. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
  5453. 2002-08-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
  5454. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple
  5455. byte read when reading the return address register column.
  5456. 2002-08-22 Nick Clifton <nickc@redhat.com>
  5457. * config.bfd: Add powepc64-*-*bsd* target.
  5458. 2002-08-22 Graeme Peterson <gp@qnx.com>
  5459. * Makefile.am: Add entries for elf32-shqnx.c
  5460. * Makefile.in: Regenerate.
  5461. * config.bfd: Add support sh-*-nto* target.
  5462. * configure.in: Add support for bfd_elf32_sh{l}qnx_vec.
  5463. * configure: Regenerate.
  5464. * elf32-qnx.h: Changed typo "elf_i386qnx_*" to "elf_qnx_*" .
  5465. * elf32-sh.c: Do not include elf32-target.h if
  5466. ELF32_SH_C_INCLUDED is defined.
  5467. * elf32-shqnx.c: New file: Support for QNX.
  5468. * targets.c: Add bfd_elf32_sh{l}qnx_vec.
  5469. 2002-08-22 Nick Clifton <nickc@redhat.com>
  5470. * po/tr.po: Updated Turkish translation.
  5471. * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
  5472. symbols are not read.
  5473. 2002-08-22 Alan Modra <amodra@bigpond.net.au>
  5474. * elf32-m68hc11.c: Formatting fixes.
  5475. (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
  5476. * elf32-m68hc12.c: Formatting fixes.
  5477. (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
  5478. 2002-08-22 Alan Modra <amodra@bigpond.net.au>
  5479. * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and
  5480. SEC_DATA.
  5481. (pmac_xcoff_vec): Likewise.
  5482. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  5483. (aix5coff64_vec): Likewise.
  5484. 2002-08-22 Alan Modra <amodra@bigpond.net.au>
  5485. * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data
  5486. param to elf_backend_copy_indirect_symbol.
  5487. (_bfd_elf_link_hash_copy_indirect): Likewise.
  5488. * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust
  5489. calls to copy_indirect_symbol.
  5490. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
  5491. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  5492. * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  5493. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  5494. * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
  5495. * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
  5496. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  5497. * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  5498. * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  5499. * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly
  5500. test refcounts for "used" values.
  5501. 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
  5502. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to
  5503. argument declaration.
  5504. 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
  5505. * archures.c (bfd_mach_ppc_e500): Added.
  5506. * bfd-in2.h: Rebuilt.
  5507. * cpu-powerpc.c (bfd_powerpc_archs): Added e500.
  5508. 2002-08-19 Alan Modra <amodra@bigpond.net.au>
  5509. * elf32-m68hc12.c (elf_backend_can_gc_sections): False.
  5510. 2002-08-17 Andrew Cagney <ac131313@redhat.com>
  5511. * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to
  5512. `bfd_byte'.
  5513. 2002-08-17 Stan Cox <scox@redhat.com>
  5514. * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use the
  5515. IRIX 6 segment layout for NEWABI.
  5516. 2002-08-16 Stephen Clarke <stephen.clarke@superh.com>
  5517. * elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
  5518. symbols when looking for section referred to by a relocation.
  5519. * elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
  5520. 2002-08-15 Alan Modra <amodra@bigpond.net.au>
  5521. * elf32-i370.c: Move reloc enum to include/elf/i370.h.
  5522. 2002-08-15 Hans-Peter Nilsson <hp@axis.com>
  5523. * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Add
  5524. missing check for whether the symbol is referenced by DSO before
  5525. unexporting it as an unneeded dynamic symbol.
  5526. 2002-08-14 H.J. Lu <hjl@gnu.org>
  5527. * libbfd.h: Regenerate.
  5528. 2002-08-14 H.J. Lu <hjl@gnu.org>
  5529. * config.bfd: Always add 64bit vectors to 32bit Linux/mips.
  5530. 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
  5531. * elf32-m68hc11.c (m68hc11_relax_group): New to relax group of
  5532. instructions.
  5533. (m68hc11_direct_relax): New to define table of relaxable instructions.
  5534. (find_relaxable_insn): New, find a relaxable insn.
  5535. (compare_reloc): New to compare two relocs.
  5536. (m68hc11_elf_relax_section): New, relax text sections.
  5537. (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs.
  5538. (elf32_m68hc11_check_relocs): New function for GC support.
  5539. (elf32_m68hc11_relocate_section): New function for GC support.
  5540. (bfd_elf32_bfd_relax_section): Define to support linker relaxation.
  5541. (elf_backend_check_relocs): Likewise.
  5542. (elf_backend_relocate_section): Likewise.
  5543. 2002-08-13 H.J. Lu <hjl@gnu.org>
  5544. * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
  5545. definitions in shared objects when checking symbol with
  5546. undefined version.
  5547. 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
  5548. * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.
  5549. (elf32_m68hc11_gc_sweep_hook): Likewise.
  5550. (elf_backend_gc_mark_hook): Define for GC section support.
  5551. (elf_backend_gc_sweep_hook): Likewise.
  5552. (elf_backend_can_gc_sections): Likewise.
  5553. * elf32-m68hc12.c: Likewise.
  5554. 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
  5555. * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
  5556. (_bfd_m68hc11_elf_merge_private_bfd_data): New function.
  5557. (_bfd_m68hc11_elf_set_private_flags): New function.
  5558. Use them to set/check/print ELF flags specific to 68HC11.
  5559. * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New.
  5560. (_bfd_m68hc12_elf_merge_private_bfd_data): New function.
  5561. (_bfd_m68hc12_elf_set_private_flags): New function.
  5562. Use them to set/check/print ELF flags specific to 68HC12.
  5563. 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
  5564. * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;
  5565. fix masks for PC-rel relocs.
  5566. (m68hc11_elf_ignore_reloc): New function.
  5567. * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific
  5568. 68HC12 banked addressing relocs.
  5569. (m68hc12_phys_addr): New to compute physical address of banked memory.
  5570. (m68hc12_phys_page): Likewise for page.
  5571. (m68hc12_addr_is_banked): New to see if address is in banked area.
  5572. (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
  5573. 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
  5574. * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,
  5575. BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE,
  5576. BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12.
  5577. * bfd-in2.h: Regenerate.
  5578. 2002-08-12 H.J. Lu <hjl@gnu.org>
  5579. * elflink.h (elf_add_default_symbol): Preserve section across
  5580. elf_merge_symbol.
  5581. 2002-08-09 Graeme Peterson <gp@qnx.com>
  5582. * Makefile.am: Add entries for elf32-ppcqnx.c, and add
  5583. elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c.
  5584. * Makefile.in: Regenerate.
  5585. * config.bfd: Add support for powerpc{le}-*-nto targets.
  5586. * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec.
  5587. * configure: Regenerate.
  5588. * elf32-i386qnx.c: Moved backend functions into a QNX specific
  5589. common file "elf32-qnx.h", and now include that file.
  5590. * elf32-qnx.h: New file: QNX specific common elf backend.
  5591. * elf32-ppc.c: Do not include elf32-target.h if
  5592. ELF32_PPC_C_INCLUDED is defined.
  5593. * elf32-ppcqnx.c: New file: Support for QNX.
  5594. * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend.
  5595. * targets.c: Add bfd_elf32_powerpc{le}qnx_vec.
  5596. 2002-08-09 Nick Clifton <nickc@redhat.com>
  5597. * po/sv.po: Updated Swedish translation.
  5598. 2002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5599. * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
  5600. g->global_gotsym is NULL.
  5601. 2002-08-08 H.J. Lu <hjl@gnu.org>
  5602. * elflink.h (elf_add_default_symbol): Don't warn if a definition
  5603. overrides an indirect versioned symbol.
  5604. 2002-08-08 Jakub Jelinek <jakub@redhat.com>
  5605. * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend
  5606. for R_386_TLS_TPOFF32 relocs against symndx 0.
  5607. 2002-08-07 H.J. Lu <hjl@gnu.org>
  5608. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol
  5609. with undefined version if needed.
  5610. (elf_link_assign_sym_version): Match a default symbol with a
  5611. version without definition. No need to hide the default
  5612. definition separately.
  5613. 2002-08-08 Alan Modra <amodra@bigpond.net.au>
  5614. * elflink.h (elf_link_output_extsym): Don't output symbols from
  5615. SEC_EXCLUDE sections.
  5616. * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
  5617. 2002-08-07 Alan Modra <amodra@bigpond.net.au>
  5618. * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd
  5619. entries.
  5620. 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5621. * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
  5622. mismatch.
  5623. 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5624. * elfxx-mips.c (ABI_64_P): Remove superfluous check.
  5625. 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5626. * elf32-mips.c (mips_reloc_map): Fix typo.
  5627. 2002-08-06 Alan Modra <amodra@bigpond.net.au>
  5628. * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
  5629. 2002-08-06 Alan Modra <amodra@bigpond.net.au>
  5630. * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
  5631. 2002-08-06 Alan Modra <amodra@bigpond.net.au>
  5632. * libxcoff.h: Use PARAMS on function declarations.
  5633. * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc.
  5634. * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
  5635. * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in
  5636. addend.
  5637. * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise.
  5638. 2002-08-06 Alan Modra <amodra@bigpond.net.au>
  5639. * coff-rs6000.c: Formatting fixes.
  5640. (xcoff_calculate_relocation): Use PARAMS in declaration.
  5641. (xcoff_complain_overflow): Likewise.
  5642. (xcoff_ppc_relocate_section): Use old-style function pointer call.
  5643. (bfd_xcoff_backend_data): Remove useless comments.
  5644. (rs6000coff_vec): Likewise.
  5645. (bfd_pmac_xcoff_backend_data): Likewise.
  5646. (pmac_xcoff_vec): Likewise.
  5647. * coff64-rs6000.c: Formatting fixes.
  5648. (xcoff64_calculate_relocation): Use PARAMS in declaration.
  5649. (xcoff64_ppc_relocate_section): Use old-style function pointer call.
  5650. (bfd_xcoff_backend_data): Remove useless comments.
  5651. (rs6000coff64_vec): Likewise.
  5652. (bfd_xcoff_aix5_backend_data): Likewise.
  5653. (aix5coff64_vec): Likewise.
  5654. 2002-08-06 Alan Modra <amodra@bigpond.net.au>
  5655. * coff-rs6000.c (xcoff_howto_table): Revert some of last change to
  5656. mask entries. Use complain_overflow_dont for R_REF.
  5657. (xcoff_reloc_type_ba): Revert last change.
  5658. (xcoff_reloc_type_br): Likewise.
  5659. (xcoff_reloc_type_crel): Likewise.
  5660. (xcoff_ppc_relocate_section): Likewise.
  5661. * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise.
  5662. (xcoff64_ppc_relocate_section): Likewise.
  5663. (xcoff64_howto_table): Revert some of last change to mask entries.
  5664. Use complain_overflow_dont for R_REF.
  5665. * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all
  5666. relocs with bitsize == 16 have size = 1.
  5667. (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment.
  5668. (xcoff_reloc_type_br): Likewise.
  5669. (xcoff_reloc_type_crel): Likewise.
  5670. (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly.
  5671. * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and
  5672. dst_mask adjustment.
  5673. (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly.
  5674. (xcoff64_howto_table): Fix src_mask entries. Make all relocs with
  5675. bitsize == 16 have size = 1.
  5676. 2002-08-01 Denis Chertykov <denisc@overta.ru>
  5677. * elf32-ip2k.c: Processor manufacturer changed to Ubicom.
  5678. (struct misc): New field isymbuf. All free_* fields removed.
  5679. (symbol_value): Pass in internal syms. No need to swap syms in.
  5680. (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free
  5681. possibly cached info.
  5682. (tidyup_after_error): Removed.
  5683. (ip2k_elf_relax_section_pass1): Don't use removed fields of struct
  5684. misc. Use new field.
  5685. (adjust_all_relocations): Use internal syms. No need to swap syms
  5686. in and out.
  5687. (add_page_insn): Don't use removed fields of struct misc.
  5688. 2002-08-01 Nick Clifton <nickc@redhat.com>
  5689. * elf32-arm.h: Revert previous delta.
  5690. 2002-08-01 Nick Clifton <nickc@redhat.com>
  5691. * configure.in (AM_INIT_AUTOMAKE): Bump version number.
  5692. * configure: Regenerate.
  5693. 2002-07-31 H.J. Lu <hjl@gnu.org>
  5694. * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is
  5695. selected.
  5696. 2002-07-31 H.J. Lu <hjl@gnu.org>
  5697. * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
  5698. is selected.
  5699. 2002-07-31 Jakub Jelinek <jakub@redhat.com>
  5700. * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
  5701. if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
  5702. 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
  5703. * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate):
  5704. There is no 8 byte relocation type for this architecture.
  5705. (do_ns32k_reloc): Use bfd_vma instead of native types.
  5706. (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data
  5707. returns void.
  5708. (_bfd_ns32k_put_displacement): Don't check for overflow. We can
  5709. rely on generic code to do that.
  5710. * aout-ns32k.c (howto_table): Add appropriate overflow detection
  5711. to all table entries.
  5712. (_bfd_ns32k_relocate_contents): put_data returns void.
  5713. * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate)
  5714. (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions
  5715. return void.
  5716. 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
  5717. * aoutx.h (aout_link_check_ar_symbols): Whether to include an
  5718. archive object is target dependant.
  5719. 2002-07-31 Adam Nemet <anemet@lnxw.com>
  5720. * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE.
  5721. (THUMB_PLT_ENTRY_SIZE): New macro.
  5722. (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE.
  5723. (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to
  5724. ARM_PLT_ENTRY_SIZE.
  5725. (elf32_arm_plt_entry): Likewise.
  5726. (elf_backend_plt_header_size): Likewise.
  5727. (elf32_thumb_plt0_entry): New global.
  5728. (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries
  5729. into .plt.thumb.
  5730. (elf32_thumb_plt_entry): New global.
  5731. (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for
  5732. Thumb entries. Set the bottom bit of the corresponding GOT entry
  5733. for a Thumb PLT entry.
  5734. (struct elf32_arm_plt_entry_info): New structure.
  5735. (struct elf32_arm_link_hash_entry, plt_info): New member of this
  5736. type.
  5737. (elf32_arm_link_hash_newfunc): Initialize new member.
  5738. (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle
  5739. relocations against the PLT.
  5740. (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set
  5741. first_rel_type if this is the first time we encounter the symbol.
  5742. (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case.
  5743. Determine if relocation needs a PLT entry. Set first_rel_type if
  5744. this is the first time we encounter the symbol
  5745. (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb
  5746. functions as well.
  5747. (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt.
  5748. (elf32_arm_create_dynamic_sections): New function. Create the
  5749. .plt.thumb section.
  5750. (elf_backend_create_dynamic_sections): Call it.
  5751. 2002-07-31 Nick Clifton <nickc@redhat.com>
  5752. * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
  5753. 'alternative' in order to avoid shadowing global symbol of the
  5754. same name.
  5755. * bfd-in2.h: Regenerate.
  5756. * libbfd.h: Regenerate.
  5757. * libcoff.h: Regenerate.
  5758. 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5759. * Makefile.am: Add n32 ABI support.
  5760. * Makefile.in: Regenerate.
  5761. * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64
  5762. bit vectors for mips*-*-linux targets as optional.
  5763. * configure.in: Add n32 ABI vectors.
  5764. * configure: Regenerate.
  5765. * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files.
  5766. * elfn32-mips.c: New file, n32 ABI support.
  5767. * targets.c: Add n32 ABI vectors.
  5768. 2002-07-30 Graeme Peterson <gp@qnx.com>
  5769. * elfarmqnx-nabi.c: New file: Support for QNX.
  5770. * config.bfd: Add support for arm-*-nto target.
  5771. * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec.
  5772. * configure: Regenerate.
  5773. * Makefile.am: Add entries for elfarmqnx-nabi.c.
  5774. * Makefile.in: Regenerate.
  5775. * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined.
  5776. Do not define global function if ELFARM_NABI_C_INCLUDED is defined.
  5777. * elfarm-nabi.c: Do not include elf32-arm.h if
  5778. ELFARM_NABI_C_INCLUDED is defined.
  5779. * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
  5780. 2002-07-30 Nick Clifton <nickc@redhat.com>
  5781. * po/sv.po: Updated Swedish translation.
  5782. 2002-07-30 Jakub Jelinek <jakub@redhat.com>
  5783. * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
  5784. 2002-07-30 Alan Modra <amodra@bigpond.net.au>
  5785. * aoutx.h (some_aout_object_p): Clean up tdata properly on error.
  5786. * archive.c (bfd_generic_archive_p): Likewise.
  5787. * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise.
  5788. (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol.
  5789. * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
  5790. (xcoff64_archive_p): Likewise.
  5791. (xcoff64_openr_next_archived_file): Likewise.
  5792. (xcoff64_archive_p): Clean up tdata properly on error.
  5793. * coffgen.c (coff_real_object_p): Likewise.
  5794. (coff_object_p): Release filehdr and opthdr.
  5795. * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error.
  5796. * ieee.c (ieee_archive_p): Likewise.
  5797. * ihex.c (ihex_object_p): Likewise.
  5798. (ihex_mkobject): Always allocate tdata.
  5799. * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error.
  5800. * srec.c (srec_mkobject): Always allocate tdata.
  5801. (srec_object_p): Clean up tdata properly on error.
  5802. (symbolsrec_object_p): Likewise.
  5803. * versados.c (versados_object_p): Likewise.
  5804. * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc,
  5805. and bfd_realloc instead of realloc.
  5806. (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections.
  5807. * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in
  5808. place of bfd_malloc, simplifying error freeing. Free hash table too.
  5809. (vms_object_p): Clean up tdata on error.
  5810. (vms_mkobject): Don't complain on stderr if vms_initialize fails.
  5811. (vms_close_and_cleanup): Adjust for bfd_alloc use.
  5812. 2002-07-30 Alan Modra <amodra@bigpond.net.au>
  5813. * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
  5814. 2002-07-26 Chris Demetriou <cgd@broadcom.com>
  5815. * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
  5816. flags into resulting BFD.
  5817. 2002-07-26 Alan Modra <amodra@bigpond.net.au>
  5818. From John Reiser <jreiser@BitWagon.com>
  5819. * elf32-i386.c (elf_i386_link_hash_table_create): Clear
  5820. tls_ldm_got.refcount.
  5821. 2002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5822. * elf64-mips.c: Update TODO comment.
  5823. (mips_elf64_higher_reloc,mips_elf64_highest_reloc,
  5824. mips_elf64_gprel16_reloca): Remove prototypes.
  5825. (mips16_jump_reloc,mips16_gprel_reloc): Add functions.
  5826. (UNUSED_RELOC): Replace by EMPTY_RELOC.
  5827. (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
  5828. wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
  5829. R_MIPS_HIGHEST.
  5830. (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
  5831. R_MIPS_GOT16. Remove wrong comments.
  5832. (elf_mips16_jump_howto,elf_mips16_gprel_howto,
  5833. elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
  5834. from elf32-mips.c.
  5835. (mips_elf64_hi16_reloc): Fix formatting.
  5836. (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
  5837. (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
  5838. Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
  5839. (mips_elf64_gprel16_reloc): Make static. Add check for
  5840. partial_inplace.
  5841. (mips_elf64_gprel16_reloca): Remove.
  5842. (mips_elf64_literal_reloc): New function.
  5843. (mips_elf64_gprel32_reloc): Fix formatting.
  5844. (mips_elf64_shift6_reloc): Fix comment. Make static.
  5845. (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
  5846. elf32-mips.c.
  5847. (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
  5848. elf32-mips.c
  5849. (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
  5850. specific relocations.
  5851. (mips_elf64_rtype_to_howto): Enable GNU specific relocations.
  5852. (mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
  5853. (ELF_MAXPAGESIZE): Add comment.
  5854. 2002-07-25 Nick Clifton <nickc@redhat.com>
  5855. * po/sv.po: Updated Swedish translation.
  5856. * po/es.po: Updated Spanish translation.
  5857. * po/fr.po: Updated French translation.
  5858. 2002-07-25 Alan Modra <amodra@bigpond.net.au>
  5859. * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
  5860. as elf_link_record_local_dynamic_symbol.
  5861. (_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
  5862. (elf_link_record_local_dynamic_symbol): Declare. Now returns int.
  5863. * elflink.h (elf_link_record_local_dynamic_symbol): Move to..
  5864. * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
  5865. attempt is made to record a symbol in a discarded section, and
  5866. return `2' in that case.
  5867. 2002-07-24 Nick Clifton <nickc@redhat.com>
  5868. * po/sv.po: Updated Swedish translation.
  5869. * po/es.po: Updated Spanish translation.
  5870. 2002-07-23 Alan Modra <amodra@bigpond.net.au>
  5871. * po/SRC-POTFILES.in: Regenerate.
  5872. * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
  5873. immediately. Remove code handling relocatable linking.
  5874. * elf32-avr.c (elf32_avr_relocate_section): Likewise.
  5875. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  5876. * elf32-fr30.c (elf32_frv_relocate_section): Likewise.
  5877. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  5878. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  5879. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  5880. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  5881. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  5882. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  5883. * elf32-vax.c (elf_vax_relocate_section): Likewise.
  5884. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  5885. * elf32-avr.c (elf_backend_rela_normal): Define.
  5886. * elf32-cris.c: Likewise.
  5887. * elf32-fr30.c: Likewise.
  5888. * elf32-frv.c: Likewise.
  5889. * elf32-h8300.c: Likewise.
  5890. * elf32-hppa.c: Likewise.
  5891. * elf32-ip2k.c: Likewise.
  5892. * elf32-sparc.c: Likewise.
  5893. * elf32-v850.c: Likewise.
  5894. * elf32-vax.c: Likewise.
  5895. * elf64-hppa.c: Likewise.
  5896. * elf64-sparc.c: Likewise.
  5897. * elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
  5898. * elf32-frv.c (elf32_frv_relocate_section): Likewise.
  5899. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  5900. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
  5901. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  5902. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  5903. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  5904. * elf-m10200.c (USE_RELA): Don't define.
  5905. * elf-m10300.c: Likewise.
  5906. * elfarm-oabi.c: Likewise.
  5907. * elf32-i370.c: Likewise.
  5908. * elf32-ip2k.c: Likewise.
  5909. * elf32-m68k.c: Likewise.
  5910. * elf32-mcore.c: Likewise.
  5911. * elf32-ppc.c: Likewise.
  5912. * elf32-s390.c: Likewise.
  5913. * elf32-vax.c: Likewise.
  5914. * elf64-ppc.c: Likewise.
  5915. * elf64-s390.c: Likewise.
  5916. * elf64-x86-64.c: Likewise.
  5917. * elfxx-ia64.c: Likewise.
  5918. * elf32-avr.c (USE_REL): Don't undef.
  5919. * elf32-ip2k.c: Likewise.
  5920. 2002-07-23 Nick Clifton <nickc@redhat.com>
  5921. * elf-bfd.h (struct elf_backend_data): Add new bitfield
  5922. 'want_p_paddr_set_to_zero'.
  5923. * elfxx-target.h: Set default value for want_p_paddr_set_to_zero
  5924. to false;
  5925. * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target.
  5926. * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero.
  5927. 2002-07-23 Gabor Keresztfalvi <keresztg@mail.com>
  5928. * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of
  5929. the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to
  5930. show the Copyright string.
  5931. Minor formatting tidy ups.
  5932. 2002-07-23 Nick Clifton <nickc@redhat.com>
  5933. * po/fr.po: Updated French translation.
  5934. * po/sv.po: Updated Swedish translation.
  5935. 2002-07-23 Alan Modra <amodra@bigpond.net.au>
  5936. * elflink.h (elf_link_input_bfd): Don't change internal symbols
  5937. when outputting relocs.
  5938. 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
  5939. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
  5940. DT_PLTGOT into the dynamic section if there is a PLT.
  5941. 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  5942. * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
  5943. elf32-mips.c.
  5944. (_bfd_mips_elf_write_section): Likewise.
  5945. * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
  5946. (_bfd_mips_elf_write_section): Likewise.
  5947. * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
  5948. (elf32_mips_write_section): Likewise.
  5949. * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
  5950. (_bfd_mips_elf_write_section): Likewise.
  5951. 2002-07-19 Alan Modra <amodra@bigpond.net.au>
  5952. * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
  5953. PT_IA_64_UNWIND segments for a given section.
  5954. 2002-07-17 H.J. Lu <hjl@gnu.org>
  5955. * Makefile.am: Fix a typo.
  5956. * Makefile.in: Regenerate.
  5957. 2002-07-15 Denis Chertykov <denisc@overta.ru>
  5958. Frank Ch. Eigler <fche@redhat.com>
  5959. Ben Elliston <bje@redhat.com>
  5960. Alan Lehotsky <alehotsky@cygnus.com>
  5961. John Healy <jhealy@redhat.com>
  5962. Graham Stott <grahams@redhat.com>
  5963. Jeff Johnston <jjohnstn@redhat.com>
  5964. * Makefile.am: Add support for ip2k.
  5965. * Makefile.in: Regenerate.
  5966. * doc/Makefile.in: Regenerate.
  5967. * archures.c: Add support for ip2k.
  5968. * config.bfd: Add support for ip2k.
  5969. * configure.in: Add support for ip2k.
  5970. * configure: Regenerate.
  5971. * reloc.c: Add support for ip2k.
  5972. * targets.c: Add support for ip2k.
  5973. * bfd-in2.h: Regenerate.
  5974. * libbfd.h: Regenerate.
  5975. * cpu-ip2k.c: New file.
  5976. * elf32-ip2k.c: New file.
  5977. 2002-07-17 Ian Rickards <irickard@arm.com>
  5978. * dwarf2.c (concat_filename): If we can't establish the directory
  5979. just return the filename.
  5980. 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
  5981. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
  5982. 2002-07-16 Alan Modra <amodra@bigpond.net.au>
  5983. * elflink.h: Formatting fixes, tidy prototypes.
  5984. (elf_link_assign_sym_version): Move common code out of loop.
  5985. 2002-07-16 Alan Modra <amodra@bigpond.net.au>
  5986. * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
  5987. reloc section size is zero. Correct reloc output location.
  5988. 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
  5989. * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
  5990. the final type for the e_fsel selector when generating PA2.0W code.
  5991. (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
  5992. relocations.
  5993. 2002-07-14 H.J. Lu <hjl@gnu.org>
  5994. * elflink.h (elf_link_assign_sym_version): Hide the default
  5995. definition if there is a hidden versioned definition.
  5996. 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
  5997. * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
  5998. dynamic reference test in assertion when initializing GOT with
  5999. static contents. Just assert that there are either no dynamic
  6000. sections, the symbol is defined in the regular objects or that the
  6001. symbol is undef weak. Tweak comment.
  6002. (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
  6003. only if the symbol isn't defined in the program and isn't undef
  6004. weak.
  6005. (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
  6006. rid of PLT entry: only do it if the symbol isn't defined in a DSO.
  6007. When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
  6008. (elf_cris_discard_excess_program_dynamics): Don't consider
  6009. ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
  6010. 2002-07-11 Alan Modra <amodra@bigpond.net.au>
  6011. * elf32-i386.c (elf_i386_relocate_section): Don't complain about
  6012. unresolved debugging relocs in dynamic applications.
  6013. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  6014. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  6015. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  6016. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  6017. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  6018. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  6019. 2002-07-10 Alan Modra <amodra@bigpond.net.au>
  6020. * elf64-ppc.c (ONES): Define.
  6021. (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
  6022. missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
  6023. in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
  6024. * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
  6025. (ppc64_elf_set_private_flags): Delete.
  6026. (ppc64_elf_section_from_shdr): Delete.
  6027. (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
  6028. (ppc64_elf_fake_sections): Delete.
  6029. (bfd_elf64_bfd_set_private_flags): Don't define.
  6030. (bfd_elf64_get_symbol_info): Likewise.
  6031. (elf_backend_section_from_shdr): Likewise.
  6032. (elf_backend_fake_sections): Likewise.
  6033. 2002-07-10 Marco Walther <Marco.Walther@sun.com>
  6034. * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
  6035. when not already set.
  6036. * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
  6037. (elf_backend_fake_sections): Define.
  6038. 2002-07-10 Alan Modra <amodra@bigpond.net.au>
  6039. * merge.c (_bfd_merge_section): Remove redundant output_section check.
  6040. Formatting.
  6041. (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
  6042. 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
  6043. * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
  6044. NULL sym_hashes to just before use.
  6045. <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
  6046. symbol with non-default visibility.
  6047. <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
  6048. <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
  6049. Ditto.
  6050. (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
  6051. symbol with non-default visibility.
  6052. (cris_elf_check_relocs): At tests for local symbol before
  6053. increasing h->plt.refcount, also check for non-default
  6054. visibility. Ditto when checking for local symbol to eliminate
  6055. pc-relative runtime relocs.
  6056. 2002-07-08 Alan Modra <amodra@bigpond.net.au>
  6057. * elf.c: Formatting.
  6058. (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
  6059. (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
  6060. (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
  6061. segments.
  6062. 2002-07-07 Mark Mitchell <mark@codesourcery.com>
  6063. Alan Modra <amodra@bigpond.net.au>
  6064. * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
  6065. account the impact of relocation count overflow when computing
  6066. section offsets.
  6067. * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
  6068. or not to apply the PE COFF reloc overflow handling. Fix a
  6069. fencepost error in deciding whether or not to use that technique.
  6070. 2002-07-07 Alan Modra <amodra@bigpond.net.au>
  6071. * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
  6072. change type of locsyms.
  6073. (bfd_elf_get_elf_syms): Declare.
  6074. * elf.c (bfd_elf_get_elf_syms): New function.
  6075. (group_signature): Use bfd_elf_get_elf_syms.
  6076. (bfd_section_from_r_symndx): Likewise.
  6077. * elfcode.h (elf_slurp_symbol_table): Likewise.
  6078. * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
  6079. (elf_link_add_object_symbols): Likewise. Reorganise to increase
  6080. locality of various data structures. Properly free internal relocs.
  6081. (elf_bfd_final_link): Properly free internal relocs.
  6082. (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
  6083. (elf_link_input_bfd): Likewise.
  6084. (elf_gc_mark): Likewise. Properly free internal relocs.
  6085. (elf_gc_sweep): Properly free internal relocs.
  6086. (elf_reloc_symbol_deleted_p): No need to swap syms in.
  6087. (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
  6088. internal relocs.
  6089. * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
  6090. Properly free possibly cached info.
  6091. (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
  6092. (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
  6093. symbol swapping code.
  6094. (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
  6095. Properly free possibly cached info.
  6096. * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
  6097. (mn10300_elf_relax_delete_bytes): Likewise.
  6098. (mn10300_elf_symbol_address_p): Likewise.
  6099. (mn10300_elf_get_relocated_section_contents): Likewise.
  6100. * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
  6101. (elf32_h8_relax_delete_bytes): Likewise.
  6102. (elf32_h8_symbol_address_p): Likewise.
  6103. (elf32_h8_get_relocated_section_contents): Likewise.
  6104. * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
  6105. (m32r_elf_relax_delete_bytes): Likewise.
  6106. (m32r_elf_get_relocated_section_contents): Likewise.
  6107. * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
  6108. elf_section_data to determine whether cached.
  6109. (sh_elf_relax_section): As above for elf-m10200.c.
  6110. (sh_elf_relax_delete_bytes): Likewise.
  6111. (sh_elf_get_relocated_section_contents): Likewise.
  6112. * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
  6113. * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
  6114. reading of local syms.
  6115. * elf64-mmix.c (mmix_elf_relax_section): Likewise.
  6116. * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
  6117. * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
  6118. * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
  6119. relocs.
  6120. * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
  6121. free internal relocs and section contents. Don't read symbols.
  6122. * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
  6123. (elf32_hppa_size_stubs): Don't free local syms.
  6124. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
  6125. reading of local syms. Use bfd_elf_get_elf_syms. Properly free
  6126. possibly cached info.
  6127. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
  6128. * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
  6129. * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
  6130. all_local_syms.
  6131. (get_local_syms): Delete function.
  6132. (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
  6133. on exit.
  6134. (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
  6135. 2002-07-05 Jim Wilson <wilson@redhat.com>
  6136. * syms.c (decode_section_type): New.
  6137. (bfd_decode_symclass): Call decode_section_type.
  6138. 2002-07-04 Jakub Jelinek <jakub@redhat.com>
  6139. * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
  6140. section content start.
  6141. Reported by Michael Schumacher <mike@hightec-rt.com>.
  6142. 2002-07-04 Alan Modra <amodra@bigpond.net.au>
  6143. * section.c (_bfd_strip_section_from_output): Remove unnecessary
  6144. link order code. Don't actually remove the output section here;
  6145. Just set a flag for the linker to do so.
  6146. * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
  6147. sections when setting up output section dynsyms.
  6148. 2002-07-04 Alan Modra <amodra@bigpond.net.au>
  6149. * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
  6150. fudge.
  6151. * elf.c (bfd_section_from_shdr): Work around broken hpux shared
  6152. libs here instead.
  6153. 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
  6154. * elf64-s390.c (create_got_section): Set .got section alignment to
  6155. 8 bytes.
  6156. (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
  6157. 2002-07-02 Alan Modra <amodra@bigpond.net.au>
  6158. * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
  6159. 2002-07-01 Matt Thomas <matt@3am-software.com>
  6160. * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
  6161. to EF_VAX_*.
  6162. 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  6163. * elfxx-mips.c (ABI_64_P): Fix comment.
  6164. (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
  6165. new section names for N64 ABI.
  6166. (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
  6167. (mips_elf_calculate_relocation): Code formatting.
  6168. (mips_elf_create_dynamic_relocation): Likewise.
  6169. (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
  6170. (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
  6171. (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
  6172. in any NewABI.
  6173. (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
  6174. for NewABI.
  6175. (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
  6176. (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
  6177. here, too.
  6178. 2002-07-01 Andreas Schwab <schwab@suse.de>
  6179. * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
  6180. R_X86_64_64 to R_X86_64_RELATIVE.
  6181. 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
  6182. * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
  6183. * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
  6184. Run "make dep-am".
  6185. * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
  6186. host_aout_vec.
  6187. * configure.in (vaxbsd_vec): Add.
  6188. * targets.c (vaxbsd_vec): Add.
  6189. * Makefile.in: Rebuild.
  6190. * configure: Rebuild.
  6191. * po/SRC-POTFILES.in: Rebuild.
  6192. 2002-07-01 Alan Modra <amodra@bigpond.net.au>
  6193. * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
  6194. examining to gc_mark_hook, rather than the bfd.
  6195. (elf_gc_sections): Adjust.
  6196. * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
  6197. * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
  6198. * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
  6199. * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
  6200. * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
  6201. * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
  6202. * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
  6203. * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
  6204. * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
  6205. * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
  6206. * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
  6207. * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
  6208. * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
  6209. * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
  6210. * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
  6211. * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
  6212. * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
  6213. * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
  6214. * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
  6215. * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
  6216. * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
  6217. * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
  6218. * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
  6219. * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
  6220. * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
  6221. * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
  6222. * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
  6223. * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
  6224. redundant local sym tests.
  6225. * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
  6226. (link_hash_newfunc): Init is_entry.
  6227. (ppc64_elf_copy_indirect_symbol): Copy is_entry.
  6228. (ppc64_elf_link_hash_table_create): Init all_local_syms.
  6229. (create_linkage_sections): Use bfd_make_section_anyway rather than
  6230. bfd_make_section.
  6231. (ppc64_elf_mark_entry_syms): New function.
  6232. (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
  6233. up opd entry to function section map.
  6234. (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
  6235. relocs that reference the opd section.
  6236. (edit_opd): New function.
  6237. (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
  6238. (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
  6239. (get_local_syms): Do so here. Exit if we already have local syms.
  6240. Remove bogus comment imported from elf32-hppa.c. Don't attempt to
  6241. read local syms on non-ELF input.
  6242. (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
  6243. than duplicating it's function here. Adjust free of internal
  6244. relocs to suit.
  6245. (ppc64_elf_relocate_section): Adjust local syms in opd section.
  6246. * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
  6247. * elf32-hppa.c (elf32_hppa_size_stubs): Call
  6248. _bfd_elf32_link_read_relocs rather than duplicating it's function
  6249. here. Adjust free of internal relocs to suit.
  6250. 2002-07-01 Andreas Jaeger <aj@suse.de>
  6251. * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
  6252. are not allowed in shared libs code, enforce -fPIC.
  6253. 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
  6254. * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
  6255. trailing zero-sequences when there's previous left-over data.
  6256. 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
  6257. * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
  6258. (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
  6259. and opd_rel_sec in order for starting rela section. Check _raw_size.
  6260. (elf_backend_reloc_type_class): Define.
  6261. 2002-06-27 Kevin Buettner <kevinb@redhat.com>
  6262. * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
  6263. DWARF2 formats.
  6264. 2002-06-27 Alan Modra <amodra@bigpond.net.au>
  6265. * cpu-powerpc.c: Comment on ordering of arch_info.
  6266. * elf32-ppc.c (ppc_elf_object_p): New function.
  6267. (elf_backend_object_p): Define.
  6268. * elf64-ppc.c (ppc64_elf_object_p): New function.
  6269. (elf_backend_object_p): Define.
  6270. 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
  6271. * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
  6272. * configure: Regenerate.
  6273. 2002-06-25 Jason Eckhardt <jle@rice.edu>
  6274. * dwarf2.c (decode_line_info): Check unit->addr_size
  6275. to read in the proper number of prologue bytes.
  6276. 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
  6277. * config.bfd (powerpc-*-aix5*): Only create a selvecs for
  6278. aix5coff64_vec if 64-bit bfd support has been enabled.
  6279. (powerpc64-*-aix5*): Only define if 64-bit bfd support has
  6280. been enabled.
  6281. * targets.c (_bfd_target_vector[]): Only include
  6282. aix5coff64_vec if 64-bit bfd support has been enabled.
  6283. 2002-06-25 Alan Modra <amodra@bigpond.net.au>
  6284. * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
  6285. * elf32-hppa.c (hppa_add_stub): Likewise.
  6286. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
  6287. * elflink.h (elf_add_default_symbol): Fix comment typo.
  6288. (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
  6289. (elf_link_add_object_symbols): Likewise.
  6290. (elf_link_assign_sym_version): Likewise.
  6291. * hash.c (bfd_hash_lookup): Likewise.
  6292. * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
  6293. * section.c (bfd_get_unique_section_name): Likewise.
  6294. * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
  6295. * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
  6296. (assign_section_numbers): Likewise.
  6297. (_bfd_elfcore_make_pseudosection): Likewise.
  6298. (elfcore_grok_lwpstatus): Likewise.
  6299. (elfcore_grok_win32pstatus): Likewise.
  6300. (elfcore_write_note): Constify input params. Use PTR instead of
  6301. void *. Include terminating NUL in namesz. Correct padding.
  6302. Support NULL "name" param. Use memcpy instead of strcpy.
  6303. (elfcore_write_prpsinfo): Constify input params.
  6304. (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
  6305. (elfcore_write_lwpstatus): Likewise.
  6306. (elfcore_write_pstatus): Likewise.
  6307. (elfcore_write_prfpreg): Likewise.
  6308. (elfcore_write_prxfpreg): Likewise.
  6309. * elf-bfd.h (elfcore_write_note): Update declaration.
  6310. (elfcore_write_prpsinfo): Likewise.
  6311. (elfcore_write_prstatus): Likewise.
  6312. (elfcore_write_pstatus): Likewise.
  6313. (elfcore_write_prfpreg): Likewise.
  6314. (elfcore_write_prxfpreg): Likewise.
  6315. (elfcore_write_lwpstatus): Likewise.
  6316. 2002-06-25 Jason Eckhardt <jle@rice.edu>
  6317. * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
  6318. symbols of type stProc and stStaticProc.
  6319. 2002-06-25 Nick Clifton <nickc@redhat.com>
  6320. * ecoff.c: VArious formatting fixes.
  6321. 2002-06-25 Alan Modra <amodra@bigpond.net.au>
  6322. * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
  6323. 2002-06-25 Alan Modra <amodra@bigpond.net.au>
  6324. * aout-adobe.c: Don't compare against "true" or "false.
  6325. * aout-target.h: Likewise.
  6326. * aoutx.h: Likewise.
  6327. * archive.c: Likewise.
  6328. * bout.c: Likewise.
  6329. * cache.c: Likewise.
  6330. * coff-a29k.c: Likewise.
  6331. * coff-alpha.c: Likewise.
  6332. * coff-i386.c: Likewise.
  6333. * coff-mips.c: Likewise.
  6334. * coff-or32.c: Likewise.
  6335. * coff64-rs6000.c: Likewise.
  6336. * coffcode.h: Likewise.
  6337. * coffgen.c: Likewise.
  6338. * cpu-ns32k.c: Likewise.
  6339. * ecoff.c: Likewise.
  6340. * ecofflink.c: Likewise.
  6341. * elf.c: Likewise.
  6342. * elf32-arm.h: Likewise.
  6343. * elf32-cris.c: Likewise.
  6344. * elf32-d30v.c: Likewise.
  6345. * elf32-i386.c: Likewise.
  6346. * elf32-mcore.c: Likewise.
  6347. * elf32-ppc.c: Likewise.
  6348. * elf32-sh.c: Likewise.
  6349. * elf32-sh64.c: Likewise.
  6350. * elf32-v850.c: Likewise.
  6351. * elf64-alpha.c: Likewise.
  6352. * elf64-sh64.c: Likewise.
  6353. * elfcode.h: Likewise.
  6354. * elfcore.h: Likewise.
  6355. * elflink.h: Likewise.
  6356. * elfxx-mips.c: Likewise.
  6357. * i386os9k.c: Likewise.
  6358. * ieee.c: Likewise.
  6359. * libbfd.c: Likewise.
  6360. * linker.c: Likewise.
  6361. * mmo.c: Likewise.
  6362. * nlm32-alpha.c: Likewise.
  6363. * nlm32-i386.c: Likewise.
  6364. * nlm32-ppc.c: Likewise.
  6365. * nlm32-sparc.c: Likewise.
  6366. * nlmcode.h: Likewise.
  6367. * oasys.c: Likewise.
  6368. * pdp11.c: Likewise.
  6369. * peicode.h: Likewise.
  6370. * reloc.c: Likewise.
  6371. * som.c: Likewise.
  6372. * srec.c: Likewise.
  6373. * tekhex.c: Likewise.
  6374. * vms.c: Likewise.
  6375. * xcofflink.c: Likewise.
  6376. * elf64-sparc.c: Edit comment to not use "== false".
  6377. * aoutf1.h: Don't use "? true : false".
  6378. * ecoff.c: Likewise.
  6379. * format.c: Likewise.
  6380. * ieee.c: Likewise.
  6381. * linker.c: Likewise.
  6382. * mmo.c: Likewise.
  6383. * oasys.c: Likewise.
  6384. 2002-06-23 H.J. Lu <hjl@gnu.org>
  6385. * elflink.h (elf_link_add_archive_symbols): For the default
  6386. version, check references with only one `@' first.
  6387. 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
  6388. * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
  6389. function.
  6390. (allocate_global_data_dlt): Don't add millicode symbols to dynamic
  6391. symbol table.
  6392. (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
  6393. (elf64_hppa_size_dynamic_sections): Revise to use
  6394. elf64_hppa_mark_milli_and_exported_functions.
  6395. (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
  6396. symbols out of dynamic symbol table.
  6397. 2002-06-23 Alan Modra <amodra@bigpond.net.au>
  6398. * Makefile.in: Regenerate.
  6399. * libbfd.h: Regenerate.
  6400. * bfd-in2.h: Regenerate.
  6401. * configure: Regenerate.
  6402. * po/SRC-POTFILES.in: Regenerate.
  6403. * elflink.h: Comment typo fixes.
  6404. 2002-06-23 H.J. Lu <hjl@gnu.org>
  6405. * elf-bfd.h (elf_link_loaded_list): New structure.
  6406. (elf_link_hash_table): Add "loaded".
  6407. * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
  6408. * elflink.h (elf_link_check_versioned_symbol): New function.
  6409. (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
  6410. 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
  6411. * elflink.h (size_dynamic_sections): If the target does not
  6412. support an ELF style hash table, return true, indicating that
  6413. nothing needed to be done, rather than false, indicating that the
  6414. section's size could not be computed.
  6415. 2002-06-18 Dave Brolley <brolley@redhat.com>
  6416. From Catherine Moore, Michael Meissner, Dave Brolley:
  6417. * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
  6418. * targets.c: Support bfd_elf32_frv_vec.
  6419. * reloc.c: Add FRV relocs.
  6420. * configure.in: Add support for bfd-elf32-frv-vec.
  6421. * config.bfd (targ_cpu): Add support for frv-*-elf.
  6422. * archures.c: Add frv arch and machines.
  6423. * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
  6424. (ALL_MACHINES_CFILES): Add cpu-frv.c.
  6425. (BFD32_BACKENDS): Add elf32-frv.lo.
  6426. (BFD32_BACKENDS_CFILES): Add elf32-frv.c
  6427. (cpu-frv.lo): New target.
  6428. (elf32-frv.lo): New target.
  6429. * cpu-frv.c: New file.
  6430. * elf32-frv.c: New file.
  6431. 2002-06-18 Jakub Jelinek <jakub@redhat.com>
  6432. * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
  6433. e_shnum == 0.
  6434. Only read the first section header if e_shoff is non-zero.
  6435. Don't consider e_shstrndx if there are no sections.
  6436. 2002-06-17 Tom Rix <trix@redhat.com>
  6437. * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
  6438. R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
  6439. complain_overflow_bitfield.
  6440. 2002-06-17 Alan Modra <amodra@bigpond.net.au>
  6441. * opncls.c (bfd_openr): Remove redundant bfd_set_error.
  6442. (bfd_fdopenr): Likewise.
  6443. (bfd_openstreamr): Likewise.
  6444. (bfd_openw): Likewise.
  6445. * targets.c: Sort target vecs.
  6446. (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
  6447. bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
  6448. bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
  6449. bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
  6450. * configure.in: Sort target vecs. Add m88kmach3_vec.
  6451. * configure: Regenerate.
  6452. 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
  6453. * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
  6454. bpo_reloc_no to break sort order ties, not address of items.
  6455. 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
  6456. * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
  6457. Skip excluded sections in determing __gp value.
  6458. (elf_hppa_final_link_relocate): Use the symbol's address in
  6459. R_PARISC_FPTR64 relocations that don't need an opd entry.
  6460. * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
  6461. (elf64_hppa_finalize_dynreloc): Likewise.
  6462. (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
  6463. (elf64_hppa_finish_dynamic_symbol): Break up assert.
  6464. 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
  6465. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
  6466. alignment for .bss, .data and .text sections so that sse and sse2
  6467. code will work.
  6468. * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  6469. 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
  6470. config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
  6471. sh[1234]*-elf*.
  6472. 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
  6473. * elflink.h (elf_bfd_final_link): Improve error handling for missing
  6474. dynamic sections.
  6475. * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
  6476. for a symbol that has no output section.
  6477. (allocate_dynrel_entries): Correct comment.
  6478. (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
  6479. unless we want one.
  6480. (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
  6481. (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
  6482. with no section. Remove unnecessary parentheses.
  6483. 2002-06-11 Tom Rix <trix@redhat.com>
  6484. * coffcode.h (coff_compute_section_file_positions): Add data
  6485. section to AIX loader alignment check.
  6486. * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
  6487. alignment to 4 bytes.
  6488. (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
  6489. power accessor macro.
  6490. (do_shared_object_padding): Remove invalid assertion.
  6491. 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
  6492. * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
  6493. for removed output sections.
  6494. 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
  6495. * merge.c (merge_strings): Use htab_create_alloc with calloc, not
  6496. htab_alloc.
  6497. * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
  6498. 2002-06-08 H.J. Lu <hjl@gnu.org>
  6499. * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
  6500. work around a long long bug in gcc 2.96 on mips.
  6501. 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
  6502. * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
  6503. (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
  6504. Regenerate dependency lists.
  6505. * Makefile.in: Regenerate.
  6506. * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
  6507. vax1knetbsd_vec to targ_selvecs.
  6508. * configure.in: Add vax1knetbsd_vec.
  6509. * configure: Regenerate.
  6510. * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
  6511. * vax1knetbsd.c: New file.
  6512. * vaxnetbsd.c: Update copyright years.
  6513. (TARGET_PAGE_SIZE): Set to 0x1000.
  6514. (DEFAULT_MID): Set to M_VAX4K_NETBSD.
  6515. 2002-06-08 Matt Thomas <matt@3am-software.com>
  6516. * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
  6517. 2002-06-08 Alan Modra <amodra@bigpond.net.au>
  6518. * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
  6519. 2002-06-08 Alan Modra <amodra@bigpond.net.au>
  6520. * Makefile.am: Run "make dep-am".
  6521. * Makefile.in: Regenerate.
  6522. * armnetbsd.c: Replace CONST with const.
  6523. * corefile.c: Likewise.
  6524. * elf32-dlx.c: Likewise.
  6525. * elf64-mips.c: Likewise.
  6526. * mmo.c: Likewise.
  6527. * ns32knetbsd.c: Likewise.
  6528. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
  6529. table is elf64-sparc.
  6530. 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  6531. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
  6532. Fix RELA addends to get not shifted in the result. Don't do special
  6533. handling of R_MIPS_64 for NewABI.
  6534. 2002-06-07 Alan Modra <amodra@bigpond.net.au>
  6535. * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
  6536. (NAME(aout,slurp_reloc_table)): Likewise.
  6537. * coff-mips.c (mips_relax_section): Use bfd_zalloc.
  6538. * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
  6539. (xcoff_write_archive_contents_big): Likewise.
  6540. (xcoff_generate_rtinit): Likewise.
  6541. (xcoff_generate_rtinit): Likewise, and check error return.
  6542. * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
  6543. * coffgen.c (coff_section_symbol): Use bfd_zalloc.
  6544. (coff_get_normalized_symtab): Likewise.
  6545. (coff_make_empty_symbol): Likewise.
  6546. (bfd_coff_set_symbol_class): Likewise.
  6547. * cofflink.c (coff_link_add_symbols): Likewise.
  6548. * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
  6549. * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
  6550. (bfd_ecoff_write_accumulated_debug): Likewise.
  6551. * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
  6552. * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
  6553. * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
  6554. * ieee.c (do_with_relocs): Use bfd_zalloc.
  6555. * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
  6556. * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
  6557. (NAME(aout,slurp_reloc_table)): Likewise.
  6558. (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
  6559. * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
  6560. * som.c (som_build_and_write_symbol_table): Likewise.
  6561. (som_slurp_string_table): Likewise.
  6562. (som_slurp_symbol_table): Likewise.
  6563. (som_bfd_ar_write_symbol_stuff): Likewise.
  6564. * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
  6565. * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
  6566. * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
  6567. * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
  6568. * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
  6569. 2002-06-07 Alan Modra <amodra@bigpond.net.au>
  6570. * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
  6571. "group" union.
  6572. (elf_group_name): Update.
  6573. (elf_group_id): Define.
  6574. (bfd_elf_set_group_contents): Declare.
  6575. * elf.c (elf_fake_sections): Qualify use of elf_group_name.
  6576. (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
  6577. ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
  6578. that sym for the signature.
  6579. (_bfd_elf_compute_section_file_positions): Don't call
  6580. set_group_contents for "ld -r" case.
  6581. (swap_out_syms): Use bfd_zalloc.
  6582. * elflink.h (elf_link_add_archive_symbols): Likewise.
  6583. (NAME(bfd_elf,size_dynamic_sections)): Likewise.
  6584. (elf_bfd_final_link): Call bfd_elf_set_group_contents.
  6585. 2002-06-07 Alan Modra <amodra@bigpond.net.au>
  6586. * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
  6587. relocs in opd for non-shared too.
  6588. 2002-06-06 Jeffrey Law <law@redhat.com>
  6589. * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
  6590. relocations.
  6591. 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
  6592. * merge.c: Include libiberty.h.
  6593. * elf-strtab.c: Include libiberty.h.
  6594. 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
  6595. * peXXigen.c (pe_print_idata): Remove unused variable.
  6596. 2002-06-06 David Heine <dlheine@tensilica.com>
  6597. * elf.c (assign_file_positions_for_segments): Remove unallocated
  6598. sections from the section to segment mapping for PT_LOAD segments.
  6599. Update comment about empty loadable segments.
  6600. 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
  6601. * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
  6602. is within the .stabstr section.
  6603. 2002-06-06 Alan Modra <amodra@bigpond.net.au>
  6604. * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
  6605. are "const PTR", not "const PTR *".
  6606. (bfd_elf32_swap_symbol_in): Likewise.
  6607. (bfd_elf64_swap_symbol_in): Likewise.
  6608. * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
  6609. (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
  6610. * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
  6611. (elf_link_add_object_symbols): Likewise.
  6612. (elf_link_record_local_dynamic_symbol): Likewise.
  6613. (elf_link_input_bfd): Likewise.
  6614. (elf_gc_mark): Likewise.
  6615. (elf_reloc_symbol_deleted_p): Likewise.
  6616. * elf-m10200.c (mn10200_elf_relax_section): Likewise.
  6617. (mn10200_elf_relax_delete_bytes): Likewise.
  6618. (mn10200_elf_symbol_address_p): Likewise.
  6619. (mn10200_elf_get_relocated_section_contents): Likewise.
  6620. * elf-m10300.c (mn10300_elf_relax_section): Likewise.
  6621. (mn10300_elf_relax_section): Likewise.
  6622. (mn10300_elf_relax_delete_bytes): Likewise.
  6623. (mn10300_elf_symbol_address_p): Likewise.
  6624. (mn10300_elf_get_relocated_section_contents): Likewise.
  6625. * elf32-h8300.c (elf32_h8_relax_section): Likewise.
  6626. (elf32_h8_relax_delete_bytes): Likewise.
  6627. (elf32_h8_symbol_address_p): Likewise.
  6628. (elf32_h8_get_relocated_section_contents): Likewise.
  6629. * elf32-hppa.c (get_local_syms): Likewise.
  6630. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
  6631. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
  6632. * elf32-sh.c (sh_elf_relax_section): Likewise.
  6633. (sh_elf_relax_delete_bytes): Likewise.
  6634. (sh_elf_get_relocated_section_contents): Likewise.
  6635. * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
  6636. * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
  6637. * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
  6638. * elf64-mmix.c (mmix_elf_relax_section): Likewise.
  6639. * elf64-ppc.c (get_local_syms): Likewise.
  6640. * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
  6641. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  6642. 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
  6643. * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
  6644. 2002-06-05 Alan Modra <amodra@bigpond.net.au>
  6645. * elf.c (group_signature): Swap in the whole symbol, and handle
  6646. extracting section symbol names.
  6647. (setup_group): Add comment.
  6648. (set_group_contents): When called from objcopy or ld, arrange for
  6649. section contents to be written. Write group member output section
  6650. indices to allow objcopy to reorganize sections.
  6651. (_bfd_elf_copy_private_section_data): Copy group info.
  6652. * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
  6653. (bfd_elf32_swap_symbol_in): Update prototype.
  6654. (bfd_elf64_swap_symbol_in): Likewise.
  6655. * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
  6656. (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
  6657. * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
  6658. (elf_link_add_object_symbols): Likewise.
  6659. (elf_link_record_local_dynamic_symbol): Likewise.
  6660. (elf_link_input_bfd): Likewise.
  6661. (elf_gc_mark): Likewise.
  6662. (elf_reloc_symbol_deleted_p): Likewise.
  6663. * elf-m10200.c (mn10200_elf_relax_section): Likewise.
  6664. (mn10200_elf_relax_delete_bytes): Likewise.
  6665. (mn10200_elf_symbol_address_p): Likewise.
  6666. (mn10200_elf_get_relocated_section_contents): Likewise.
  6667. * elf-m10300.c (mn10300_elf_relax_section): Likewise.
  6668. (mn10300_elf_relax_section): Likewise.
  6669. (mn10300_elf_relax_delete_bytes): Likewise.
  6670. (mn10300_elf_symbol_address_p): Likewise.
  6671. (mn10300_elf_get_relocated_section_contents): Likewise.
  6672. * elf32-h8300.c (elf32_h8_relax_section): Likewise.
  6673. (elf32_h8_relax_delete_bytes): Likewise.
  6674. (elf32_h8_symbol_address_p): Likewise.
  6675. (elf32_h8_get_relocated_section_contents): Likewise.
  6676. * elf32-hppa.c (get_local_syms): Likewise.
  6677. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
  6678. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
  6679. * elf32-sh.c (sh_elf_relax_section): Likewise.
  6680. (sh_elf_relax_delete_bytes): Likewise.
  6681. (sh_elf_get_relocated_section_contents): Likewise.
  6682. * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
  6683. * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
  6684. * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
  6685. * elf64-mmix.c (mmix_elf_relax_section): Likewise.
  6686. * elf64-ppc.c (get_local_syms): Likewise.
  6687. * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
  6688. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  6689. * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
  6690. * elf64-alpha.c (alpha_elf_size_info): Likewise.
  6691. * elf64-hppa.c (hppa64_elf_size_info): Likewise.
  6692. * elf64-mips.c (mips_elf64_size_info): Likewise.
  6693. * elf64-s390.c (s390_elf64_size_info): Likewise.
  6694. * elf64-sparc.c (sparc64_elf_size_info): Likewise.
  6695. 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  6696. * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
  6697. elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
  6698. elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
  6699. _bfd_mips_elf_ignore_discarded_relocs.
  6700. elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
  6701. 2002-06-05 H.J. Lu <hjl@gnu.org>
  6702. * elfxx-mips.c (mips_elf_calculate_relocation): Call
  6703. _bfd_elf_rel_local_sym for STT_SECTION relocations against
  6704. the SEC_MERGE section.
  6705. 2002-06-05 Alan Modra <amodra@bigpond.net.au>
  6706. * coff-alpha.c: Update copyright date.
  6707. * coff-mips.c: Likewise.
  6708. * xcoff-target.h: Likewise.
  6709. * bfd-in.h: Remove "taken from the source" comment.
  6710. * libbfd-in.h: Likewise.
  6711. * libcoff-in.h: Likewise.
  6712. * bfd-in2.h: Regenerate.
  6713. * libbfd.h: Regenerate.
  6714. * libcoff.h: Regenerate.
  6715. * elf.c (bfd_elf_discard_group): Return true.
  6716. * elf-bfd.h (bfd_elf_discard_group): Declare.
  6717. * bfd-in.h (bfd_elf_discard_group): Don't declare here.
  6718. * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
  6719. * bfd.c (bfd_discard_group): Define.
  6720. * targets.c (struct bfd_target): Add _bfd_discard_group.
  6721. (BFD_JUMP_TABLE_LINK): Here too.
  6722. * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
  6723. * aout-adobe.c (aout_32_bfd_discard_group): Define.
  6724. * aout-target.h (MY_bfd_discard_group): Define.
  6725. * aout-tic30.c (MY_bfd_discard_group): Define.
  6726. * binary.c (binary_bfd_discard_group): Define.
  6727. * bout.c (b_out_bfd_discard_group): Define.
  6728. * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
  6729. * coffcode.h (coff_bfd_discard_group): Define.
  6730. * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
  6731. * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
  6732. * i386msdos.c (msdos_bfd_discard_group): Define.
  6733. * i386os9k.c (os9k_bfd_discard_group): Define.
  6734. * ieee.c (ieee_bfd_discard_group): Define.
  6735. * ihex.c (ihex_bfd_discard_group): Define.
  6736. * mmo.c (mmo_bfd_discard_group): Define.
  6737. * nlm-target.h (nlm_bfd_discard_group): Define.
  6738. * oasys.c (oasys_bfd_discard_group): Define.
  6739. * ppcboot.c (ppcboot_bfd_discard_group): Define.
  6740. * som.c (som_bfd_discard_group): Define.
  6741. * srec.c (srec_bfd_discard_group): Define.
  6742. * tekhex.c (tekhex_bfd_discard_group): Define.
  6743. * versados.c (versados_bfd_discard_group): Define.
  6744. * vms.c (vms_bfd_discard_group): Define.
  6745. * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
  6746. * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
  6747. (aix5coff64_vec): Likewise.
  6748. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
  6749. 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
  6750. * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
  6751. (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
  6752. (elf32-sh64-com.lo): New dependency list.
  6753. * Makefile.in: Regenerate.
  6754. * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
  6755. (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
  6756. elf32-sh64-com.lo.
  6757. * configure: Regenerate.
  6758. * elf32-sh64.c (sh64_address_in_cranges)
  6759. (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
  6760. (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
  6761. (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
  6762. * elf32-sh64-com.c: ...here. New file.
  6763. 2002-06-04 Alan Modra <amodra@bigpond.net.au>
  6764. * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
  6765. ATTRIBUTE_UNUSED on used params.
  6766. * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
  6767. before calling bfd_section_from_elf_index on local syms.
  6768. * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
  6769. 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
  6770. * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
  6771. (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
  6772. (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
  6773. (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
  6774. (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
  6775. * Makefile.in: Regenerate.
  6776. * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
  6777. (sh64-*-netbsd*): New targets.
  6778. * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
  6779. bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
  6780. * configure: Regenerate.
  6781. * elf32-sh64-nbsd.c: New file.
  6782. * elf64-sh64-nbsd.c: New file.
  6783. * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
  6784. bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
  6785. bfd_elf64_sh64lnbsd_vec.
  6786. 2002-06-04 Alan Modra <amodra@bigpond.net.au>
  6787. * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
  6788. (bfd_section_from_shdr): Likewise. Set section name of group
  6789. sections from signature.
  6790. (group_signature): Split out from setup_group. Ensure symbol table
  6791. is available.
  6792. (bfd_elf_discard_group): New function.
  6793. (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
  6794. .gnu.linkonce* sections if they are members of a group.
  6795. (set_group_contents): Set GRP_COMDAT flag.
  6796. * section.c (bfd_discard_group): New function.
  6797. * bfd-in.h (bfd_elf_discard_group): Declare.
  6798. * bfd-in2.h: Regenerate.
  6799. * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
  6800. (elf_linkonce_p): Define.
  6801. 2002-06-04 Alan Modra <amodra@bigpond.net.au>
  6802. * elf.c (bfd_section_from_shdr): Make "name" const.
  6803. * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
  6804. * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
  6805. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
  6806. * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
  6807. * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
  6808. * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
  6809. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
  6810. * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
  6811. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
  6812. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
  6813. * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
  6814. 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  6815. * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
  6816. ABI.
  6817. 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
  6818. * elf32-arc.c: Fix formatting.
  6819. * elf32-arm.h: Likewise.
  6820. * elf32-cris.c: Likewise.
  6821. * elf32-dlx.c: Likewise.
  6822. * elf32-hppa.c: Likewise.
  6823. * elf32-i386.c: Likewise.
  6824. * elf32-i386qnx.c: Likewise.
  6825. * elf32-or32.c: Likewise.
  6826. * elf32-s390.c: Likewise.
  6827. * elf32-sh64.c: Likewise.
  6828. * elf32-vax.c: Likewise.
  6829. * elf32-xstormy16.c: Likewise.
  6830. * elf64-alpha.c: Likewise.
  6831. * elf64-mmix.c: Likewise.
  6832. * elf64-ppc.c: Likewise.
  6833. * elf64-s390.c: Likewise.
  6834. * elf64-sh64.c: Likewise.
  6835. * elf64-x86-64.c: Likewise.
  6836. 2002-06-02 Richard Henderson <rth@redhat.com>
  6837. * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
  6838. null when there are no got entries for a symbol.
  6839. (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
  6840. uninitialized variable warning.
  6841. 2002-06-01 Richard Henderson <rth@redhat.com>
  6842. * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
  6843. undefined symbols here.
  6844. (elf64_alpha_relax_section): Do it here. Also test for not
  6845. defined in the current module.
  6846. (elf64_alpha_relocate_section_r): Split out of ...
  6847. (elf64_alpha_relocate_section): ... here. Don't dereference
  6848. NULL when looking up local got entries.
  6849. 2002-06-01 Richard Henderson <rth@redhat.com>
  6850. * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
  6851. symbols from JSR relaxation.
  6852. (elf64_alpha_size_plt_section_1): New.
  6853. (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
  6854. (elf64_alpha_size_rela_got_1): ... here.
  6855. (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
  6856. (elf64_alpha_size_rela_got_section): ... here.
  6857. (elf64_alpha_size_plt_section): New.
  6858. (elf64_alpha_relax_section): Call them.
  6859. (elf64_alpha_size_got_sections): Remove output_bfd arg.
  6860. (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
  6861. 2002-06-01 Richard Henderson <rth@redhat.com>
  6862. * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
  6863. (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
  6864. in shared libraries. Fix DTPRELHI and TPRELHI value.
  6865. (INSN_ADDQ, INSN_RDUNIQ): New.
  6866. (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
  6867. (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
  6868. argument. Reject dynamic symbols. Use LITUSE symbolic constants.
  6869. (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
  6870. Handle GOTDTPREL and GOTTPREL relocations.
  6871. (elf64_alpha_relax_gprelhilo): New.
  6872. (elf64_alpha_relax_tls_get_addr): New.
  6873. (elf64_alpha_relax_find_tls_segment): New.
  6874. (elf64_alpha_relax_section): Handle TLS relocations.
  6875. (ALPHA_ELF_LINK_HASH_TLS_IE): New.
  6876. (elf64_alpha_check_relocs): Set it.
  6877. 2002-06-01 Richard Henderson <rth@redhat.com>
  6878. * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
  6879. * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
  6880. check; don't suppress dynamic relocs for non-allocated sections.
  6881. * elf64-alpha.c: Remove dead code.
  6882. 2002-05-31 Alan Modra <amodra@bigpond.net.au>
  6883. * bfd-in2.h: Regenerate.
  6884. * libbfd.h: Regenerate.
  6885. * po/SRC-POTFILES.in: Regenerate.
  6886. * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
  6887. space for bss .plt.
  6888. 2002-05-31 Graeme Peterson <gp@qnx.com>
  6889. * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
  6890. (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
  6891. Run "make dep-am".
  6892. * Makefile.in: Regenerate.
  6893. * config.bfd: Add i[3456]86-*-nto-qnx* support.
  6894. * configure.in: Add bfd_elf32_i386qnx_vec support.
  6895. * configure: Regenerate.
  6896. * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
  6897. is_contained_by_filepos, and copy_private_bfd_data_p.
  6898. * elf.c (assign_file_positions_for_segments): Call backend
  6899. set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
  6900. (IS_CONTAINED_BY_FILEPOS): Define.
  6901. (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
  6902. (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
  6903. Fix non-K&R call to _bfd_error_handler.
  6904. (_bfd_elf_copy_private_section_data): Use backend
  6905. copy_private_bfd_data_p.
  6906. * elf32-i386.c: Don't include elfxx-target.h when
  6907. ELF32_I386_C_INCLUDED is defined.
  6908. * elf32-i386qnx.c: New QNX elf backend file.
  6909. * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
  6910. elf_backend_is_contained_by_filepos, and
  6911. elf_backend_do_copy_private_bfd_data.
  6912. * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
  6913. 2002-05-31 Alan Modra <amodra@bigpond.net.au>
  6914. * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
  6915. Move other similar defines to start of file.
  6916. 2002-05-30 Tom Rix <trix@redhat.com>
  6917. * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
  6918. * coff64-rs6000.c (xcoff64_rtype2howto): Same.
  6919. 2002-05-30 Richard Henderson <rth@redhat.com>
  6920. * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
  6921. ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
  6922. (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
  6923. (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
  6924. (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
  6925. (struct alpha_elf_obj_tdata): Rename total_got_entries and
  6926. n_local_got_entries to total_got_size and local_got_size.
  6927. (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
  6928. (alpha_got_entry_size): New.
  6929. (elf64_alpha_relax_with_lituse): Use it.
  6930. (elf64_alpha_relax_without_lituse): Likewise.
  6931. (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
  6932. (get_got_entry): New.
  6933. (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
  6934. (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
  6935. (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
  6936. (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
  6937. (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
  6938. (elf64_alpha_calc_got_offsets): Likewise.
  6939. (alpha_dynamic_entries_for_reloc): New.
  6940. (elf64_alpha_calc_dynrel_sizes): Use it.
  6941. (elf64_alpha_size_dynamic_sections): Likewise.
  6942. (elf64_alpha_relocate_section): Handle TLS relocations.
  6943. * reloc.c: Add Alpha TLS relocations.
  6944. * bfd-in2.h, libbfd.h: Rebuild.
  6945. 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
  6946. * peXXigen.c (pe_print_idata): Remove double printed
  6947. import table lines; add Bound-To comment.
  6948. 2002-05-29 Matt Thomas <matt@3am-software.com>
  6949. * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
  6950. (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
  6951. (elf32-vax.lo): New rule.
  6952. * Makefile.in: Regenerate.
  6953. * configure.in (bfd_elf32_vax_vec)
  6954. (vaxnetbsd_vec): New vectors.
  6955. * configure: Regenerate.
  6956. * config.bfd (vax-*-netbsdelf*)
  6957. (vax-*-netbsdaout*)
  6958. (vax-*-netbsd*): New targets.
  6959. * elf32-vax.c: New file.
  6960. * reloc.c: Add VAX relocations.
  6961. * bfd-in2.h: Regenerate.
  6962. * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
  6963. 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
  6964. * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
  6965. and bfd_elf32_bigarm_vec to targ_selvecs.
  6966. 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
  6967. * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
  6968. with auto-imported symbols.
  6969. 2002-05-29 Adam Nemet <anemet@lnxw.com>
  6970. * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
  6971. sections only record bfd.
  6972. (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
  6973. * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
  6974. * bfd-in2.h: Regenerate.
  6975. 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
  6976. * syms.c (_bfd_stab_section_find_nearest_line): Move
  6977. declaration and initialisation of saw_line and saw_func out of
  6978. for loop.
  6979. 2002-05-29 Alan Modra <amodra@bigpond.net.au>
  6980. * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
  6981. (bfd_elf64_get_symbol_info): Define.
  6982. * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
  6983. 2002-05-29 Andrey Volkov <avolkov@transas.com>
  6984. * cpu-h8300.c: Make default h8300 machine first in machine list.
  6985. 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
  6986. * config.bfd: Added DLX configuraton.
  6987. * Makefile.am: Added DLX configuraton.
  6988. * configure.in: Added DLX configuraton.
  6989. * archures.c: Add DLX architecture.
  6990. * reloc.c: Add DLX relocs.
  6991. * targets.c: Added DLX target vector.
  6992. * configure: Regenerate.
  6993. * Makefile.in: Regenreate.
  6994. * bfd-in2.h: Regenreate.
  6995. * elf32-dlx.c: New file: Support DLX target.
  6996. * cpu-dlx.c: New file: Support DLX target.
  6997. 2002-05-25 Alan Modra <amodra@bigpond.net.au>
  6998. * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
  6999. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
  7000. (ppc64_elf_check_relocs): Don't set up function descriptor symbol
  7001. strings to point inside function code sym string.
  7002. (func_desc_adjust): Likewise.
  7003. (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
  7004. 2002-05-24 Michal Ludvig <mludvig@suse.cz>
  7005. * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
  7006. (elf64_x86_64_grok_psinfo): Added.
  7007. 2002-05-24 TAMURA Kent <kent@netbsd.org>
  7008. * config.bfd: Add a target for i386-netbsdpe.
  7009. 2002-05-24 Alan Modra <amodra@bigpond.net.au>
  7010. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
  7011. and is_func_descriptor.
  7012. (func_desc_adjust): Hide function code sym in shared libs unless
  7013. there is a matching exported function descriptor sym.
  7014. 2002-05-23 Jakub Jelinek <jakub@redhat.com>
  7015. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
  7016. for symbols from SHF_TLS section.
  7017. (_bfd_elf_print_private_bfd_data): Add PT_TLS.
  7018. (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
  7019. (map_sections_to_segments): Build PT_TLS segment if necessary.
  7020. (assign_file_positions_for_segments): Likewise.
  7021. (get_program_header_size): Account for PT_TLS segment.
  7022. (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
  7023. SEC_THREAD_LOCAL sections to STT_TLS.
  7024. * reloc.c: Add 386 and IA-64 TLS relocs.
  7025. * section.c (SEC_THREAD_LOCAL): Define.
  7026. (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
  7027. Remove.
  7028. * elflink.h (elf_link_add_object_symbols): Support .tcommon.
  7029. (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
  7030. unconditionally.
  7031. (struct elf_final_link_info): Add first_tls_sec.
  7032. (elf_bfd_final_link): Set first_tls_sec.
  7033. Compute elf_hash_table (info)->tls_segment.
  7034. (elf_link_output_extsym): Handle STT_TLS symbols.
  7035. (elf_link_input_bfd): Likewise.
  7036. * syms.c (BSF_THREAD_LOCAL): Define.
  7037. * bfd-in2.h: Rebuilt.
  7038. * libbfd.h: Rebuilt.
  7039. * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
  7040. elf_i386_mkobject, elf_i386_object_p): New functions.
  7041. (elf_howto_table): Add TLS relocs.
  7042. (elf_i386_reloc_type_lookup): Support TLS relocs.
  7043. (elf_i386_info_to_howto_rel): Likewise.
  7044. (struct elf_i386_link_hash_entry): Add tls_type.
  7045. (struct elf_i386_obj_tdata): New.
  7046. (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
  7047. New macros.
  7048. (struct elf_i386_link_hash_table): Add tls_ldm_got.
  7049. (link_hash_newfunc): Clear tls_type.
  7050. (elf_i386_check_relocs): Support TLS relocs.
  7051. (elf_i386_gc_sweep_hook): Likewise.
  7052. (allocate_dynrelocs): Likewise.
  7053. (elf_i386_size_dynamic_sections): Likewise.
  7054. (elf_i386_relocate_section): Likewise.
  7055. (elf_i386_finish_dynamic_symbol): Likewise.
  7056. (bfd_elf32_mkobject, elf_backend_object_p): Define.
  7057. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
  7058. dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
  7059. want_tprel, want_dtpmod, want_dtprel.
  7060. (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
  7061. (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
  7062. R_IA64_LTOFF_TPREL22.
  7063. (elf_code_to_howto_index): Add TLS relocs.
  7064. (elfNN_ia64_check_relocs): Support TLS relocs.
  7065. (allocate_global_data_got): Account for TLS .got data.
  7066. (allocate_dynrel_entries): Account for TLS dynamic relocations.
  7067. (elfNN_ia64_install_value): Supprt TLS relocs.
  7068. (set_got_entry): Support TLS relocs.
  7069. (elfNN_ia64_relocate_section): Likewise.
  7070. 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
  7071. * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
  7072. BLX reloc round the relocation up rather than down.
  7073. * coff-arm.c (coff_arm_relocate_section): Likewise.
  7074. 2002-05-21 H.J. Lu (hjl@gnu.org)
  7075. * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
  7076. definition.
  7077. 2002-05-22 Alan Modra <amodra@bigpond.net.au>
  7078. * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
  7079. (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
  7080. 2002-05-22 Alan Modra <amodra@bigpond.net.au>
  7081. * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
  7082. unresolved relocs.
  7083. (ppc64_elf_size_dynamic_sections): Check for splt NULL.
  7084. 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7085. * bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
  7086. non-ELF targets.
  7087. 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7088. * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
  7089. an error value.
  7090. * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
  7091. return with false on error.
  7092. (elf_link_input_bfd): Check reloc_emitter return value.
  7093. 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
  7094. * config.bfd (armeb-*-netbsdelf*): New target.
  7095. 2002-05-20 Alan Modra <amodra@bigpond.net.au>
  7096. * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
  7097. at the plt call stub.
  7098. 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7099. * cpu-mips.c (mips_compatible): Don't try to check machine
  7100. compatibility.
  7101. 2002-05-18 Tom Rix <trix@redhat.com>
  7102. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
  7103. 2002-05-17 Alan Modra <amodra@bigpond.net.au>
  7104. * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
  7105. (ppc64_elf_relocate_section): Don't warn about reloc overflow when
  7106. we've already warned about an undefined symbol. Report more
  7107. detail on reloc errors.
  7108. 2002-05-17 Alan Modra <amodra@bigpond.net.au>
  7109. * acinclude.m4 (AM_INSTALL_LIBBFD): New.
  7110. * configure.in: Invoke AM_INSTALL_LIBBFD.
  7111. * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
  7112. (install_libbfd): .. New target.
  7113. (uninstall_libbfd): Likewise.
  7114. (install-bfdlibLTLIBRARIES): Likewise.
  7115. (uninstall-bfdlibLTLIBRARIES): Likewise.
  7116. (bfdlibdir): New.
  7117. (bfdincludedir): New.
  7118. (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
  7119. * aclocal.m4: Regenerate.
  7120. * configure: Regenerate.
  7121. * Makefile.in: Regenerate.
  7122. 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
  7123. * hash.c (bfd_hash_lookup): Remove computation of len from inside
  7124. hash loop.
  7125. 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
  7126. * config.bfd: Add targets for sh64-linux (little endian and
  7127. big endian).
  7128. 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
  7129. * peXXigen.c (pe_print_idata): Do not assume that the first thunk
  7130. is located in the same section as the import table. Instead
  7131. check, and if necessary load the section containing the thunk.
  7132. 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
  7133. * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
  7134. bfd_bread.
  7135. (xcoff64_core_file_matches_executable_p): Replace bfd_read
  7136. with bfd_bread.
  7137. 2002-05-15 Alan Modra <amodra@bigpond.net.au>
  7138. * aix5ppc-core.c: Warning fixes.
  7139. * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
  7140. * aout-target.h (MY_bfd_link_just_syms): Define.
  7141. * aout-tic30.c (MY_bfd_link_just_syms): Define.
  7142. * bfd.c (bfd_link_just_syms): Define.
  7143. * binary.c (binary_bfd_link_just_syms): Define.
  7144. * bout.c (b_out_bfd_link_just_syms): Define.
  7145. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
  7146. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
  7147. * coffcode.h (coff_bfd_link_just_syms): Define.
  7148. * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
  7149. (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
  7150. (_bfd_elf_link_just_syms): Declare.
  7151. * elf.c (_bfd_elf_link_just_syms): New function.
  7152. * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
  7153. sections haven't already been discarded by the linker.
  7154. * elflink.h (elf_link_add_object_symbols): Likewise for stab
  7155. sections and SEC_MERGE sections.
  7156. (elf_bfd_discard_info): Similarly here.
  7157. * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
  7158. * i386msdos.c (msdos_bfd_link_just_syms): Define.
  7159. * i386os9k.c (os9k_bfd_link_just_syms): Define.
  7160. * ieee.c (ieee_bfd_link_just_syms): Define.
  7161. * ihex.c (ihex_bfd_link_just_syms): Define.
  7162. * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
  7163. (_bfd_generic_link_just_syms): Declare.
  7164. * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
  7165. * linker.c (_bfd_generic_link_just_syms): New function.
  7166. * mmo.c (mmo_bfd_link_just_syms): Define.
  7167. * nlm-target.h (nlm_bfd_link_just_syms): Define.
  7168. * oasys.c (oasys_bfd_link_just_syms): Define.
  7169. * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
  7170. * som.c (som_bfd_link_just_syms): Define.
  7171. * srec.c (srec_bfd_link_just_syms): Define.
  7172. * targets.c (struct bfd_target): Add _bfd_link_just_syms.
  7173. (BFD_JUMP_TABLE_LINK): And here.
  7174. * tekhex.c (tekhex_bfd_link_just_syms): Define.
  7175. * versados.c (versados_bfd_link_just_syms): Define.
  7176. * vms.c (vms_bfd_link_just_syms): Define.
  7177. * libbfd.h: Regenerate.
  7178. * bfd-in2.h: Regenerate.
  7179. 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7180. * elf32-mips.c: Remove superfluous definitions copied from
  7181. elfxx-mips.c.
  7182. (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
  7183. SGIish vectors to check the special case.
  7184. (mips_elf_hi16_reloc): Fix comment.
  7185. (mips_elf_got16_reloc): Likewise.
  7186. (_bfd_mips_elf32_gprel16_reloc): Likewise.
  7187. (elf_reloc_map): Code cleanup.
  7188. (mips_reloc_map): Add comment.
  7189. (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
  7190. (mips_elf32_rtype_to_howto): Likewise.
  7191. (mips_elf32_discard_info): Likewise.
  7192. (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
  7193. lead to IRIX compatibility now.
  7194. 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7195. * elfxx-mips.c: Call it IRIX, not Irix in comments.
  7196. 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
  7197. * config.bfd (shle-*-netbsdelf*): Add target which includes
  7198. sh64 support.
  7199. 2002-05-13 David Edelsohn <edelsohn@gnu.org>
  7200. * configure.in: Revert 2002-04-07. Instead, auto-configure
  7201. HAVE_ST_C_IMPL.
  7202. * configure: Regenerate.
  7203. * config.in: Regenerate.
  7204. * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
  7205. or AIX_5_CORE.
  7206. 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
  7207. * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
  7208. corefiles as well.2
  7209. * configure: Regenerate.
  7210. 2002-05-13 Alan Modra <amodra@bigpond.net.au>
  7211. * Makefile.am (install-data-local): Install headers to
  7212. $(exec_prefix)/include.
  7213. * Makefile.in: Regenerate.
  7214. 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
  7215. Daniel Jacobowitz <drow@mvista.com>
  7216. * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
  7217. map BFD_RELOC_RVA.
  7218. 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
  7219. * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
  7220. hppa*-*-openbsd*): New targets.
  7221. * configure.in (alpha*-*-openbsd*): Set COREFILE.
  7222. * configure: Regenerate.
  7223. 2002-05-10 Tom Rix <trix@redhat.com>
  7224. * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
  7225. xcoff64_ppc_relocate_section.
  7226. * coff-rs6000.c : Extern common xcoff_reloc_type functions.
  7227. * libxcoff.h: Common xcoff_reloc_type function declaration.
  7228. 2002-05-10 Alan Modra <amodra@bigpond.net.au>
  7229. * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
  7230. added in 2002-05-09 commit.
  7231. * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
  7232. don't look for stubs on all undefined syms.
  7233. 2002-05-09 Alan Modra <amodra@bigpond.net.au>
  7234. * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
  7235. (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
  7236. pcrel_offset.
  7237. * elf32-i386.c (elf_howto_table): Comments.
  7238. (elf_i386_relocate_section): Handle more relocs for relocatable
  7239. linking and against SEC_MERGE sections.
  7240. 2002-05-08 Alan Modra <amodra@bigpond.net.au>
  7241. * elf32-ppc.c (ppc_elf_create_got): New function.
  7242. (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
  7243. _bfd_elf_create_dynamic_sections. Correct .plt flags.
  7244. (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
  7245. _bfd_elf_create_got_section.
  7246. 2002-05-07 Alan Modra <amodra@bigpond.net.au>
  7247. * elf-bfd.h (struct elf_backend_data): Add rela_normal.
  7248. * elfxx-target.h (elf_backend_rela_normal): Define.
  7249. (elfNN_bed): Init rela_normal.
  7250. * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
  7251. for section symbols here if rela_normal. Simplify abs section test.
  7252. * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
  7253. return immediately. Remove code handling relocatable linking.
  7254. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  7255. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  7256. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  7257. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  7258. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  7259. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  7260. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  7261. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  7262. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  7263. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
  7264. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  7265. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  7266. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  7267. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  7268. * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
  7269. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  7270. * elf-m10200.c (elf_backend_rela_normal): Define.
  7271. * elf-m10300.c (elf_backend_rela_normal): Define.
  7272. * elf32-fr30.c (elf_backend_rela_normal): Define.
  7273. * elf32-i370.c (elf_backend_rela_normal): Define.
  7274. * elf32-i860.c (elf_backend_rela_normal): Define.
  7275. * elf32-m68k.c (elf_backend_rela_normal): Define.
  7276. * elf32-mcore.c (elf_backend_rela_normal): Define.
  7277. * elf32-openrisc.c (elf_backend_rela_normal): Define.
  7278. * elf32-ppc.c (elf_backend_rela_normal): Define.
  7279. * elf32-s390.c (elf_backend_rela_normal): Define.
  7280. * elf32-xstormy16.c (elf_backend_rela_normal): Define.
  7281. * elf64-ppc.c (elf_backend_rela_normal): Define.
  7282. * elf64-s390.c (elf_backend_rela_normal): Define.
  7283. * elf64-x86-64.c (elf_backend_rela_normal): Define.
  7284. * elfxx-ia64.c (elf_backend_rela_normal): Define.
  7285. * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
  7286. * elf32-m32r.c (elf_backend_rela_normal): Likewise.
  7287. 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
  7288. * elf32-arm.h (elf32_arm_final_link_relocate): Convert
  7289. 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
  7290. 2002-05-06 Alan Modra <amodra@bigpond.net.au>
  7291. * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
  7292. when not relocatable. Fix reloc_emitter call for K&R.
  7293. 2002-05-04 Alan Modra <amodra@bigpond.net.au>
  7294. * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
  7295. reloading local sym addend mistakenly removed in 2002-05-01 change.
  7296. * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
  7297. (read_abbrevs): Change "offset" param to bfd_vma.
  7298. (parse_comp_unit): Change "version" and addr_size to unsigned ints.
  7299. Change "abbrev_offset" to bfd_vma.
  7300. (read_indirect_string): Use correct conversion chars in error
  7301. message format string, cast bfd_vma's to unsigned long.
  7302. (read_abbrevs): Likewise.
  7303. (read_attribute_value): Likewise.
  7304. (decode_line_info): Likewise.
  7305. (scan_unit_for_functions): Likewise.
  7306. (parse_comp_unit): Likewise.
  7307. 2002-05-04 Tom Rix <trix@redhat.com>
  7308. * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
  7309. (coff_swap_reloc_out): Same.
  7310. * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
  7311. (xcoff_swap_reloc_out): Same.
  7312. (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
  7313. case some 16 bit relocs. Add reloc value to output.
  7314. (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
  7315. R_RBR. Improve names.
  7316. (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
  7317. (bfd_xcoff_backend_data): Update with new reloc swap names.
  7318. (bfd_pmac_xcoff_backend_data) : Same.
  7319. * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
  7320. (xcoff64_swap_reloc_out): Same.
  7321. (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
  7322. R_POS. Add reloc value to output.
  7323. (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
  7324. bit R_RBR. Improve names, masks.
  7325. (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
  7326. (bfd_xcoff_backend_data): Update with new reloc swap names.
  7327. (bfd_xcoff_aix5_backend_data) : Same.
  7328. 2002-05-04 Alan Modra <amodra@bigpond.net.au>
  7329. * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
  7330. bfd_count top_index, input_list, all_local_syms.
  7331. (elf32_hppa_setup_section_lists): New function, split from
  7332. elf32_hppa_size_stubs.
  7333. (elf32_hppa_next_input_section): Likewise.
  7334. (group_sections): Likewise.
  7335. (get_local_syms): Likewise.
  7336. (elf32_hppa_size_stubs): Adjust for split out functions. Look for
  7337. stubs on undefined syms too.
  7338. (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
  7339. Only access htab elf fields when we have an elf hash table.
  7340. * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
  7341. (elf32_hppa_next_input_section): Declare.
  7342. 2002-05-04 Bob Byrnes <byrnes@curl.com>
  7343. * opncls.c (_bfd_new_bfd_contained_in): Check return value of
  7344. _bfd_new_bfd.
  7345. 2002-05-03 H.J. Lu (hjl@gnu.org)
  7346. * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
  7347. (mips_elf_link_hash_newfunc): Initialize forced_local to false.
  7348. (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
  7349. to hide a global symbol.
  7350. (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
  7351. forced_local to true.
  7352. 2002-05-02 Richard Henderson <rth@redhat.com>
  7353. * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
  7354. vs SHN_UNDEF to zero.
  7355. 2002-05-02 Alan Modra <amodra@bigpond.net.au>
  7356. * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
  7357. 16 bit reloc.
  7358. <R_PPC64_SECTOFF_DS>: Likewise.
  7359. (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
  7360. SECTOFF reloc.
  7361. * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
  7362. (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
  7363. SECTOFF reloc.
  7364. * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
  7365. (ppc64_elf_ha_reloc): New function.
  7366. (ppc64_elf_brtaken_reloc): New function.
  7367. (ppc64_elf_sectoff_reloc): New function.
  7368. (ppc64_elf_sectoff_ha_reloc): New function.
  7369. (ppc64_elf_toc_reloc): New function.
  7370. (ppc64_elf_toc_ha_reloc): New function.
  7371. (ppc64_elf_toc64_reloc): New function.
  7372. (ppc64_elf_unhandled_reloc): New function.
  7373. (ppc64_elf_howto_raw): Use the above.
  7374. <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
  7375. <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
  7376. <R_PPC64_SECTOFF_DS>: Likewise.
  7377. (IS_ABSOLUTE_RELOC): Update.
  7378. (struct ppc_link_hash_table): Add have_undefweak.
  7379. (ppc64_elf_link_hash_table_create): Init.
  7380. (func_desc_adjust): Set have_undefweak.
  7381. (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
  7382. add the .sfpr blr when have_undefweak.
  7383. (ppc64_elf_setup_section_lists): Check hash table flavour.
  7384. (ppc64_elf_next_input_section): Move output_section->owner test to
  7385. ppc64elf.em.
  7386. (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
  7387. and relocatable test. Return TOCstart and don't set elf_gp.
  7388. (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
  7389. offset calculation. Add assert on weak sym branch tweaks.
  7390. * elf64-ppc.h (ppc64_elf_set_toc): Delete.
  7391. (ppc64_elf_toc): Declare.
  7392. (ppc64_elf_next_input_section): Update.
  7393. 2002-05-01 Alan Modra <amodra@bigpond.net.au>
  7394. * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
  7395. file_name.
  7396. 2002-05-01 Alan Modra <amodra@bigpond.net.au>
  7397. * elf64-ppc.c (CROR_151515, CROR_313131): Define.
  7398. (ppc64_elf_relocate_section): Use them. Don't look for plt calls
  7399. on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
  7400. call branches. Correct undefined weak destination.
  7401. (ppc64_elf_func_desc_adjust): Always create at least one blr in
  7402. .sfpr, and correct case where either only savef* or restf* is
  7403. needed.
  7404. Long branch stubs, multiple stub sections.
  7405. * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
  7406. (ppc64_elf_next_input_section): Declare.
  7407. * elf64-ppc.c: Move linker-only prototypes.
  7408. (STUB_SUFFIX): Define.
  7409. (enum ppc_stub_type): New.
  7410. (struct ppc_stub_hash_entry): New.
  7411. (struct ppc_branch_hash_entry): New.
  7412. (struct ppc_link_hash_entry): Add stub_cache, oh.
  7413. (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
  7414. sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
  7415. Rename plt_overflow to stub_error.
  7416. (ppc_stub_hash_lookup): Define.
  7417. (ppc_branch_hash_lookup): Define.
  7418. (stub_hash_newfunc): New function.
  7419. (branch_hash_newfunc): New function.
  7420. (link_hash_newfunc): Init new fields.
  7421. (ppc64_elf_link_hash_table_create): Likewise.
  7422. (ppc64_elf_link_hash_table_free): New function.
  7423. (ppc_stub_name): New function.
  7424. (ppc_get_stub_entry): New function.
  7425. (ppc_add_stub): New function.
  7426. (create_linkage_sections): Use bfd_make_section_anyway. Create
  7427. .branch_lt and .rela.branch_lt sections. Don't create .stub.
  7428. (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
  7429. and set up for plt call stubs. Link func and func desc syms.
  7430. (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
  7431. (func_desc_adjust): Avoid hash lookup when func desc sym available
  7432. via shortcut, and set links when processing.
  7433. (ppc64_elf_hide_symbol): Likewise.
  7434. (allocate_dynrelocs): Don't allocate stub section here.
  7435. (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
  7436. Remove sstub code.
  7437. (ppc_type_of_stub): New function.
  7438. (build_one_stub): Delete.
  7439. (ppc_build_one_stub): New function.
  7440. (ppc_size_one_stub): New function.
  7441. (ppc64_elf_setup_section_lists): New function.
  7442. (ppc64_elf_next_input_section): New function.
  7443. (group_sections): New function.
  7444. (get_local_syms): New function.
  7445. (ppc64_elf_size_stubs): Rewrite.
  7446. (ppc64_elf_build_stubs): Rewrite.
  7447. (ppc64_elf_relocate_section): Look up stub entry for REL24
  7448. relocs. Don't propagate REL14* to dynamic objects. Look for long
  7449. branch stubs if REL14* or REL24 relocs won't reach.
  7450. (bfd_elf64_bfd_link_hash_table_free): Define.
  7451. 2002-04-30 Mark Mitchell <mark@codesourcery.com>
  7452. * config.bfd: Add support for powerpc-*-windiss.
  7453. 2002-04-30 Tom Rix <trix@redhat.com>
  7454. * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
  7455. symbol names into the hash table.
  7456. 2002-04-28 Tom Rix <trix@redhat.com>
  7457. * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
  7458. calulating relocations.
  7459. (xcoff_complain_overflow) : Function table for relocation errors.
  7460. (xcoff_ppc_relocate_section): Use relocation and complain function
  7461. tables.
  7462. (xcoff_complain_overflow_unsigned_func): New complain function.
  7463. (xcoff_complain_overflow_signed_func): Same.
  7464. (xcoff_complain_overflow_bitfield_func): Same.
  7465. (xcoff_complain_overflow_dont_func): Same.
  7466. (xcoff_reloc_type_crel): New recot function.
  7467. (xcoff_reloc_type_br): Same.
  7468. (xcoff_reloc_type_ba): Same.
  7469. (xcoff_reloc_type_toc): Same.
  7470. (xcoff_reloc_type_rel): Same.
  7471. (xcoff_reloc_type_neg): Same.
  7472. (xcoff_reloc_type_pos): Same.
  7473. (xcoff_reloc_type_fail): Same.
  7474. (xcoff_reloc_type_noop): Same.
  7475. * libxcoff.h : Declare common parts for xcoff64.
  7476. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
  7477. and complain function tables.
  7478. 2002-04-28 Alan Modra <amodra@bigpond.net.au>
  7479. * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
  7480. * elf32-hppa.c (elf32_hppa_final_link): Formatting.
  7481. 2002-04-26 Alan Modra <amodra@bigpond.net.au>
  7482. * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
  7483. * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
  7484. * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
  7485. same as the output before calling elf_link_input_bfd.
  7486. * coffcode.h (coff_compute_section_file_positions): Set
  7487. section_tail after shuffling section list.
  7488. 2002-04-24 Christian Groessler <chris@groessler.org>
  7489. * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
  7490. addresses are 23bit with a special layout, not plain 32bit
  7491. values. Prevent relocation of immediate values.
  7492. 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
  7493. * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
  7494. MIPS-16 ASE flags are set, print something to indicate that.
  7495. 2002-04-23 Alan Modra <amodra@bigpond.net.au>
  7496. * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
  7497. under which a plt call stub is used.
  7498. (final_link_relocate): Similarly.
  7499. (allocate_plt_static): Clear h-plabel except when plt entry is
  7500. exclusively used for a plabel.
  7501. (allocate_dynrelocs): Use the above to simplify plt sizing.
  7502. (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
  7503. (elf32_hppa_link_hash_table_create): Init.
  7504. (BL22_RP): Define.
  7505. (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
  7506. (elf32_hppa_check_relocs): Set has_22bit_branch.
  7507. * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
  7508. (final_link_relocate): Likewise.
  7509. 2002-04-22 Jakub Jelinek <jakub@redhat.com>
  7510. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
  7511. search table if some FDE is DW_EH_PE_aligned encoded either.
  7512. (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
  7513. 2002-04-22 Richard Smith <richard@ex-parrot.com>
  7514. Jakub Jelinek <jakub@redhat.com>
  7515. * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
  7516. (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
  7517. encoded personality.
  7518. (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
  7519. for CIE/FDE removal.
  7520. 2002-04-20 Tom Rix <trix@redhat.com>
  7521. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
  7522. 2002-04-20 Alan Modra <amodra@bigpond.net.au>
  7523. * archures.c (bfd_lookup_arch): Move the list order comment..
  7524. (struct bfd_arch_info): ..to where it belongs.
  7525. * bfd-in2.h: Regenerate.
  7526. * archures.c (bfd_lookup_arch): Add comment on list order.
  7527. (bfd_default_set_arch_mach): Use bfd_lookup_arch.
  7528. * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
  7529. is always at head of list.
  7530. 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
  7531. * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
  7532. insert_thumb_branch, record_thumb_to_arm_glue): Suppress
  7533. definition of these functions for ARM_WINCE builds as they are
  7534. not used.
  7535. (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
  7536. for ARM_WINCE builds.
  7537. 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
  7538. * coff-arm.c (bfd_arm_process_before_allocation):
  7539. 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
  7540. * cpu-sh.c (scan_mach): Delete.
  7541. (arch_info_struct): Replace scan_mach with bfd_default_scan.
  7542. (bfd_sh_arch): Likewise.
  7543. 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
  7544. * ihex.c (ihex_write_object_contents): Fix check for records
  7545. crossing 64K boundaries.
  7546. 2002-04-16 Alan Modra <amodra@bigpond.net.au>
  7547. * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
  7548. type rather than just assuming entries are ELF.
  7549. * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
  7550. * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
  7551. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
  7552. * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
  7553. rather than elf_link_hash_entry.
  7554. 2002-04-15 Richard Henderson <rth@redhat.com>
  7555. * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
  7556. n32 binaries.
  7557. 2002-04-15 Michael Snyder <msnyder@redhat.com>
  7558. * opncls.c (bfd_close): Write contents if writeable.
  7559. Minor formatting tidy-ups.
  7560. 2002-04-15 Alan Modra <amodra@bigpond.net.au>
  7561. * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
  7562. 2002-04-12 Michael Snyder <msnyder@redhat.com>
  7563. * bfd-in.h (bfd_get_section_lma): New access macro.
  7564. Minor white-space fix-up.
  7565. 2002-04-12 Alan Modra <amodra@bigpond.net.au>
  7566. * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
  7567. header pad.
  7568. 2002-04-09 DJ Delorie <dj@redhat.com>
  7569. * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
  7570. 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
  7571. * coffcode.h (coff_read_word): New.
  7572. (coff_compute_checksum): New.
  7573. (coff_apply_checksum): New.
  7574. (coff_write_object_contents): Call coff_apply_checksum () to
  7575. apply checksum to PE image.
  7576. 2002-04-08 Randolph Chung <tausq@debian.org>
  7577. * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
  7578. (elf32_hppa_final_link): Split out sorting logic to..
  7579. * elf-hppa.h (elf_hppa_sort_unwind): ..here.
  7580. (elf_hppa_final_link): Call elf_hppa_sort_unwind.
  7581. 2002-04-07 Andrew Cagney <ac131313@redhat.com>
  7582. * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
  7583. pattern.
  7584. * configure: Re-generate.
  7585. 2002-04-07 Andrew Cagney <ac131313@redhat.com>
  7586. * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
  7587. is greater or equal to 4.3.3.
  7588. * configure: Regenerate.
  7589. Fix PR gdb/344.
  7590. 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
  7591. * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
  7592. R_CRIS_32_PCREL>: Fix typo in name.
  7593. (cris_elf_check_relocs): Always create .rela.got here when
  7594. R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
  7595. (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
  7596. assume it's created.
  7597. 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
  7598. * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
  7599. * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
  7600. define.
  7601. * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
  7602. * bfd.c (bfd_link_hash_table_free): Define.
  7603. * binary.c (binary_bfd_link_hash_table_free): Define.
  7604. * bout.c (b_out_bfd_link_hash_table_free): Define.
  7605. * coff-rs6000.c (rs6000coff_vec): Include
  7606. _bfd_generic_link_hash_table_free.
  7607. (pmac_xcoff_vec): Likewise.
  7608. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  7609. (aix5coff64_vec): Likewise.
  7610. * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
  7611. * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
  7612. (bfd_elf32_bfd_link_hash_table_free): Define.
  7613. * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
  7614. (bfd_elf32_bfd_link_hash_table_free): Define.
  7615. * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
  7616. define.
  7617. * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
  7618. * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
  7619. * ieee.c (ieee_bfd_link_hash_table_free): Define.
  7620. * ihex.c (ihex_bfd_link_hash_table_free): Define.
  7621. * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
  7622. (_bfd_generic_link_hash_table_free): Add prototype.
  7623. * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
  7624. * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
  7625. * linker.c (_bfd_generic_link_hash_table_free): New function.
  7626. * mmo.c (mmo_bfd_link_hash_table_free): Define.
  7627. * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
  7628. * oasys.c (oasys_bfd_link_hash_table_free): Define.
  7629. * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
  7630. * som.c (som_bfd_link_hash_table_free): Define.
  7631. * srec.c (srec_bfd_link_hash_table_free): Define.
  7632. * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
  7633. * versados.c (versados_bfd_link_hash_table_free): Define.
  7634. * vms.c (vms_bfd_link_hash_table_free): New function.
  7635. * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
  7636. * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
  7637. instead of bfd_alloc.
  7638. * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
  7639. * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
  7640. * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
  7641. * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
  7642. * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
  7643. * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
  7644. * elf.c (_bfd_elf_link_hash_table_create): Likewise.
  7645. * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
  7646. * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
  7647. * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
  7648. * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
  7649. * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
  7650. * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
  7651. * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
  7652. * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
  7653. * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
  7654. * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
  7655. * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
  7656. * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
  7657. * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
  7658. * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
  7659. * linker.c (_bfd_generic_link_hash_table_create): Likewise.
  7660. * m68klinux.c (linux_link_hash_table_create): Likewise.
  7661. * sparclinux.c (linux_link_hash_table_create): Likewise.
  7662. * sunos.c (sunos_link_hash_table_create): Likewise.
  7663. * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
  7664. * targets.c: Add _bfd_link_hash_table_free to xvec.
  7665. * bfd-in2.h: Regenerate.
  7666. * libbfd.h: Regenerate.
  7667. * libcoff.h: Regenerate.
  7668. 2002-04-04 Alan Modra <amodra@bigpond.net.au>
  7669. * dep-in.sed: Cope with absolute paths.
  7670. * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
  7671. Run "make dep-am".
  7672. * Makefile.in: Regenerate.
  7673. * coff-arm.c: Fix copyright date.
  7674. * cpu-h8300.c: Likewise.
  7675. * cpu-i370.c: Likewise.
  7676. * cpu-s390.c: Likewise.
  7677. * cpu-mips.c: Likewise.
  7678. * po/SRC-POTFILES.in: Regenerate.
  7679. 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  7680. * Makefile.am: Add elfxx-mips.c to the known backends.
  7681. (elf32-mips.lo): remove dependency to coff/external.h.
  7682. * Makefile.in: Regenerate.
  7683. * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
  7684. Remove elf32-mips.lo from 64 bit vectors. Update dependencies
  7685. accordingly.
  7686. * configure: Regenerate.
  7687. * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
  7688. (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
  7689. (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
  7690. MIPS specific backend functions.
  7691. * elf32-mips.c: Moved most code to elfxx-mips.c.
  7692. (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
  7693. static.
  7694. (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
  7695. (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
  7696. (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
  7697. (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
  7698. interface to allow selection of the right REL or RELA howto table.
  7699. (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
  7700. static. Let it refuse n32 objects.
  7701. (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
  7702. (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
  7703. (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
  7704. (elf32_mips_ignore_discarded_relocs): Rename from
  7705. _bfd_elf32_mips_ignore_discarded_relocs.
  7706. (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
  7707. (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
  7708. (elf_mips_howto_table_rela): Remove.
  7709. * elf64-mips.c: Moved most code to elfxx-mips.c.
  7710. (bfd_elf64_bfd_reloc_type_lookup): Make static.
  7711. (mips_elf64_rtype_to_howto): New function.
  7712. (mips_elf64_object_p): Likewise.
  7713. (elf64_mips_irix_compat): Likewise.
  7714. * elfxx-mips.c: New file containing common code merged together from
  7715. elf32-mips.c and elf64-mips.c.
  7716. * elfxx-mips.h: New file containing MIPS specific prototypes from
  7717. elf-bfd.h.
  7718. * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
  7719. elf_backend_mips_rtype_to_howto.
  7720. 2002-04-04 Alan Modra <amodra@bigpond.net.au>
  7721. * srec.c (MAXCHUNK, Chunk): Revise comments.
  7722. (srec_write_record): Correct buffer size.
  7723. (srec_write_header): Do without intermediate buffer.
  7724. (srec_write_section): Validate Chunk.
  7725. (srec_write_terminator): Pass NULL instead of dummy buffer.
  7726. (srec_write_symbols): Pass file and symbol names directly to
  7727. bfd_bwrite so sprintf won't overflow buffer.
  7728. 2002-04-03 Jakub Jelinek <jakub@redhat.com>
  7729. * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
  7730. PC relative relocs against hidden symbols.
  7731. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  7732. 2002-04-03 Alan Modra <amodra@bigpond.net.au>
  7733. * elf.c (_bfd_elf_make_section_from_shdr): When setting section
  7734. LMAs, loop over segments until p_vaddr and p_memsz specify an
  7735. extent enclosing the section.
  7736. 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
  7737. * ihex.c (ihex_write_object_contents): Do not allow records to
  7738. cross a 64K boundary - wrap if necessary.
  7739. 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
  7740. * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
  7741. which caused the returned LWP ID to always be 0.
  7742. 2002-04-01 Richard Henderson <rth@redhat.com>
  7743. * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
  7744. (elf32_sparc_relocate_section): Use it to figure out when to
  7745. initialize .got entries.
  7746. * elf64-sparc.c: Similarly.
  7747. 2002-03-28 Alan Modra <amodra@bigpond.net.au>
  7748. * linker.c (link_action): Ignore duplicate warning syms.
  7749. (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
  7750. * elflink.h (elf_adjust_dynstr_offsets): Likewise.
  7751. (elf_adjust_dynamic_symbol): Likewise.
  7752. (elf_export_symbol): Likewise.
  7753. (elf_link_find_version_dependencies): Likewise.
  7754. (elf_link_assign_sym_version): Likewise.
  7755. (elf_link_sec_merge_syms): Likewise.
  7756. (elf_link_output_extsym): Likewise.
  7757. (elf_gc_sweep_symbol): Likewise.
  7758. (elf_gc_propagate_vtable_entries_used): Likewise.
  7759. (elf_gc_smash_unused_vtentry_relocs): Likewise.
  7760. (elf_gc_allocate_got_offsets): Likewise.
  7761. (elf_collect_hash_codes): Likewise.
  7762. * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
  7763. * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
  7764. (elf_hppa_remark_useless_dynamic_symbols): Likewise.
  7765. * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
  7766. * elf32-arm.h (elf32_arm_discard_copies): Likewise.
  7767. * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
  7768. (elf_cris_discard_excess_dso_dynamics): Likewise.
  7769. * elf32-hppa.c (clobber_millicode_symbols): Likewise.
  7770. (mark_PIC_calls): Likewise.
  7771. (allocate_plt_static): Likewise.
  7772. (allocate_dynrelocs): Likewise.
  7773. (readonly_dynrelocs): Likewise.
  7774. * elf32-i386.c (allocate_dynrelocs): Likewise.
  7775. (readonly_dynrelocs): Likewise.
  7776. * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
  7777. * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
  7778. * elf32-mips.c (mips_elf_output_extsym): Likewise.
  7779. (mips_elf_sort_hash_table_f): Likewise.
  7780. (mips_elf_check_mips16_stubs): Likewise.
  7781. * elf32-s390.c (allocate_dynrelocs): Likewise.
  7782. (readonly_dynrelocs): Likewise.
  7783. * elf32-sh.c (sh_elf_discard_copies): Likewise.
  7784. * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
  7785. (xstormy16_relax_plt_realloc): Likewise.
  7786. * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
  7787. (elf64_alpha_output_extsym): Likewise.
  7788. * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
  7789. * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
  7790. (mips_elf64_check_mips16_stubs): Likewise.
  7791. (mips_elf64_output_extsym): Likewise.
  7792. * elf64-ppc.c (func_desc_adjust): Likewise.
  7793. (allocate_dynrelocs): Likewise.
  7794. (readonly_dynrelocs): Likewise.
  7795. * elf64-s390.c (allocate_dynrelocs): Likewise.
  7796. (readonly_dynrelocs): Likewise.
  7797. * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
  7798. * elf64-x86-64.c (allocate_dynrelocs): Likewise.
  7799. (readonly_dynrelocs): Likewise.
  7800. * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
  7801. * aoutx.h (aout_link_write_other_symbol): Likewise.
  7802. * cofflink.c (_bfd_coff_write_task_globals): Likewise.
  7803. (_bfd_coff_write_global_sym): Likewise.
  7804. * i386linux.c (linux_tally_symbols): Likewise.
  7805. * m68klinux.c (linux_tally_symbols): Likewise.
  7806. * sparclinux.c (linux_tally_symbols): Likewise.
  7807. * pdp11.c (aout_link_write_other_symbol): Likewise.
  7808. * sunos.c (sunos_scan_dynamic_symbol): Likewise.
  7809. * xcofflink.c (xcoff_build_ldsyms): Likewise.
  7810. (xcoff_write_global_symbol): Likewise.
  7811. * cofflink.c (_bfd_coff_final_link): Formatting.
  7812. * cpu-mips.c (mips_compatible): Make static, prototype.
  7813. * elf32-i386.c (elf_i386_check_relocs): Formatting.
  7814. * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
  7815. * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
  7816. * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
  7817. (mips_elf64_final_link): Likewise.
  7818. * elflink.h (elf_link_find_version_dependencies): Remove duplicate
  7819. prototype.
  7820. 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
  7821. * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
  7822. (SWAP_OUT_RELOC_OFFSET): Define.
  7823. 2002-03-27 Gregory Steuck <greg@nest.cx>
  7824. * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
  7825. terminating NULL if empty symbol table.
  7826. (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
  7827. 2002-03-26 H.J. Lu (hjl@gnu.org)
  7828. * elflink.h (elf_link_input_bfd): Revert the last change since
  7829. the gcc exception handling isn't fixed yet.
  7830. 2002-03-26 H.J. Lu (hjl@gnu.org)
  7831. * elflink.h (elf_link_input_bfd): Complain about relocations
  7832. against local symbols in discarded sections.
  7833. 2002-03-26 Alan Modra <amodra@bigpond.net.au>
  7834. * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
  7835. 2002-03-23 Alan Modra <amodra@bigpond.net.au>
  7836. * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
  7837. section file offset for !SEC_LOAD sections.
  7838. 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
  7839. * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
  7840. <case R_ARM_GOT>): Handle relocations to Thumb functions.
  7841. 2002-03-21 Alan Modra <amodra@bigpond.net.au>
  7842. * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
  7843. Whitespace changes.
  7844. * archive.c: Update copyright date.
  7845. * bfd-in2.h: Regenerate.
  7846. * libbfd.h: Regenerate.
  7847. * Makefile.am: Run "make dep-am"
  7848. * Makefile.in: Regenerate.
  7849. * po/SRC-POTFILES.in: Regenerate.
  7850. 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
  7851. * dwarf2.c (struct funcinfo): Move up.
  7852. (lookup_address_in_function_table): New argument function_ptr.
  7853. Set it.
  7854. (lookup_address_in_line_table): New argument function. If function
  7855. is non-NULL, use it to handle ``addr'' before the first line note of
  7856. the function.
  7857. (comp_unit_find_nearest_line): Update and swap calls to
  7858. lookup_address_in_function_table and lookup_address_in_line_table.
  7859. * syms.c (_bfd_stab_section_find_nearest_line): Use the first
  7860. N_SLINE encountered if we see an N_FUN before any N_SLINE.
  7861. 2002-03-20 Tom Rix <trix@redhat.com>
  7862. * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
  7863. _bfd_xcoff_generic_stat_arch_elt. Fix format check.
  7864. * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
  7865. 2002-03-19 Tom Rix <trix@redhat.com>
  7866. * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
  7867. dynamic objects in archives.
  7868. 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
  7869. * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
  7870. STT_NOTYPE symbols to STT_OBJECT.
  7871. 2002-03-18 Jan Hubicka <jh@suse.cz>
  7872. * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
  7873. 2002-03-18 Tom Rix <trix@redhat.com>
  7874. * aix5ppc.core.c : New file for AIX 5 64 bit core support.
  7875. * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
  7876. * coff-rs6000 (do_pad) : New function for archive padding.
  7877. (do_copy) : New function for object file copying in archives.
  7878. (do_shared_object_padding) : New function for padding shared
  7879. objects to their text section alignment in archives.
  7880. (bfd_xcoff_ar_achive_set_magic) : Stub.
  7881. (xcoff_write_armap_big) : Use do_copy and do_pad.
  7882. (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
  7883. do_copy and do_pad.
  7884. * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
  7885. bfd_xcoff_magic_number.
  7886. (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
  7887. fop.
  7888. (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
  7889. (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
  7890. (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
  7891. * rs6000-core.c : Update copyright date.
  7892. * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
  7893. csectpp.
  7894. * coffcode.h (coff_new_section_hook) : Use new accessor macros.
  7895. (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
  7896. (coff_set_flags) : Use bfd_xcoff_magic_number.
  7897. * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
  7898. * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
  7899. * Makefile.am : Same.
  7900. * config.bfd : Same.
  7901. * targets.c : Same.
  7902. * configure : Regnerate.
  7903. * Makefile.in : Same.
  7904. * bfd-in2.h : Same.
  7905. 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
  7906. * po/fr.po: Updated version.
  7907. 2002-03-18 Alan Modra <amodra@bigpond.net.au>
  7908. * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
  7909. * libbfd.h: Regenerate.
  7910. * archive.c (coff_write_armap): Pass on failures from
  7911. bfd_write_bigendian_4byte_int.
  7912. 2002-03-14 H.J. Lu <hjl@gnu.org>
  7913. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
  7914. error to bfd_error_nonrepresentable_section for reinit_array
  7915. section in DSO.
  7916. 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
  7917. * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
  7918. OR it in rather than replacing previously selected flags.
  7919. * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
  7920. (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
  7921. 2002-03-14 Alan Modra <amodra@bigpond.net.au>
  7922. * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
  7923. (N): Use the above.
  7924. * elflink.h (elf_bfd_final_link): Revert last change. Instead,
  7925. ensure reloc size matches before calling elf_link_input_bfd.
  7926. Add an assert to check reloc size when counting output relocs.
  7927. 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
  7928. * mmo.c (mmo_get_loc): Return NULL rather than false.
  7929. 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
  7930. * po/fr.po: Updated version.
  7931. 2002-03-13 Alan Modra <amodra@bigpond.net.au>
  7932. * archures.c (bfd_default_compatible): Test bits_per_word.
  7933. * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
  7934. bfd_default_compatible.
  7935. * cpu-i370.c (i370_compatible): Likewise.
  7936. * cpu-sparc.c (sparc_compatible): Likewise.
  7937. * cpu-h8300.c (compatible): Test in->arch == out->arch.
  7938. * elflink.h: Formatting fixes.
  7939. (elf_link_output_extsym): Merge undefined and undef weak cases.
  7940. * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
  7941. when word size of input matches output word size.
  7942. 2002-03-12 Andreas Jaeger <aj@suse.de>
  7943. * cpu-i386.c (i386_compatible): New. Use it instead of
  7944. bfd_default_compatible.
  7945. 2002-03-07 H.J. Lu (hjl@gnu.org)
  7946. * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
  7947. as the type for bfd_reloc_val.
  7948. 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
  7949. * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
  7950. (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
  7951. (elf_hppa_final_link_relocate): Correct relocations for indirect
  7952. references to local data through the DLT. Fix .opd creation for
  7953. local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
  7954. relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
  7955. R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
  7956. "Processor-Specific ELF for PA_RISC, Version 1.43" document.
  7957. Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
  7958. * elf32-hppa.c (final_link_relocate): Revise relocation selectors
  7959. as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
  7960. 2002-03-05 Jakub Jelinek <jakub@redhat.com>
  7961. * merge.c (_bfd_merge_sections): Don't segfault if there
  7962. is nothing to merge due to GC.
  7963. 2002-03-05 Alan Modra <amodra@bigpond.net.au>
  7964. * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
  7965. symbols that have been forced local.
  7966. * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
  7967. to output forced local syms for non-shared link.
  7968. (elf_link_output_extsym): Tweak condition for calling backend
  7969. adjust_dynamic_symbol so that previous behaviour is kept.
  7970. Whitespace changes throughout file.
  7971. 2002-03-04 H.J. Lu <hjl@gnu.org>
  7972. * elf.c (bfd_section_from_shdr): Handle special sections,
  7973. .init_array, .fini_array and .preinit_array.
  7974. (elf_fake_sections): Likewise.
  7975. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
  7976. DT entry only if the section is in output for .init_array,
  7977. .fini_array and .preinit_array. Complain about .preinit_array
  7978. section in DSO.
  7979. (elf_bfd_final_link): Warn zero size for .init_array,
  7980. .fini_array and .preinit_array sections.
  7981. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
  7982. SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
  7983. (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
  7984. .preinit_array.
  7985. 2002-03-04 Alan Modra <amodra@bigpond.net.au>
  7986. * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
  7987. * configure: Regenerate.
  7988. 2002-03-02 Tom Rix <trix@redhat.com>
  7989. * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
  7990. symbolic equiv.
  7991. * coff-rs6000.c (xcoff_howto_table): Same.
  7992. 2002-03-01 David Mosberger <davidm@hpl.hp.com>
  7993. * elflink.h (size_dynamic_sections): If section named
  7994. ".preinit_array" exists, create DT_PREINIT_ARRAY and
  7995. DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
  7996. ".init_array" and ".fini_array".
  7997. (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
  7998. DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
  7999. DT_FINI_ARRAY.
  8000. 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
  8001. * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
  8002. dynsyms.
  8003. 2002-02-25 Alan Modra <amodra@bigpond.net.au>
  8004. * elf64-hppa.h: Update copyright date.
  8005. * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
  8006. (ppc64_elf_relocate_section): Don't generate power4 style branch
  8007. hints for *_BRTAKEN and *_BRNTAKEN relocs.
  8008. 2002-02-22 Jakub Jelinek <jakub@redhat.com>
  8009. * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
  8010. last patch.
  8011. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  8012. 2002-02-21 Andreas Jaeger <aj@suse.de>
  8013. * elf64-x86-64.c: Major rework that introduces all recent changes
  8014. to the x86-64 backend. Get a closer match to elf32-i386.
  8015. (struct elf64_x86_64_dyn_relocs): Rename from
  8016. elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
  8017. all users.
  8018. (struct elf64_x86_64_link_hash_table): Add short cuts to some
  8019. sections.
  8020. (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
  8021. remove casts, initialize new hash members.
  8022. (create_got_section): New.
  8023. (elf64_x86_64_create_dynamic_sections): New.
  8024. (elf64_x86_64_copy_indirect_symbol): New.
  8025. (elf64_x86_64_check_relocs): Don't allocate space for dynamic
  8026. relocs, .got or .relgot here but do it in allocate_dynrelocs.
  8027. Reference count possible .plt and .got entries. Don't test input
  8028. section SEC_READONLY here to try to avoid copy relocs, and keep
  8029. dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
  8030. DF_TEXTREL here. Delay setting of variables until needed. Cache
  8031. pointer to "sreloc" section in elf_section_data. Tweak condition
  8032. under which .got created. Report files with bad relocation
  8033. section names.
  8034. (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
  8035. Reference count possible .plt entries. Don't deallocate .got and
  8036. .relgot space here.
  8037. (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
  8038. do copy reloc processing for weakdefs. Remove redundant casts and
  8039. aborts. Delay setting of vars until needed. Move creation of
  8040. dynamic symbols and allocation of .plt and .rela.plt to
  8041. allocate_dynrelocs. Replace BFD_ASSERT with abort.
  8042. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
  8043. (allocate_dynrelocs): New.
  8044. (readonly_dynrelocs): New.
  8045. (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
  8046. Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
  8047. Zero out the dynamic allocated content space.
  8048. (elf64_x86_64_discard_copies): Removed.
  8049. (elf64_x86_64_relocate_section): Make use of dynamic section
  8050. short-cuts. Localise vars, and delay setting. Better error
  8051. reporting, replace BFD_ASSERT with abort. Check
  8052. ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
  8053. regular object file and tread the weak definition as the normal
  8054. one. Don't discard relocs for undefweak or undefined symbols and
  8055. check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
  8056. relocs.
  8057. (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
  8058. symbols that have been forced local. Use same test to decide if
  8059. we can use a relative reloc for got as relocate_section. Expand
  8060. SHN_UNDEF comment. Move expressions out of function calls.
  8061. Replace BFD_ASSERT with abort.
  8062. (bfd_elf64_bfd_final_link): Removed.
  8063. (elf_backend_copy_indirect_symbol): Define.
  8064. 2002-02-20 Tom Rix <trix@redhat.com>
  8065. * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
  8066. (_bfd_xcoff_reloc_type_lookup): Use it.
  8067. * coff64-rs6000.c (xcoff64_howto_table): Same.
  8068. (xcoff64_reloc_type_lookup): Same.
  8069. 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  8070. * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
  8071. little endian.
  8072. 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
  8073. * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
  8074. (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
  8075. * bfd-in2.h: Regenerate.
  8076. * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
  8077. Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
  8078. with "s390:64-bit".
  8079. * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
  8080. (elf_s390_reloc_type_lookup): Likewise.
  8081. (elf_s390_check_relocs): Likewise.
  8082. (elf_s390_gc_sweep_hook): Likewise.
  8083. (elf_s390_relocate_section): Likewise.
  8084. (elf_s390_object_p): Use renamed architecture define.
  8085. * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
  8086. 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
  8087. * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
  8088. 2002-02-19 Jakub Jelinek <jakub@redhat.com>
  8089. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
  8090. absptr -> pcrel optimization for shared libs.
  8091. Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
  8092. library cannot be converted to pcrel.
  8093. (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
  8094. relative.
  8095. * elf32-i386.c (elf_i386_relocate_section): If
  8096. _bfd_elf_section_offset returned -2, skip, but make sure the
  8097. relocation is installed.
  8098. * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
  8099. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  8100. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  8101. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  8102. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  8103. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  8104. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  8105. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  8106. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  8107. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  8108. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  8109. * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
  8110. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  8111. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  8112. * elf64-alpha.c (elf64_alpha_relocate_section): Handle
  8113. _bfd_elf_section_offset returning -2 the same way as -1.
  8114. * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
  8115. * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
  8116. and BFD_ASSERT.
  8117. * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
  8118. 2002-02-18 Tom Rix <trix@redhat.com>
  8119. * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
  8120. (bfd_xcoff_size_dynamic_sections): Same.
  8121. * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
  8122. (bfd_xcoff_size_dynamic_sections): Same.
  8123. * coff-rs6000.c (xcoff_generate_rtinit): Same.
  8124. * coff-rs646000.c (xcoff64_generate_rtinit): Same.
  8125. * libxcoff.h (struct xcoff_backend_data_rec): Same.
  8126. * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
  8127. * bfd-in2.h: Regenerate.
  8128. 2002-02-18 Alan Modra <amodra@bigpond.net.au>
  8129. * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
  8130. (struct ppc_link_hash_table): Add sfpr.
  8131. (ppc64_elf_link_hash_table_create): Init it.
  8132. (ppc64_elf_create_dynamic_sections): Split creation of .stub and
  8133. .glink out to..
  8134. (create_linkage_sections): ..here. Make .sfpr too.
  8135. (ppc64_elf_check_relocs): Call create_linkage_sections, and set
  8136. dynobj early.
  8137. (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
  8138. (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
  8139. ._restf* functions, and create as needed.
  8140. (func_desc_adjust): Only force_local for shared libs.
  8141. 2002-02-18 David O'Brien <obrien@FreeBSD.org>
  8142. * configure.in: Bump version number post 2.12 branching.
  8143. * configure: Regenerate.
  8144. 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
  8145. * mmo.c: Correct and improve comments.
  8146. (mmo_write_chunk): Store trailing byte in bfd buffer; don't
  8147. zero-pad. Use input to fill up non-empty bfd buffer.
  8148. (mmo_flush_chunk): New function.
  8149. (mmo_write_loc_chunk): Add parameter last_vmap, all callers
  8150. changed. Don't emit location specifier if VMA is same as
  8151. *LAST_VMAP after omitting leading zero contents. Call
  8152. mmo_flush_chunk before emitting location specifier.
  8153. (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
  8154. with mmo_write_loc_chunk calls.
  8155. (mmo_internal_write_section): Call mmo_flush_chunk after
  8156. mmo_write_chunk.
  8157. (mmo_write_symbols_and_terminator): Move :Main to first position
  8158. in symbol array. Add faked one if it does not exist if there are
  8159. other symbols. Don't add it if there are no symbols at all. Move
  8160. out test for value of :Main from symbol loop. Rename table
  8161. fakemain to maintable and variable mainsym to fakemain.
  8162. 2002-02-15 Richard Henderson <rth@redhat.com>
  8163. * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
  8164. section with no got matches any got. Simplify error generaion.
  8165. 2002-02-15 Alan Modra <amodra@bigpond.net.au>
  8166. Support arbitrary length fill patterns.
  8167. * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
  8168. (_bfd_default_link_order): Remove bfd_fill_link_order code.
  8169. Call default_data_link_order.
  8170. (default_fill_link_order): Delete.
  8171. (default_data_link_order): New function.
  8172. * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
  8173. of bfd_fill_link_order with bfd_data_link_order.
  8174. * elf64-alpha.c (elf64_alpha_final_link): Likewise.
  8175. * elf64-mips.c (mips_elf64_final_link): Likewise.
  8176. * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
  8177. Correct value returned in "end" for "0x<non-hex>".
  8178. 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
  8179. * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
  8180. (scan): Test against 'mach' field in info structure.
  8181. 2002-02-14 Alan Modra <amodra@bigpond.net.au>
  8182. * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
  8183. 2002-02-14 Matt Fredette <fredette@netbsd.org>
  8184. * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
  8185. EF_M68000.
  8186. 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
  8187. * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
  8188. non-zero physical addresses when adjusting the LMAs of new
  8189. sections.
  8190. 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
  8191. * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
  8192. from _bfd_elf_hppa_gen_reloc_type.
  8193. (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
  8194. * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
  8195. * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
  8196. * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
  8197. 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
  8198. * elf-m10300.c (mn10300_elf_relax_section): Skip section before
  8199. loading its contents if there's nothing to do in it.
  8200. 2002-02-12 Alan Modra <amodra@bigpond.net.au>
  8201. * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
  8202. 64k boundary.
  8203. * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
  8204. DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
  8205. (ppc64_elf_finish_dynamic_sections): Set values for them.
  8206. 2002-02-11 Michael Snyder <msnyder@redhat.com>
  8207. * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
  8208. * elf.c (elfcore_grok_pstatus): Add prototype.
  8209. (elfcore_grok_lwpstatus): Add prototype.
  8210. (elfcore_write_lwpstatus): New function.
  8211. (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
  8212. 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
  8213. * elf32-sh.c: Added missing prototypes.
  8214. * elf32-sh64.c: Likewise.
  8215. (sh_elf_align_loads): Mark unused args as such.
  8216. * elf64-sh64.c: Added missing prototypes.
  8217. (struct elf_sh64_link_hash_entry): Fix typo.
  8218. (sh_elf64_relocate_section): Fix info argument passed to
  8219. _bfd_elf_section_offset.
  8220. 2002-02-11 Alan Modra <amodra@bigpond.net.au>
  8221. * Makefile.am: "make dep-am".
  8222. * Makefile.in: Regenerate.
  8223. * aclocal.m4: Regenerate.
  8224. * config.in: Regenerate.
  8225. * configure: Regenerate.
  8226. 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
  8227. * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
  8228. variable warnings.
  8229. * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
  8230. comparison warning.
  8231. * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
  8232. cast warnings for the common case.
  8233. 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
  8234. * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
  8235. vectors.
  8236. (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
  8237. vectors.
  8238. 2002-02-09 Richard Henderson <rth@redhat.com>
  8239. * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
  8240. (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
  8241. (elf64_alpha_relocate_section): Likewise.
  8242. * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
  8243. * bfd-in2.h, libbfd.h: Rebuild.
  8244. 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
  8245. * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
  8246. that base-plus-offset reloc accounting is consistent.
  8247. (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
  8248. up to date for undefined symbols.
  8249. 2002-02-08 Eric Christopher <echristo@redhat.com>
  8250. From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  8251. * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
  8252. sections for the O32 ABI.
  8253. 2002-02-08 Chris Demetriou <cgd@broadcom.com>
  8254. * elf32-arm.h: Fix formatting of _("...").
  8255. * elf32-d10v.c: Likewise.
  8256. * elf32-m68k.c: Likewise.
  8257. * elf32-mips.c: Likewise.
  8258. 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
  8259. * coff-or32.c: Fix compile time warning messages.
  8260. 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
  8261. Contribute sh64-elf.
  8262. 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
  8263. * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
  8264. R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
  8265. R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
  8266. R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
  8267. R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
  8268. R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
  8269. R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
  8270. R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
  8271. R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
  8272. New relocs.
  8273. * libbfd.h, bfd-in2.h: Rebuilt.
  8274. * elf32-sh.c (sh_elf_howto_table): Define new relocs.
  8275. (sh_reloc_map): Map them.
  8276. (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
  8277. elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
  8278. elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
  8279. elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
  8280. elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
  8281. elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
  8282. movi_shori_putval) [INCLUDE_SHMEDIA]: New.
  8283. (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
  8284. datalabel_got_offset.
  8285. (sh_elf_link_hash_newfunc): Initialize it.
  8286. (sh_elf_relocate_section): Augment the scope of
  8287. seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
  8288. GOT and GOTOFF handling to new SHmedia relocation types. Support
  8289. GOT_BIAS.
  8290. (sh_elf_check_relocs): Likewise.
  8291. (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
  8292. PLT entries using movi_shori_putval. Support GOT_BIAS.
  8293. (sh_elf_finish_dynamic_sections): Likewise.
  8294. * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
  8295. relocation, it's now done by the caller.
  8296. (GOT_BIAS): New.
  8297. * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
  8298. elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
  8299. elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
  8300. elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
  8301. elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
  8302. elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
  8303. sh64_elf64_hash_table): New.
  8304. (sh_elf64_howto_table): Introduce new relocs.
  8305. (sh_elf64_info_to_howto): Accept new PIC relocs.
  8306. (sh_elf64_relocate_section): Augment the scope of
  8307. seen_stt_datalabel. Support new PIC relocs.
  8308. (sh_elf64_check_relocs): Support new PIC relocs.
  8309. (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
  8310. elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
  8311. elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
  8312. elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
  8313. sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
  8314. movi_shori_putval, movi_3shori_putval,
  8315. sh64_elf64_create_dynamic_sections,
  8316. sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
  8317. sh64_elf64_size_dynamic_sections,
  8318. sh64_elf64_finish_dynamic_symbol,
  8319. sh64_elf64_finish_dynamic_sections): New.
  8320. (elf_backend_create_dynamic-sections,
  8321. bfd_elf64_bfd_link_hash_table_create,
  8322. elf_backend_adjust_dynamic_symbol,
  8323. elf_backend_size_dynamic_sections,
  8324. elf_backend_finish_dynamic_symbol,
  8325. elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
  8326. elf_backend_plt_readonly, elf_backend_want_plt_sym,
  8327. elf_backend_got_header_size, elf_backend_plt_header_size):
  8328. Define.
  8329. 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
  8330. * elf32-sh.c: Renumbered and renamed some SH5 relocations to
  8331. match official numbers and names; moved unmaching ones to the
  8332. range 0xf2-0xff.
  8333. * elf32-sh64.c, elf64-sh64.c: Likewise.
  8334. 2001-03-12 DJ Delorie <dj@redhat.com>
  8335. * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
  8336. sections.
  8337. 2001-03-12 DJ Delorie <dj@redhat.com>
  8338. * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
  8339. be aligned.
  8340. * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
  8341. 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
  8342. * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
  8343. (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
  8344. .cranges section with SEC_SORT_ENTRIES set.
  8345. (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
  8346. incoming sorted .cranges section.
  8347. (sh64_bfd_elf_copy_private_section_data): New.
  8348. (sh64_elf_final_write_processing): Only sort .cranges and modify
  8349. start address if called by linker.
  8350. 2001-01-08 Ben Elliston <bje@redhat.com>
  8351. * elf32-sh64.c (sh64_elf_final_write_processing): Activate
  8352. Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
  8353. * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
  8354. 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
  8355. * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
  8356. line. Add comments before all entries.
  8357. <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
  8358. comment.
  8359. (sh_elf64_reloc): Correct head comment.
  8360. (sh_elf64_relocate_section): Correct spacing.
  8361. <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
  8362. instead call reloc_dangerous callback.
  8363. <case R_SH_SHMEDIA_CODE>: New case.
  8364. (sh_elf64_gc_mark_hook): Correct spacing.
  8365. (sh_elf64_check_relocs): Ditto.
  8366. * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
  8367. New case.
  8368. * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
  8369. functions.
  8370. (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
  8371. clarify describing comment. Add comments before all entries.
  8372. (sh_elf_relocate_section) <relocating for a local symbol>: Do not
  8373. honour STO_SH5_ISA32; instead call reloc_dangerous callback.
  8374. 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
  8375. Sort .cranges section in final link. Prepare to set bit 0 on
  8376. entry address.
  8377. * elf32-sh64.c (struct sh64_find_section_vma_data): New.
  8378. (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
  8379. (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
  8380. .cranges section.
  8381. (sh64_backend_section_from_shdr): New, to recognize
  8382. SHT_SH5_CR_SORTED on incoming .cranges section.
  8383. (elf_backend_section_from_shdr): Define.
  8384. (sh64_elf_final_write_processing): Sort outgoing .cranges
  8385. section. (New, temporarily disabled:) Set bit 0 on entry address
  8386. according to ISA type.
  8387. (sh64_find_section_for_address): New.
  8388. (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
  8389. crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
  8390. (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
  8391. bfd_malloc, not xmalloc.
  8392. (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
  8393. global.
  8394. * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
  8395. temporarily disabled) setting bit 0 on entry address.
  8396. (elf_backend_final_write_processing): Define.
  8397. 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
  8398. * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
  8399. be a proper relocation for PTA and PTB rather than a marker.
  8400. <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
  8401. R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
  8402. R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
  8403. R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
  8404. R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
  8405. Zero src_mask.
  8406. * elf64-sh64.c: Ditto.
  8407. (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
  8408. * elf32-sh64.c: Include opcodes/sh64-opc.h
  8409. (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
  8410. argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
  8411. parameters. No unused parameters. Caller changed.
  8412. <case R_SH_PT_16>: New case.
  8413. * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
  8414. * Makefile.in: Regenerate.
  8415. 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
  8416. * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
  8417. all code sections.
  8418. (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
  8419. (sh64_elf_merge_private_data): Ditto.
  8420. * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
  8421. to access stored section flags.
  8422. (sh64_elf_final_write_processing): Return immediately unless
  8423. called by linker. Use sh64_elf_section_data (cranges) to get size
  8424. of linker-generated cranges entries.
  8425. (sh64_elf_copy_private_data): Add missing "return true".
  8426. (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
  8427. (sh_elf64_merge_private_data): Ditto.
  8428. 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
  8429. * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
  8430. elf64-sh64.c:sh64_elf_fake_sections.
  8431. (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
  8432. 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
  8433. * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
  8434. (sh64_elf_final_write_processing): New.
  8435. (elf_backend_final_write_processing): Define.
  8436. (sh64_elf_fake_sections): Get header flags from tdata field.
  8437. (sh64_elf_copy_private_data): Do not call
  8438. sh64_elf_copy_private_data_internal, just copy e_flags field.
  8439. (sh64_elf_merge_private_data): Do not call
  8440. sh64_elf_copy_private_data_internal.
  8441. 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
  8442. Remove EF_SH64_ABI64, let ELF size make difference.
  8443. Remove SH64-specific BFD section flag.
  8444. * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
  8445. containing SHmedia through elf_section_data (asect)->tdata
  8446. non-zero, not using a BFD section flag.
  8447. (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
  8448. (sh64_elf_merge_private_data): Similar.
  8449. (elf_backend_section_flags): Don't define.
  8450. (sh64_elf_backend_section_flags): Delete.
  8451. * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
  8452. not EF_SH64_ABI64.
  8453. (sh_elf64_merge_private_data): Similar.
  8454. * section.c (Section flags definitions): Don't define
  8455. SEC_SH_ISA_SHMEDIA.
  8456. (bfd-in2.h): Regenerate.
  8457. 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
  8458. Make DataLabel references work with partial linking.
  8459. * elf32-sh64.c: Fix formatting.
  8460. (sh64_elf_link_output_symbol_hook): New.
  8461. (elf_backend_link_output_symbol_hook): Define to
  8462. sh64_elf_link_output_symbol_hook.
  8463. (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
  8464. undefined if partial linking. Adjust sanity check.
  8465. * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
  8466. (elf_backend_link_output_symbol_hook): Define to
  8467. sh64_elf64_link_output_symbol_hook.
  8468. (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
  8469. undefined if partial linking. Adjust sanity check.
  8470. 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
  8471. Implement semantics for inter-file DataLabel references.
  8472. * elf64-sh64.c (DATALABEL_SUFFIX): Define.
  8473. (sh64_elf64_add_symbol_hook): New.
  8474. (sh_elf64_relocate_section): If passing an indirect symbol with
  8475. st_type STT_DATALABEL on the way to a symbol with st_other
  8476. STO_SH5_ISA32, do not bitor 1 to the relocation.
  8477. (elf_backend_add_symbol_hook): Define to
  8478. sh64_elf64_add_symbol_hook.
  8479. * elf64-sh32.c: Tweak comments.
  8480. (DATALABEL_SUFFIX): Define.
  8481. (sh64_elf_add_symbol_hook): New.
  8482. (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
  8483. * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
  8484. symbol with st_type STT_DATALABEL on the way to a symbol with
  8485. st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
  8486. 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
  8487. Pass through STT_DATALABEL.
  8488. * elf32-sh64.c (sh64_elf_get_symbol_type): New.
  8489. (elf_backend_get_symbol_type): Define.
  8490. * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
  8491. (elf_backend_get_symbol_type): Define.
  8492. 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
  8493. * elf32-sh64.c: Tweak comments.
  8494. (sh64_elf_copy_private_data_internal): Add prototype.
  8495. (bfd_elf32_bfd_set_private_flags): Define.
  8496. (sh64_elf_copy_private_data_internal): Compare machine name, not
  8497. textual BFD target name, to check whether to copy section flag
  8498. SHF_SH5_ISA32.
  8499. (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
  8500. Tweak section-contents-type-mismatch message.
  8501. (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
  8502. Validize reloc-types.
  8503. * elf64-sh64.c: New file.
  8504. * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
  8505. * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
  8506. (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
  8507. Regenerate dependencies.
  8508. * Makefile.in: Regenerate.
  8509. * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
  8510. bfd_elf64_sh64l_vec.
  8511. * configure.in: Handle bfd_elf64_sh64_vec and
  8512. bfd_elf64_sh64l_vec.
  8513. * configure: Regenerate.
  8514. * po/POTFILES.in: Regenerate.
  8515. * po/bfd.pot: Regenerate.
  8516. 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
  8517. * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
  8518. anything else but EF_SH64 and EF_SH64_ABI64.
  8519. (sh64_elf_merge_private_data): Emit error for anything else but
  8520. EF_SH64 and EF_SH64_ABI64.
  8521. * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
  8522. from targ_selvecs.
  8523. * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
  8524. bfd_elf32_sh64l_vec as a temporary measure.
  8525. * configure: Regenerate.
  8526. 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
  8527. * cpu-sh.c (arch_info_struct): Include sh5 item
  8528. unconditionalized.
  8529. * config.bfd (sh64-*-elf*): Do not set targ_cflags.
  8530. Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
  8531. bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
  8532. * elf32-sh64.c: Tweak comments.
  8533. (sh64_elf_set_mach_from_flags): Recognize all machine flags that
  8534. are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
  8535. (sh64_elf_copy_private_data_internal): Wrap long line.
  8536. (sh64_elf_merge_private_data): Rewrite to allow objects from
  8537. SH64 subsets to be linked together.
  8538. (INCLUDE_SHMEDIA): Define.
  8539. * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
  8540. Parenthesize plus-expression inside or-expression.
  8541. <global symbol>: Ditto.
  8542. (sh_elf_set_mach_from_flags): Remove code refusing
  8543. deleted EF_SH64_32BIT_ABI flag.
  8544. 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
  8545. * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
  8546. R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
  8547. R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
  8548. (sh_elf_relocate_section) <local symbol>: Or 1 in
  8549. calculation of relocation if sym->st_other & STO_SH5_ISA32.
  8550. <global symbol>: Ditto if h->other & STO_SH5_ISA32.
  8551. * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
  8552. relocation.
  8553. 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
  8554. * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
  8555. (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
  8556. Regenerate dependencies.
  8557. * Makefile.in: Regenerate.
  8558. * archures.c: Add bfd_mach_sh5.
  8559. * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
  8560. Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
  8561. * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
  8562. * configure: Regenerate.
  8563. * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
  8564. BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
  8565. BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
  8566. BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
  8567. BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
  8568. BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
  8569. BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
  8570. BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
  8571. BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
  8572. * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
  8573. in item for SH5.
  8574. * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
  8575. for SHmedia relocs.
  8576. [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
  8577. [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
  8578. shmedia_prepare_reloc, goto final_link_relocate if it returns
  8579. non-zero, else fail as before.
  8580. (sh_elf_set_mach_from_flags): Provide function only if not defined
  8581. as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
  8582. (sh_elf_set_private_flags): Provide function only if not defined
  8583. as a macro.
  8584. (sh_elf_copy_private_data): Similar.
  8585. (sh_elf_merge_private_data): Similar.
  8586. * section.c (SEC_SH_ISA_SHMEDIA): New.
  8587. * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
  8588. * elf32-sh64.c: New file.
  8589. * libbfd.h: Regenerate.
  8590. * bfd-in2.h: Regenerate.
  8591. * po/POTFILES.in: Regenerate.
  8592. * po/bfd.pot: Regenerate.
  8593. * bfd-in2.h: Regenerate.
  8594. * libbfd.h: Regenerate.
  8595. 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
  8596. * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
  8597. been included, not drag it in.
  8598. * bfd-in2.h: Regenerate.
  8599. 2002-02-06 H.J. Lu (hjl@gnu.org)
  8600. * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
  8601. the mach and ISA fields if necessary.
  8602. 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
  8603. * coffcode.h (coff_set_arch_mach_hook): Select the highest known
  8604. ARM architecture when an F_ARM_5 flag is detected, since we cannot
  8605. be sure exactly which architecture this represents.
  8606. 2002-02-05 Nick Clifton <nickc@redhat.com>
  8607. * po/tr.po: Updated translation.
  8608. 2002-02-05 Alan Modra <amodra@bigpond.net.au>
  8609. From Jimi X <jimix@watson.ibm.com>
  8610. * archures (bfd_mach_ppc64): Define.
  8611. (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
  8612. (bfd_powerpc_arch): Define.
  8613. * bfd-in2.h: Regenerate.
  8614. * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
  8615. (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
  8616. (bfd_powerpc_archs): Add default powerpc64 arch.
  8617. 2002-02-05 Alan Modra <amodra@bigpond.net.au>
  8618. * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
  8619. against section syms in readonly sections. Don't do the global
  8620. sym check if we find one.
  8621. * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
  8622. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
  8623. * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
  8624. * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
  8625. (elf_s390_grok_prstatus): Add missing prototype.
  8626. 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
  8627. * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
  8628. (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
  8629. Call bfd_get_section_by_name only once. Initialize
  8630. bpodata->n_bpo_relocs_this_section.
  8631. (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
  8632. referring to DSOs.
  8633. (bpo_reloc_request_sort_fn): Don't use difference of values as
  8634. return-value.
  8635. 2002-02-02 David O'Brien <obrien@FreeBSD>
  8636. * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
  8637. version 4.5 and later the same as 5-CURRENT.
  8638. * configure: Re-generate.
  8639. 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
  8640. * config.bfd (hppa*-*-netbsd*): New target.
  8641. 2002-01-31 Philipp Thomas <pthomas@suse.de>
  8642. * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
  8643. to front of message. Unify messages with elf32-arm.h. Use
  8644. commas where neccessary.
  8645. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
  8646. ERROR in messages. Unify messages with coff-arm.c. Correct
  8647. VFP/FPA error message.
  8648. (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
  8649. APCS-32 for translation.
  8650. 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
  8651. Perform on-demand global register allocation from
  8652. R_MMIX_BASE_PLUS_OFFSET relocs.
  8653. * elf64-mmix.c (struct bpo_reloc_section_info, struct
  8654. bpo_reloc_request, struct bpo_greg_section_info): New.
  8655. (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
  8656. bpo_reloc_request_sort_fn, mmix_elf_relax_section,
  8657. _bfd_mmix_check_all_relocs,
  8658. _bfd_mmix_prepare_linker_allocated_gregs,
  8659. _bfd_mmix_finalize_linker_allocated_gregs): New functions.
  8660. (elf_mmix_howto_table): Correct src_mask for most relocs.
  8661. (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
  8662. case.
  8663. (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
  8664. case. Fix typo in comment. New label do_mmix_reloc.
  8665. (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
  8666. store first object file with a base-plus-offset reloc. Call
  8667. mmix_elf_check_common_relocs for the part common with mmo.
  8668. (mmix_elf_final_link): Write out linker-allocated register
  8669. contents section.
  8670. (elf_backend_gc_sweep_hook): Define.
  8671. (bfd_elf64_bfd_relax_section): Define.
  8672. * mmo.c: Don't include <ctype.h>
  8673. (mmo_init): Correct init-once logic.
  8674. 2002-02-01 Tom Rix <trix@redhat.com>
  8675. * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
  8676. 2002-02-01 Alan Modra <amodra@bigpond.net.au>
  8677. * Makefile.am: Run "make dep-am"
  8678. * Makefile.in: Regenerate.
  8679. 2002-01-31 David O'Brien <obrien@FreeBSD>
  8680. * configure.in: Recognize the differences in core files from FreeBSD
  8681. 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
  8682. 5-CURRENT.
  8683. * configure: Regenerate.
  8684. 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
  8685. * coff-or32.c: New file.
  8686. * cpu-or32.c: New file.
  8687. * elf32-or32.c: New file.
  8688. * archures.c: Add support for or32.
  8689. * targets.c: Add support for or32.
  8690. * bfd-in2.h: Regenerate.
  8691. * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
  8692. coff_write_object_contents): Add support for or32.
  8693. * config.bfd: Add target.
  8694. * configure.in: Add support for or32.
  8695. * configure: Regenerate.
  8696. * Makefile.am: Add support for or32.
  8697. * Makefile.in: Regenerate.
  8698. * po/SRC-POTFILES.in: Add or32 files.
  8699. * po/bfd.pot: Regenerate.
  8700. 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
  8701. Don Lindsay <lindsayd@cisco.com>
  8702. * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
  8703. false' with a return of a bfd_reloc_ error code.
  8704. 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
  8705. * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
  8706. unexport unreferenced symbols when --export-dynamic. Call
  8707. _bfd_elf_strtab_delref when unexporting.
  8708. 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
  8709. * bfd-in.h: Include <stdbool.h> if it is available.
  8710. * bfd-in2.h: Regenerated.
  8711. 2002-01-31 Alan Modra <amodra@bigpond.net.au>
  8712. * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
  8713. not go via the plt.
  8714. 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
  8715. * archures.c: Tidy up formatting of embedded comments.
  8716. * bfd.c: Tidy up formatting of embedded comments.
  8717. * bfd-in.h: Fix formatting of comments.
  8718. * reloc.c: Tidy up formatting of ordinary & embedded comments.
  8719. * section.c: Tidy up formatting of embedded comments.
  8720. * syms.c: Tidy up formatting of embedded comments.
  8721. * targets.c: Tidy up formatting of embedded comments.
  8722. * bfd-in2.h: Regenerate.
  8723. 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
  8724. * vms-tir.c (cmd_name): New function.
  8725. (tir_cmd_name): New function.
  8726. (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
  8727. (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
  8728. Fix formatting.
  8729. * peXXigen.c (pe_print_idata): Rearrange message to aid in
  8730. translation.
  8731. (pe_print_pdata): Rearrange message to aid in translation.
  8732. * libbfd.c (warn_deprecated): Rearrange error message to aid in
  8733. translation.
  8734. * ihex.c (ihex_write_object_contents): Fix spelling typo.
  8735. * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
  8736. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
  8737. message to aid in translation.
  8738. * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
  8739. to aid in translation.
  8740. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
  8741. 2002-01-30 Philipp Thomas <pthomas@suse.de>
  8742. * coff-arm.c, elf32-elf.h: Unify messages.
  8743. 2002-01-30 Nick Clifton <nickc@redhat.com>
  8744. * po/sv.po: Updated translation.
  8745. 2002-01-30 Philipp Thomas <pthomas@suse.de>
  8746. * dwarf2.c (read_abbrev): Use full section name in error message.
  8747. (decode_line_info): Likewise.
  8748. * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
  8749. message.
  8750. 2002-01-30 Alan Modra <amodra@bigpond.net.au>
  8751. * elf64-ppc.c (func_desc_adjust): Only provide missing function
  8752. descriptor symbols for undefined function code syms. Clear
  8753. ELF_LINK_NON_ELF so that they can stay weak.
  8754. 2002-01-29 Chris Demetriou <cgd@broadcom.com>
  8755. Mitch Lichtenberg <mpl@broadcom.com>
  8756. * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
  8757. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
  8758. to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
  8759. generation.
  8760. * bfd-in2.h: Regenerate.
  8761. 2002-01-29 Chris Demetriou <cgd@broadcom.com>
  8762. * elf32-mips.c: Add additional comments about HI16 relocation
  8763. processing.
  8764. (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
  8765. pc-relative relocations. (Reverts change made on 2001-10-31.)
  8766. (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
  8767. for pc-relative relocations.
  8768. (mips_elf_calculate_relocation): Add a comment about a kludge
  8769. in the R_MIPS_GNU_REL_HI16 handling.
  8770. (_bfd_mips_elf_relocate_section): Implement that kludge;
  8771. adjust pc-relative HI16 relocation for difference in HI16 and
  8772. LO16 addresses, since it can't easily be done in
  8773. mips_elf_calculate_relocation.
  8774. 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
  8775. * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
  8776. relocations with PC32 relocations for undefined or weak symbols.
  8777. * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
  8778. * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
  8779. 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
  8780. * elfcore.h (elf_core_file_p): Improve comment for last change.
  8781. 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
  8782. * configure: Regenerated.
  8783. 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
  8784. * elfcore.h (elf_core_file_p): Set the machine architecture
  8785. before processing the program headers.
  8786. 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
  8787. * configure.in <64-bit configuration>: If using gcc, check and
  8788. emit error for egcs-1.1.2.
  8789. * configure: Regenerate.
  8790. 2002-01-26 Egor Duda <deo@logos-m.ru>
  8791. * elf.c (elfcore_grok_win32pstatus): Copy only as much information
  8792. as possible to avoid stack corruption.
  8793. 2002-01-26 Richard Henderson <rth@redhat.com>
  8794. * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
  8795. for non-allocated sections.
  8796. 2002-01-25 Mark Kettenis <kettenis@gnu.org>
  8797. * elf.c (elfcore_write_prstatus): Make sure we pass the address of
  8798. prstat.pr_reg even if it is a struct.
  8799. 2002-01-25 Steve Ellcey <sje@cup.hp.com>
  8800. * elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
  8801. 2002-01-25 Philipp Thomas <pthomas@suse.de>
  8802. * coffgen.c (coff_print_symbol): Don't mark info message
  8803. for translation.
  8804. 2002-01-25 Nick Clifton <nickc@redhat.com>
  8805. * po/fr.po: Updated translation.
  8806. * po/es.po: Updated translation.
  8807. 2002-01-25 Philipp Thomas <pthomas@suse.de>
  8808. * coff-alpha.c (alpha_relocate_section): Unify warning message
  8809. for GP relative relocations without GP defined.
  8810. * coff-mips.c (mips_relocate_section): Likewise.
  8811. 2002-01-25 Alan Modra <amodra@bigpond.net.au>
  8812. * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
  8813. unsigned overflow when new_offset < old_offset.
  8814. 2002-01-24 Philipp Thomas <pthomas@suse.de>
  8815. * bfd.c (_bfd_abort): Fix typo.
  8816. 2002-01-23 Richard Henderson <rth@redhat.com>
  8817. * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
  8818. plt entries for undefweak symbols.
  8819. 2002-01-23 Steve Ellcey <sje@cup.hp.com>
  8820. * targets.c (bfd_elf32_ia64_hpux_big_vec): Add to DEFAULT_VECTOR.
  8821. (bfd_elf64_ia64_hpux_big_vec): Ditto.
  8822. (bfd_elf32_h8300_vec): Ditto.
  8823. 2002-01-23 Alan Modra <amodra@bigpond.net.au>
  8824. * elf64-ppc.c: Remove stale part of ABI comment.
  8825. (NO_OPD_RELOCS): Define.
  8826. (ppc64_elf_check_relocs): Use it.
  8827. (ppc64_elf_relocate_section): Here too.
  8828. (build_one_stub): Don't point function syms at the stub. Instead,
  8829. hijack plt.offset.
  8830. (ppc64_elf_relocate_section): Check whether REL24 relocs should
  8831. really go to the stub. Make all dynamic relocs in opd against
  8832. locals.
  8833. (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
  8834. plt.offset.
  8835. 2002-01-22 Richard Henderson <rth@redhat.com>
  8836. * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
  8837. 2002-01-22 Alan Modra <amodra@bigpond.net.au>
  8838. * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
  8839. TOC_BASE_OFF adjustment.
  8840. * Makefile.am: Run "make dep-am".
  8841. * Makefile.in: Regenerate.
  8842. * po/SRC-POTFILES.in: Regenerate.
  8843. 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
  8844. * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
  8845. host defines.
  8846. 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
  8847. * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
  8848. Check for and emit error if sgot is NULL at this point.
  8849. 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
  8850. * config.bfd (ia64*-*-netbsd*): New target.
  8851. 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
  8852. * som.c (som_write_space_strings): Comment typo fix.
  8853. 2002-01-21 Alan Modra <amodra@bigpond.net.au>
  8854. * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
  8855. is_func_descriptor fields.
  8856. (link_hash_newfunc): Init them.
  8857. (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
  8858. dot are candidates for plt entries. When processing .opd relocs,
  8859. set function descriptor strings to point inside function code
  8860. string, and set new ppc_link_hash_entry fields.
  8861. (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
  8862. (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
  8863. function descriptors. It's now done in..
  8864. (func_desc_adjust): New.
  8865. (ppc64_elf_func_desc_adjust): New.
  8866. (define elf_backend_always_size_sections): Define.
  8867. (ppc64_elf_hide_symbol): New.
  8868. (define elf_backend_hide_symbol): Define.
  8869. (allocate_dynrelocs): Remove code looking up function descriptors
  8870. as that has been done earlier.
  8871. (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
  8872. table.
  8873. (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
  8874. up function descriptor.
  8875. (build_one_stub): Look up the function code sym. Check for
  8876. invalid plt offsets.
  8877. (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
  8878. Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
  8879. * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
  8880. boolean param.
  8881. (_bfd_elf_link_hash_hide_symbol): Likewise.
  8882. * elflink.h (elf_link_add_object_symbols): Adjust call to
  8883. elf_backend_hide_symbol.
  8884. (elf_fix_symbol_flags): Likewise.
  8885. (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
  8886. than bfd_alloc.
  8887. * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
  8888. Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
  8889. * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
  8890. (clobber_millicode_symbols): Adjust to suit new hide_symbol.
  8891. * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
  8892. and adjust to suit.
  8893. * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
  8894. _bfd_elf_link_hash_hide_symbol rather than duplicating code.
  8895. * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
  8896. 2002-01-18 Alan Modra <amodra@bigpond.net.au>
  8897. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
  8898. dynamic function descriptor symbol, not the associated function
  8899. symbol.
  8900. 2002-01-17 Eric Christopher <echristo@redhat.com>
  8901. * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
  8902. 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
  8903. * po/bfd.pot: Regenerate.
  8904. * po/fr.po: Regenerate.
  8905. 2002-01-17 Alan Modra <amodra@bigpond.net.au>
  8906. * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
  8907. Remove "Elf_Internal_Shdr *" param.
  8908. (_bfd_mips_elf_section_from_bfd_section): Ditto.
  8909. * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
  8910. * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
  8911. * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
  8912. * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
  8913. * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
  8914. * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
  8915. function to override special sections. Remove hdr arg from
  8916. backend call, and don't loop.
  8917. 2002-01-16 Eric Christopher <echristo@redhat.com>
  8918. * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
  8919. on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
  8920. relocations requiring gp0 and gp.
  8921. 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
  8922. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
  8923. EF_ARM_VFP_FLOAT.
  8924. (elf32_arm_print_private_bfd_data): Likewise.
  8925. 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
  8926. * po/tr.po: Import new version.
  8927. 2002-01-16 Alan Modra <amodra@bigpond.net.au>
  8928. * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
  8929. (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
  8930. (ORI_R0_R0_0): Correct.
  8931. 2002-01-16 Alan Modra <amodra@bigpond.net.au>
  8932. * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
  8933. when plt_not_loaded.
  8934. * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
  8935. clear .plt SEC_CODE here. Create .stub and correct .glink flags.
  8936. (PLT_INITIAL_ENTRY_SIZE): Set to 24.
  8937. (ppc64_elf_glink_code): Delete.
  8938. (PPC64_ELF_GLINK_SIZE): Delete.
  8939. (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
  8940. BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
  8941. ORI_R0_R0_0): Define.
  8942. (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
  8943. (struct ppc_link_hash_table): Add sstub and plt_overflow.
  8944. (ppc64_elf_link_hash_table_create): Init them.
  8945. (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
  8946. Don't copy to shared lib.
  8947. (ppc64_elf_check_relocs): Call bfd_set_error on errors.
  8948. (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
  8949. (allocate_dynrelocs <plt>): Don't change function sym here. Make
  8950. room for .stub and .glink code.
  8951. (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
  8952. DT_PPC64_GLINK.
  8953. (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
  8954. bfd_elf64_bfd_final_link.
  8955. (bfd_elf64_bfd_final_link): Don't define.
  8956. (ppc64_elf_size_stubs): New.
  8957. (build_plt_stub): New.
  8958. (build_one_stub): New.
  8959. (ppc64_elf_build_stubs): New.
  8960. (ppc64_elf_relocate_section <toc relocs>): Remove assert.
  8961. (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
  8962. (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
  8963. DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
  8964. case output sections not separate. Adjust DT_RELASZ to not
  8965. include plt relocs. Set reserved got entry. Set got and plt
  8966. entry size.
  8967. (elf_backend_got_header_size): Set to 8.
  8968. * elf64-ppc.h: New file.
  8969. 2002-01-16 Alan Modra <amodra@bigpond.net.au>
  8970. * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
  8971. sections, use bfd_section_list_remove.
  8972. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
  8973. * elflink.h (elf_link_add_object_symbols): When removing all
  8974. sections, use bfd_section_list_clear.
  8975. 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
  8976. * po/sv.po: New file: Swedish translation.
  8977. * configure.in (ALL_LINGUAS): Add sv.
  8978. * configure: Regenerate.
  8979. 2002-01-15 Jakub Jelinek <jakub@redhat.com>
  8980. * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
  8981. * elf.c (merge_sections_remove_hook): New function.
  8982. (_bfd_elf_merge_sections): Pass it as 3rd argument to
  8983. _bfd_merge_sections.
  8984. * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
  8985. * libbfd.h: Rebuilt.
  8986. * merge.c (_bfd_merge_sections): Add remove_hook argument.
  8987. Call remove_hook if a SEC_EXCLUDE section is encountered.
  8988. 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
  8989. * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
  8990. (xstormy16_reloc_map): Initialise new field with correct howto
  8991. table.
  8992. (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
  8993. howto entry.
  8994. 2002-01-10 Michael Snyder <msnyder@redhat.com>
  8995. * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
  8996. (elfcore_write_pstatus): Use long instead of pid_t;
  8997. * elf-bfd.h: Change prototypes to use long instead of pid_t;
  8998. 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
  8999. * elf.c: Update copyright years.
  9000. (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
  9001. and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
  9002. 2002-01-08 Michael Snyder <msnyder@redhat.com>
  9003. Add capability to write corefile note sections, for gdb.
  9004. * elf.c (elfcore_write_note): New function.
  9005. (elfcore_write_prpsinfo): New function.
  9006. (elfcore_write_prstatus): New function.
  9007. (elfcore_write_pstatus): New function.
  9008. (elfcore_write_prfpreg): New function.
  9009. (elfcore_write_prxfpreg): New function.
  9010. * elf-bfd.h: Add prototypes for above functions.
  9011. 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
  9012. * elf.c (elf_fake_sections): Propagate errors from
  9013. elf_backend_fake_section.
  9014. 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
  9015. * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
  9016. (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
  9017. (elf32-sh-nbsd.lo): New rule.
  9018. * Makefile.in: Regenerate.
  9019. * config.bfd (sh*le-*-netbsdelf*): New target.
  9020. (sh*-*-netbsdelf*): New target.
  9021. * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
  9022. (bfd_elf32_shnbsd_vec): New vector.
  9023. (bfd_elf32_shlnbsd_vec): New vector.
  9024. * configure: Regenerate.
  9025. * elf32-sh-nbsd.c: New file.
  9026. * targets.c: Update copyright years.
  9027. (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
  9028. bfd_elf32_shnbsd_vec.
  9029. 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
  9030. * coff-rs6000.c (READ20): Use bfd_scan_vma.
  9031. 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
  9032. * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
  9033. of a symbol in a section that will be deleted.
  9034. 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
  9035. * po/es.po: New file: Spanish translation.
  9036. * configure.in (ALL_LINGUAS): Add es.
  9037. * configure: Regenerate.
  9038. 2002-01-06 Steve Ellcey <sje@cup.hp.com>
  9039. * elfxx-ia64.c (is_unwind_section_name): Add target vector as
  9040. argument so we can handle HP-UX specially.
  9041. (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
  9042. (elfNN_hpux_backend_section_from_bfd_section): New for support
  9043. of SHN_IA_64_ANSI_COMMON.
  9044. (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
  9045. (is_unwind_section_name): Add special HP-UX support.
  9046. (elfNN_ia64_section_from_shdr): Add support for more sections.
  9047. (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
  9048. add support for more sections.
  9049. (elfNN_ia64_additional_program_headers): Modify
  9050. is_unwind_section_name call.
  9051. (elfNN_ia64_modify_segment_map): Remove assumption that there is
  9052. only one unwind section in segment.
  9053. 2002-01-06 Alan Modra <amodra@bigpond.net.au>
  9054. * syms.c (_bfd_generic_make_empty_symbol): New function.
  9055. * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
  9056. _bfd_generic_make_empty_symbol.
  9057. * libbfd.h: Regenerate.
  9058. * bfd-in2.h: Regenerate.
  9059. * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
  9060. (hppabsd_core_get_symtab_upper_bound): Don't define.
  9061. (hppabsd_core_get_symtab): Likewise.
  9062. (hppabsd_core_print_symbol): Likewise.
  9063. (hppabsd_core_get_symbol_info): Likewise.
  9064. (hppabsd_core_bfd_is_local_label_name): Likewise.
  9065. (hppabsd_core_get_lineno): Likewise.
  9066. (hppabsd_core_find_nearest_line): Likewise.
  9067. (hppabsd_core_bfd_make_debug_symbol): Likewise.
  9068. (hppabsd_core_read_minisymbols): Likewise.
  9069. (hppabsd_core_minisymbol_to_symbol): Likewise.
  9070. (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
  9071. Formatting fixes.
  9072. * hpux-core.c: Similarly.
  9073. * irix-core.c: Similarly.
  9074. * osf-core.c: Similarly.
  9075. * sco5-core.c: Similarly.
  9076. * binary.c (binary_make_empty_symbol): Remove function, define as
  9077. _bfd_generic_make_empty_symbol.
  9078. * ihex.c (ihex_make_empty_symbol): Likewise.
  9079. * mmo.c (mmo_make_empty_symbol): Likewise.
  9080. * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
  9081. * srec.c (srec_make_empty_symbol): Likewise.
  9082. * versados.c (versados_make_empty_symbol): Likewise.
  9083. * vms.c (_bfd_vms_make_empty_symbol): Remove.
  9084. (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
  9085. * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
  9086. rather than _bfd_vms_make_empty_symbol.
  9087. * vms-misc.c (new_symbol): Likewise.
  9088. 2002-01-05 Alan Modra <amodra@bigpond.net.au>
  9089. * section.c (bfd_section_init): Remove unnecessary initialisations.
  9090. (bfd_section_list_clear): New function.
  9091. (bfd_section_list_remove, bfd_section_list_insert): New macros.
  9092. (_bfd_strip_section_from_output): Use them.
  9093. * coffcode.h (coff_set_alignment_hook): Likewise.
  9094. * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
  9095. * elf64-mips.c (mips_elf64_final_link): Likewise.
  9096. * elf64-mmix.c (mmix_elf_final_link): Likewise.
  9097. * sunos.c (sunos_add_dynamic_symbols): Likewise.
  9098. * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
  9099. * bfd-in2.h: Regenerate.
  9100. * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
  9101. rather than doing our own section handling. Clean up after errors
  9102. with bfd_release and bfd_section_list_clear. Handle unexpected
  9103. flags.
  9104. * aoutf1.h (sunos4_core_file_p): Likewise.
  9105. * aix386-core.c (aix386_core_file_p): Likewise.
  9106. * cisco-core.c (cisco_core_file_validate): Likewise.
  9107. * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
  9108. * trad-core.c (trad_unix_core_file_p): Likewise.
  9109. * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
  9110. with bfd_release and bfd_section_list_clear.
  9111. * hpux-core.c (hpux_core_core_file_p): Likewise.
  9112. * irix-core.c (irix_core_core_file_p): Likewise.
  9113. * lynx-core.c (lynx_core_file_p): Likewise.
  9114. * osf-core.c (osf_core_core_file_p): Likewise.
  9115. * rs6000-core.c (rs6000coff_core_p): Likewise.
  9116. * sco5-core.c (sco5_core_file_p): Likewise.
  9117. * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
  9118. sign extension adjustments without conditionals.
  9119. 2002-01-04 Jakub Jelinek <jakub@redhat.com>
  9120. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
  9121. CIE at .eh_frame start is removed due to no FDEs referencing it.
  9122. 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
  9123. * config.bfd (x86_64-*-netbsd*): New target.
  9124. * configure.in (x86_64-*-netbsd*): Set COREFILE
  9125. to netbsd-core.lo.
  9126. * configure: Regenerated.
  9127. 2002-01-03 Tom Rix <trix@redhat.com>
  9128. * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
  9129. for recent bfd_make_section_anyway change.
  9130. 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
  9131. * elf32-arm.h (elf32_arm_final_link_relocate): Handle
  9132. R_ARM_THM_PC11 reloc.
  9133. 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
  9134. * configure.in (LINGUAS): Add ja.
  9135. * configure: Regenerate.
  9136. * po/ja.po: Import from translation project's web site.
  9137. 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
  9138. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
  9139. messages to ease translation into other languages.
  9140. For older changes see ChangeLog-0001
  9141. Copyright (C) 2002-2003 Free Software Foundation, Inc.
  9142. Copying and distribution of this file, with or without modification,
  9143. are permitted in any medium without royalty provided the copyright
  9144. notice and this notice are preserved.
  9145. Local Variables:
  9146. mode: change-log
  9147. left-margin: 8
  9148. fill-column: 74
  9149. version-control: never
  9150. End: