ChangeLog-0001 342 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598
  1. 2001-12-31 Jakub Jelinek <jakub@redhat.com>
  2. * elflink.h (elf_bfd_final_link): Check if dynobj is not NULL
  3. before looking for .eh_frame_hdr section.
  4. * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): If
  5. .eh_frame_hdr section is being stripped from output, don't do
  6. anything.
  7. 2001-12-27 Tom Rix <trix@redhat.com>
  8. * coff-rs6000.c (xcoff_generate_rtinit): Clean data_buffer alloc/free.
  9. * coff64-rs6000.c (xcoff64_generate_rtinit): Same.
  10. (xcoff_write_archive_contents_big): Rewrite.
  11. (xcoff_write_armap_big): Rewrite.
  12. (xcoff_write_one_armap_big): Delete.
  13. * libxcoff.h : Clean up.
  14. 2001-12-21 Tom Rix <trix@redhat.com>
  15. * xcofflink.c (bfd_xcoff_link_generate_rtinit): New function.
  16. Interface to linker for generation of __rtinit.
  17. * libxcoff.h (struct xcoff_backend_data_rec): Add new ops to xcoff
  18. backend to generate special linker symbol __rtinit.
  19. * coff-rs6000.c (bfd_xcoff_backend_data, bfd_pmac_xcoff_backend_data)
  20. : Add new rtinit ops
  21. * coff64-rs6000.c (bfd_xcoff_aix5_backend_data,
  22. bfd_xcoff_backend_data): Same.
  23. * bfd-in.h: Add bfd_xcoff_link_generate_rtinit.
  24. * bfd-in2.h : Regenerate.
  25. 2001-12-21 Jakub Jelinek <jakub@redhat.com>
  26. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix dst_mask for
  27. R_SPARC_DISP32. Support R_SPARC_PLT32.
  28. (sparc_reloc_map): Add BFD_RELOC_16_PCREL and BFD_RELOC_SPARC_PLT32.
  29. (elf32_sparc_check_relocs): Handle R_SPARC_PLT32.
  30. (elf32_sparc_relocate_section): Likewise.
  31. * elf64-sparc.c (sparc64_elf_howto_table): Fix dst_mask for
  32. R_SPARC_DISP32. Support R_SPARC_PLT32 and R_SPARC_PLT64.
  33. (sparc_reloc_map): Add BFD_RELOC_16_PCREL, BFD_RELOC_64_PCREL
  34. and BFD_RELOC_SPARC_PLT32.
  35. (sparc64_elf_check_relocs): Handle R_SPARC_PLT32 and R_SPARC_PLT64.
  36. (sparc64_elf_relocate_section): Likewise.
  37. * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SPARC_PLT32.
  38. * bfd-in2.h, libbfd.h: Rebuilt.
  39. 2001-12-20 Tom Rix <trix@redhat.com>
  40. * coffcode.h (coff_compute_section_file_positions): Add special AIX
  41. loader alignment of text section.
  42. 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
  43. * config.bfd (mips-dec-netbsd*): Delete alias for mips*el-*-netbsd*.
  44. * config.bfd (arm-*-netbsdelf*): Add target.
  45. * configure.in: Include netbsd-core.lo for native arm-*-netbsd*.
  46. * configure: Regenerate.
  47. 2001-12-20 Alan Modra <amodra@bigpond.net.au>
  48. * elfcode.h (elf_slurp_symbol_table): Test elf_elfsections for NULL,
  49. as can happen with a core file, before dereferencing.
  50. 2001-12-19 Michael Snyder <msnyder@redhat.com>
  51. * elf32-i386.c (elf_i386_grok_psinfo): Fix copy-and-paste error:
  52. target is i386 (not mips), and size of descdata is 124 (not 128).
  53. 2001-12-19 Jakub Jelinek <jakub@redhat.com>
  54. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): If new_size
  55. is 0, temporarily grow it to minimal CIE size.
  56. (_bfd_elf_write_section_eh_frame): If input .eh_frame section would
  57. end up empty, build a fake minimal CIE.
  58. 2001-12-19 Steve Ellcey <sje@cup.hp.com>
  59. * config.bfd (bfd_elf32_ia64_hpux_big_vec): New vector for
  60. ia64*-*-hpux* target.
  61. (bfd_elf64_ia64_hpux_big_vec): Likewise.
  62. * targets.c: Ditto.
  63. * configure.in: Ditto.
  64. * configure: Regenerate
  65. * elfxx-ia64.c (elfNN_ia64_final_write_processing): Replace use of
  66. alloca with bfd_malloc.
  67. (get_local_sym_hash): Likewise.
  68. (elfNN_hpux_post_process_headers): New function.
  69. #include elfNN-target.h again with values for IA64 HP-UX vector.
  70. 2001-12-18 Michael Snyder <msnyder@redhat.com>
  71. * elf.c (assign_file_positions_for_segments): Don't sort PT_NOTE
  72. sections of corefiles. Also it makes no sense to sort if count == 1.
  73. 2001-12-18 H.J. Lu <hjl@gnu.org>
  74. * elf.c (_bfd_elf_copy_private_bfd_data): Also copy GP.
  75. 2001-12-18 H.J. Lu <hjl@gnu.org>
  76. * elf.c (_bfd_elf_copy_private_bfd_data): Update comments.
  77. 2001-12-18 H.J. Lu <hjl@gnu.org>
  78. * elf-bfd.h (_bfd_elf_copy_private_bfd_data): New. Prototype.
  79. (_bfd_mips_elf_copy_private_bfd_data): Removed.
  80. * elf.c (_bfd_elf_copy_private_bfd_data): New. Copy e_flags in
  81. the ELF header.
  82. * elf32-i370.c (??_elf_copy_private_bfd_data): Removed.
  83. (bfd_elf??_bfd_copy_private_bfd_data): Removed.
  84. * elf32-m32r.c: Likewise.
  85. * elf32-m68k.c: Likewise.
  86. * elf32-mcore.c: Likewise.
  87. * elf32-mips.c: Likewise.
  88. * elf32-ppc.c: Likewise.
  89. * elf32-v850.c: Likewise.
  90. * elf64-ppc.c: Likewise.
  91. * elf64-sparc.c: Likewise.
  92. * elfxx-ia64.c: Likewise.
  93. * elf64-mips.c (bfd_elf64_bfd_copy_private_bfd_data): Removed.
  94. * elfxx-target.h (bfd_elfNN_bfd_copy_private_bfd_data): Defined
  95. to _bfd_elf_copy_private_bfd_data.
  96. 2001-12-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
  97. * elf32-s390 (elf_s390_check_relocs): Pass addend to
  98. gc_record_vtentry.
  99. * elf64-s390 (elf_s390_check_relocs): Likewise.
  100. Fix by Andreas Jaeger <aj@suse.de>.
  101. 2001-12-18 Jason Thorpe <thorpej@wasabisystems.com>
  102. * configure.host: Correctly match all NetBSD/mips
  103. hosts.
  104. 2001-12-18 matthew green <mrg@eterna.com.au>
  105. * config.bfd (m68*-*-netbsdelf*): New target.
  106. (m68*-*-netbsd): Also include bfd_elf32_m68k_vec.
  107. (m68*-*-netbsdaout*): New alias for m68*-*-netbsd.
  108. 2001-12-18 Jakub Jelinek <jakub@redhat.com>
  109. * elflink.h (size_dynamic_sections): Skip anonymous version tag.
  110. (elf_link_assign_sym_version): Don't count anonymous version tag.
  111. 2001-12-18 Jakub Jelinek <jakub@redhat.com>
  112. * elf-eh-frame.c (struct cie): Add make_lsda_relative.
  113. (struct eh_cie_fde): Add lsda_encoding, lsda_offset,
  114. make_lsda_relative.
  115. (read_value, write_value): New.
  116. (_bfd_elf_discard_section_eh_frame): Inicialize
  117. lsda_encoding, lsda_offset and make_lsda_relative.
  118. (_bfd_elf_eh_frame_section_offset): If make_lsda_relative,
  119. request no dynamic reloc for LSDA field of FDE.
  120. (_bfd_elf_write_section_eh_frame): Handle make_lsda_relative.
  121. If a non-DW_EH_PE_absptr value is 0, don't adjust it by base
  122. or pcrel. Fix address computation for DW_EH_PE_pcrel relocs.
  123. Update LSDA field if LSDA encoding is DW_EH_PE_pcrel, because
  124. . might have changed due to deleted FDE or CIEs.
  125. 2001-12-18 Jakub Jelinek <jakub@redhat.com>
  126. * elf-strtab.c (struct elf_strtab_hash_entry): Add u.next.
  127. (last_eq): Remove.
  128. (_bfd_elf_strtab_finalize): Don't use a hash table for last
  129. character chains, instead use an array.
  130. 2001-12-18 Jason Thorpe <thorpej@wasabisystems.com>
  131. * elf.c (elfcore_netbsd_get_lwpid): New function.
  132. (elfcore_grok_netbsd_procinfo): New function.
  133. (elfcore_grok_netbsd_note): New function.
  134. (elfcore_read_notes): Call elfcore_grok_netbsd_note to process
  135. NetBSD ELF core file notes.
  136. 2001-12-18 Alan Modra <amodra@bigpond.net.au>
  137. * elfcode.h (struct bfd_preserve): New.
  138. (elf_object_p): Replace preserved_* vars with instance of above.
  139. Save and restore arch_info pointer rather than arch, mach so that
  140. more cases can be restored. Save and restore new section_tail,
  141. section_htab structure, and init appropriately. Move "rest of
  142. section header" code so that i_shdrp needs no NULL initialisation.
  143. Free old section_htab on success.
  144. * elfcore.h (elf_core_file_p): Likewise.
  145. 2001-12-17 Tom Rix <trix@redhat.com>
  146. * coffcode.h (sec_to_styp_flags): Add STYP_EXCEPT and STYP_TYPCHK for
  147. xcoff.
  148. 2001-12-17 Jakub Jelinek <jakub@redhat.com>
  149. * elf-bfd.h (elf_discarded_section): Define.
  150. * elflink.h (elf_link_input_bfd): Use it.
  151. (elf_reloc_symbol_deleted_p): Likewise.
  152. * elf64-alpha.c (elf64_alpha_relocate_section): Don't warn about
  153. overflows for pc relative relocs against discarded sections.
  154. 2001-12-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  155. * elf32-mips.c (_bfd_mips_elf_relocate_section): Formatting.
  156. * elf64-mips.c: Add most of the fixes and tweaks done in elf32-mips.c
  157. over the last months. Add some code for mips16 handling.
  158. (mips_elf64_check_mips16_stubs): New function.
  159. (mips_elf64_stub_section_p): Likewise.
  160. (mips_elf64_calculate_relocation): Change interface to support mips16.
  161. (mips_elf64_perform_relocation): Likewise.
  162. 2001-12-17 Alan Modra <amodra@bigpond.net.au>
  163. Support for more than 64k ELF sections.
  164. * elf-bfd.h (elf_size_info <swap_symbol_out>): Add shndx param.
  165. (bfd_elf32_swap_symbol_in): Likewise.
  166. (bfd_elf32_swap_symbol_out): Likewise.
  167. (bfd_elf64_swap_symbol_in): Likewise.
  168. (bfd_elf64_swap_symbol_out): Likewise.
  169. (elf_reloc_cookie): Add locsym_shndx field. Make locsyms a PTR.
  170. (elf_obj_tdata): Add num_elf_sections, symtab_shndx_hdr and
  171. symtab_shndx_section.
  172. (elf_numsections): Define.
  173. (elf_symtab_shndx): Define.
  174. * elf.c (setup_group): Use elf_numsections rather than header e_shnum.
  175. (bfd_elf_find_section): Likewise.
  176. (bfd_section_from_elf_index): Likewise.
  177. (bfd_section_from_shdr): Likewise. Handle SHT_SYMTAB_SHNDX.
  178. (bfd_section_from_r_symndx): Read symbol shndx extension, and
  179. translate st_shndx for > SHN_HIRESERVE.
  180. (assign_section_numbers): Skip reserved sections. Assign
  181. symtab_shndx_section and elf_numsections. Exclude reserved
  182. sections from e_shnum. Set up symtab_shndx_hdr.
  183. (_bfd_elf_compute_section_file_positions): Handle symtab_shndx_hdr.
  184. (map_sections_to_segments): Don't map eh_frame_hdr unless required.
  185. (assign_file_positions_except_relocs): Use elf_numsections rather
  186. than header e_shnum. Skip reserved sections and symtab_shndx_section.
  187. (prep_headers): Set name for symtab_shndx_hdr.
  188. (_bfd_elf_assign_file_positions_for_relocs): Use elf_numsections.
  189. (_bfd_elf_write_object_contents): Likewise. Skip reserved sections.
  190. (_bfd_elf_section_from_bfd_section): Check bfd_{abs,com,und}_section
  191. first. Use elf_section_data if available. Use elf_numsections.
  192. Start scan at index 1.
  193. (copy_private_bfd_data ): Comment fixes.
  194. (MAP_ONESYMTAB): Define above SHN_HIOS.
  195. (MAP_DYNSYMTAB): Likewise.
  196. (MAP_STRTAB): Likewise.
  197. (MAP_SHSTRTAB): Likewise.
  198. (MAP_SYM_SHNDX): New define.
  199. (_bfd_elf_copy_private_symbol_data): Handle symtab_shndx_section.
  200. (swap_out_syms): Swap out SHT_SYMTAB_SHNDX section too.
  201. * elfcode.h (elf_swap_symbol_in): Add shndx param, and handle shndx
  202. extension.
  203. (elf_swap_symbol_out): Likewise.
  204. (elf_object_p): Set elf_numsections, and use instead of e_shnum.
  205. Initialialise reserved elf_elfsections to point at shdr[0]. Remove
  206. redundant bfd_release calls.
  207. (elf_slurp_symbol_table): Read symbol shndx extension, and use with
  208. elf_swap_symbol_in. Translate st_shndx for > SHN_HIRESERVE too.
  209. * elflink.h (elf_link_is_defined_archive_symbol): Read symbol shndx
  210. extension, and use with elf_swap_symbol_in.
  211. (elf_link_record_local_dynamic_symbol): Likewise.
  212. (elf_link_add_object_symbols): Likewise. Also translate st_shndx
  213. for elf sections > SHN_HIRESERVE.
  214. (NAME(bfd_elf,size_dynamic_sections)): Adjust elf_swap_symbol_out
  215. call.
  216. (struct elf_final_link_info): Add locsym_shndx and symshndxbuf.
  217. (elf_bfd_final_link): Allocate the above, and tidy code allocating
  218. other buffers. Use elf_numsections instead of e_shnum. Adjust
  219. elf_swap_symbol_out calls.
  220. (elf_link_output_sym): Swap out symbol shndx extension too.
  221. (elf_link_flush_output_syms): And flush them to disk.
  222. (elf_link_output_extsym): Use SHN_BAD. Adjust elf_swap_symbol_out
  223. calls.
  224. (elf_gc_mark): Read symbol shndx extension, and use with
  225. elf_swap_symbol_in.
  226. (elf_link_input_bfd): Likewise, Translate st_shndx for elf sections
  227. > SHN_HIRESERVE too. Use SHN_BAD.
  228. (elf_reloc_symbol_deleted_p): Use symbol shndx extensions with
  229. elf_swap_symbol_in. Translate st_shndx > SHN_HIRESERVE too.
  230. (elf_bfd_discard_info): Read symbol shndx extension. Don't attempt
  231. to continue after a bfd error.
  232. * elf-m10200.c (mn10200_elf_relax_section): Only read local syms.
  233. Stash them immediately to symtab_hdr->contents rather than later
  234. in multiple places. Clean up afterwards. Read symbol shndx
  235. extension, and use with swap_symbol_in. Translate SHN_UNDEF,
  236. SHN_ABS, SHN_COMMON and elf sections > SHN_HIRESERVE to bfd
  237. sections too. Remove dead code.
  238. (mn10200_elf_relax_delete_bytes): Use symbol shndx extension
  239. when swapping in symbols. Tidy code adjusting global syms.
  240. Don't swap in global syms.
  241. (mn10200_elf_symbol_address_p): Likewise. Remove extsyms param.
  242. (mn10200_elf_get_relocated_section_contents): Read symbol shndx
  243. extension, and use with swap_symbol_in. Rename "size" -> "amt"
  244. to maximize code in common with other files. Translate st_shndx
  245. for > SHN_HIRESERVE too. Remove dead code.
  246. * elf-m10300.c (mn10300_elf_relax_section): Only read local syms.
  247. Stash them immediately to symtab_hdr->contents rather than later
  248. in multiple places. Clean up afterwards. Read symbol shndx
  249. extension, and use with swap_symbol_in. Remove dead code.
  250. (mn10300_elf_relax_delete_bytes): As for elf-m10200.c.
  251. (mn10300_elf_symbol_address_p): Likewise.
  252. (mn10300_elf_get_relocated_section_contents): Likewise.
  253. * elf32-h8300.c (elf32_h8_relax_section): As for elf-m10300.c.
  254. (elf32_h8_relax_delete_bytes): Likewise.
  255. (elf32_h8_symbol_address_p): Likewise.
  256. (elf32_h8_get_relocated_section_contents): Likewise.
  257. * elf32-hppa.c (elf32_hppa_size_stubs): Read symbol shndx
  258. extension, and use with swap_symbol_in.
  259. * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
  260. * elf32-i370.c (i370_elf_finish_dynamic_sections): Adjust call to
  261. bfd_elf32_swap_symbol_out.
  262. * elf32-m32r.c (m32r_elf_get_relocated_section_contents): Translate
  263. elf sections > SHN_HIRESERVE too.
  264. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Only read
  265. local syms. Read symbol shndx extension, and use with swap_symbol_in.
  266. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Use
  267. elf_numsections rather than header e_shnum.
  268. * elf32-sh.c (sh_elf_relax_section): As for elf-m10300.c.
  269. (sh_elf_relax_delete_bytes): Likewise.
  270. (sh_elf_get_relocated_section_contents): Likewise. Only read local
  271. symbols.
  272. * elf32-v850.c (v850_elf_symbol_processing): Use an unsigned int to
  273. hold section index. Use elf_numsections rather than e_shnum.
  274. Rename "index" -> "indx" to avoid shadowing warning.
  275. (v850_elf_add_symbol_hook): Likewise.
  276. * elf64-alpha.c (elf64_alpha_relax_section): Only read local syms.
  277. Read symbol shndx extension, and use with swap_symbol_in.
  278. * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
  279. Translate SHN_COMMON and elf sections > SHN_HIRESERVE too.
  280. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  281. (elfNN_ia64_aix_add_symbol_hook): Use elf_numsections.
  282. * elf-m10300.c (mn10300_elf_gc_mark_hook): Remove unnecessary checks
  283. before calling bfd_section_from_elf_index on local syms.
  284. * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
  285. * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
  286. * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
  287. * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
  288. * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
  289. * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
  290. * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
  291. * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
  292. * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
  293. * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
  294. * elf32-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
  295. * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
  296. * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
  297. * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
  298. * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
  299. * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
  300. * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
  301. * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
  302. * elf64-mips.c (mips_elf64_gc_mark_hook): Likewise.
  303. * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
  304. * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
  305. * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
  306. * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
  307. 2001-12-17 Alan Modra <amodra@bigpond.net.au>
  308. Hash bfd sections for fast lookup and create.
  309. * bfd.c (struct _bfd): Add section_htab, section_tail.
  310. * libbfd-in.h (_bfd_delete_bfd): Declare.
  311. (bfd_section_hash_newfunc): Declare.
  312. * opncls.c (_bfd_new_bfd): Free memory on failure. Init
  313. section_htab and section_tail.
  314. (_bfd_delete_bfd): New function.
  315. (bfd_openr): Use it.
  316. (bfd_fdopenr): Likewise.
  317. (bfd_openstreamr): Likewise.
  318. (bfd_openw): Likewise.
  319. (bfd_close): Likewise.
  320. (bfd_close_all_done): Likewise.
  321. (bfd_release): Comment.
  322. * section.c (struct section_hash_entry): New.
  323. (bfd_section_hash_newfunc): New function.
  324. (section_hash_lookup): Define.
  325. (bfd_section_init): New function, split out from
  326. bfd_make_section_anyway.
  327. (bfd_get_section_by_name): Lookup via hash table.
  328. (bfd_get_unique_section_name): Likewise.
  329. (bfd_make_section_old_way): Rewrite to use hash table.
  330. (bfd_make_section_anyway): Likewise.
  331. (bfd_make_section): Likewise. Return NULL for attempts to make
  332. BFD_{ABS,COM,UND,IND}_SECTION_NAME.
  333. (_bfd_strip_section_from_output): Adjust section_tail if needed.
  334. * configure.in: Bump bfd version.
  335. * configure: Regenerate.
  336. * libbfd.h: Regenerate.
  337. * bfd-in2.h: Regenerate.
  338. 2001-12-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  339. * elf64-mips.c (mips_elf64_link_hash_entry): New link hash.
  340. (mips_elf64_high): New Function.
  341. (mips_elf64_higher): Likewise.
  342. (mips_elf64_highest): Likewise.
  343. (mips_elf64_info_to_howto_rel): Likewise.
  344. (mips_elf64_info_to_howto_rela): Likewise.
  345. (mips_elf64_write_rel): Likewise.
  346. (mips_elf64_write_rela): Likewise.
  347. (mips_elf64_link_hash_newfunc): Likewise.
  348. (mips_elf64_hi16_reloc): Likewise.
  349. (mips_elf64_higher_reloc): Likewise.
  350. (mips_elf64_highest_reloc): Likewise.
  351. (mips_elf64_gprel16_reloc): Likewise.
  352. (mips_elf64_gprel16_reloca): Likewise.
  353. (mips_elf64_literal_reloc): Likewise.
  354. (mips_elf64_gprel32_reloc): Likewise.
  355. (mips_elf64_shift6_reloc): Likewise.
  356. (mips_elf64_got16_reloc): Likewise.
  357. (mips_elf64_assign_gp): Likewise.
  358. (mips_elf64_final_gp): Likewise.
  359. (gprel16_with_gp): Likewise.
  360. (mips_elf64_additional_program_headers): Likewise.
  361. (mips_elf64_link_hash_table_create): Likewise.
  362. (mips_elf64_got_offset_from_index): Likewise.
  363. (_mips_elf64_got_info): Likewise.
  364. (mips_elf64_sign_extend): Likewise.
  365. (mips_elf64_overflow_p): Likewise.
  366. (mips_elf64_global_got_index): Likewise.
  367. (mips_elf64_sort_hash_table_f): Likewise.
  368. (mips_elf64_sort_hash_table): Likewise.
  369. (mips_elf64_swap_msym_out): Likewise.
  370. (mips_elf64_create_local_got_entry): Likewise.
  371. (mips_elf64_local_got_index): Likewise.
  372. (mips_elf64_got_page): Likewise.
  373. (mips_elf64_got16_entry): Likewise.
  374. (mips_elf64_local_relocation_p): Likewise.
  375. (mips_elf64_next_relocation): Likewise.
  376. (mips_elf64_create_dynamic_relocation): Likewise.
  377. (mips_elf64_calculate_relocation): Likewise.
  378. (mips_elf64_obtain_contents): Likewise.
  379. (mips_elf64_perform_relocation): Likewise.
  380. (mips_elf64_relocate_section): Likewise.
  381. (mips_elf64_create_dynamic_sections): Likewise.
  382. (mips_elf64_adjust_dynamic_symbol): Likewise.
  383. (mips_elf64_always_size_sections): Likewise.
  384. (mips_elf64_size_dynamic_sections): Likewise.
  385. (mips_elf64_finish_dynamic_symbol): Likewise.
  386. (mips_elf64_finish_dynamic_sections): Likewise.
  387. (mips_elf64_gc_mark_hook): Likewise.
  388. (mips_elf64_gc_sweep_hook): Likewise.
  389. (mips_elf64_create_got_section): Likewise.
  390. (mips_elf64_record_global_got_symbol): Likewise.
  391. (mips_elf64_create_msym_section): Likewise.
  392. (mips_elf64_allocate_dynamic_relocations): Likewise.
  393. (mips_elf64_check_relocs): Likewise.
  394. (mips_elf64_output_extsym): Likewise.
  395. (mips_elf64_swap_gptab_in): Likewise.
  396. (mips_elf64_swap_gptab_out): Likewise.
  397. (gptab_compare): Likewise.
  398. (mips_elf64_final_link): Likewise.
  399. (prev_reloc_addend): Remenber addend of previous parts of a combined
  400. reloc.
  401. (ELF_MIPS_GP_OFFSET): New define.
  402. (STUB_LW,STUB_MOVE,STUB_JALR,STUB_LI16): Likewise.
  403. (MIPS_FUNCTION_STUB_SIZE): Likewise.
  404. (mips_elf64_howto_rel): Fix HOWTO defines.
  405. (mips_elf64_howto_rela): Likewise.
  406. (mips_elf64_swap_reloca_out): Fix signedness.
  407. (mips_elf64_be_swap_reloc_in): Use ELF64* instead of ELF32*.
  408. (mips_elf64_be_swap_reloca_in): Likewise.
  409. (mips_elf64_be_swap_reloc_out): Likewise. Preserve extended type info.
  410. (mips_elf64_be_swap_reloca_out): Likewise.
  411. 2001-12-15 Jakub Jelinek <jakub@redhat.com>
  412. * elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype.
  413. * elf-eh-frame.c (struct eh_frame_hdr_info): Add strip.
  414. (_bfd_elf_discard_section_eh_frame): Don't create .eh_frame_hdr
  415. sec_info here. Free ehbuf.
  416. (_bfd_elf_discard_section_eh_frame_hdr): Don't size the section
  417. if hdr_info->strip.
  418. (_bfd_elf_maybe_strip_eh_frame_hdr): New.
  419. * elflink.h (size_dynamic_sections): Call it.
  420. 2001-12-14 Alan Modra <amodra@bigpond.net.au>
  421. * elflink.h (elf_bfd_discard_info): Fix segfault when dynobj NULL.
  422. 2001-12-13 Jakub Jelinek <jakub@redhat.com>
  423. * elf-bfd.h (enum elf_link_info_type): New.
  424. (struct bfd_elf_section_data): Remove stab_info and merge_info
  425. fields, add sec_info and sec_info_type.
  426. (struct elf_obj_tdata): Add eh_frame_hdr field.
  427. (_bfd_elf_discard_section_eh_frame): New prototype.
  428. (_bfd_elf_discard_section_eh_frame_hdr): Likewise.
  429. (_bfd_elf_eh_frame_section_offset): Likewise.
  430. (_bfd_elf_write_section_eh_frame): Likewise.
  431. (_bfd_elf_write_section_eh_frame_hdr): Likewise.
  432. * Makefile.am (BFD32_BACKENDS): Add elf-eh-frame.lo.
  433. (BFD32_BACKENDS_CFILES): Add elf-eh-frame.c.
  434. (elf-eh-frame.lo): New.
  435. * Makefile.in: Rebuilt.
  436. * configure.in (elf): Add elf-eh-frame.lo.
  437. * configure: Rebuilt.
  438. * elf.c (_bfd_elf_print_private_bfd_data): Support PT_GNU_EH_FRAME.
  439. (map_sections_to_segments): Create PT_GNU_EH_FRAME if requested.
  440. (get_program_header_size): Take into account PT_GNU_EH_FRAME
  441. segment.
  442. (_bfd_elf_rela_local_sym): Use sec_info_type and sec_info.
  443. (_bfd_elf_rel_local_sym): Likewise.
  444. (_bfd_elf_section_offset): Likewise. Call
  445. _bfd_elf_eh_frame_section_offset too.
  446. * elfxx-ia64.c (elfNN_ia64_relocate_section): Use sec_info_type and
  447. sec_info.
  448. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  449. * elf-eh-frame.c: New file.
  450. * elflink.h (elf_link_add_object_symbols): Don't optimize SHF_MERGE
  451. .stab sections. Set sec_info_type, use sec_info instead
  452. of merge_info and stab_info.
  453. (elf_link_create_dynamic_sections): Create .eh_frame_hdr section
  454. if --eh-frame-hdr.
  455. (elf_bfd_final_link): Write .eh_frame_hdr section.
  456. (elf_link_sec_merge_syms): Use sec_info_type and sec_info.
  457. (elf_link_input_bfd): Likewise.
  458. Call _bfd_elf_write_section_eh_frame to write .eh_frame sections.
  459. (elf_bfd_discard_info): Add output_bfd argument.
  460. Call _bfd_elf_discard_section_eh_frame and
  461. _bfd_elf_discard_section_eh_frame_hdr.
  462. (elf_section_ignore_discarded_relocs): Use sec_info_type, not section
  463. names.
  464. * bfd-in.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Adjust
  465. prototypes.
  466. * bfd-in2.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Likewise.
  467. 2001-12-12 Richard Henderson <rth@redhat.com>
  468. * syms.c (_bfd_generic_read_minisymbols): Early return for
  469. no symbols. Patch from FreeBSD folk; exact origin unknown.
  470. 2001-12-11 Alan Modra <amodra@bigpond.net.au>
  471. * elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnum
  472. and e_shstrndx if out of range.
  473. (elf_object_p): Read extended values for e_shnum and e_shstrndx
  474. from the first section header. Allocate space in elf_elfsections
  475. for reserved sections and set to NULLs.
  476. (elf_write_shdrs_and_ehdr): Set overflow fields in first section
  477. header. Skip reserved sections in elf_elfsections. Remove
  478. duplicate size calculation.
  479. 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
  480. Richard Henderson <rth@redhat.com>
  481. Corinna Vinschen <vinschen@redhat.com>
  482. * Makefile.am: Add support for xstormy16.
  483. * archures.c: Add support for xstormy16.
  484. * config.bfd: Add support for xstormy16.
  485. * configure.in: Add support for xstormy16.
  486. * reloc.c: Add support for xstormy16.
  487. * targets.c: Add support for xstormy16.
  488. * cpu-xstormy16.c: New file.
  489. * elf32-xstormy16.c: New file.
  490. * Makefile.in: Regenerated.
  491. * bfd-in2.h: Regenerated.
  492. * configure: Regenerated.
  493. * libbfd.h: Regenerated.
  494. 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
  495. * elf.c (assign_file_positions_for_segments): Combine sentance
  496. fragments into a single sentance in order to permit better
  497. translation into foreign languages.
  498. 2001-12-07 Jim Blandy <jimb@redhat.com>
  499. * elf32-s390.c (elf32_s390_grok_prstatus): New function.
  500. (elf_backend_grok_prstatus): Define.
  501. 2001-12-07 Jakub Jelinek <jakub@redhat.com>
  502. * elf32-sparc.c (elf32_sparc_relocate_section): Revert
  503. 2001-09-14 change.
  504. 2001-12-07 Jakub Jelinek <jakub@redhat.com>
  505. * elf.c (_bfd_elf_rela_local_sym): Only call
  506. _bfd_merged_section_offset if merge_info is non-NULL.
  507. (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New.
  508. * elf-bfd.h (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New
  509. prototypes.
  510. * elf32-arm.h (elf32_arm_final_link_relocate): Use
  511. _bfd_elf_section_offset.
  512. (elf32_arm_relocate_section): Use _bfd_elf_rel_local_sym.
  513. * elf32-i386.c (elf_i386_relocate_section): Use
  514. _bfd_elf_section_offset and _bfd_elf_rel_local_sym.
  515. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  516. * elf32-sparc.c (elf32_sparc_relocate_section): Use
  517. _bfd_elf_section_offset.
  518. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  519. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  520. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  521. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  522. * elf32-mips.c (mips_elf_create_dynamic_relocation): Likewise.
  523. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  524. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  525. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  526. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  527. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  528. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  529. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  530. * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
  531. 2001-12-07 Alan Modra <amodra@bigpond.net.au>
  532. * elf32-hppa.c (clobber_millicode_symbols): Don't do anything if
  533. already forced local.
  534. 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
  535. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Combine
  536. fragmented sentence parts into a whole sentence to permit
  537. better translation into foreign languages.
  538. 2001-12-06 Hans-Peter Nilsson <hp@bitrange.com>
  539. * configure: Regenerate.
  540. * Makefile.in: Regenerate.
  541. 2001-12-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  542. * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and
  543. BFD64_LIBS, make the latter depending on the availability of BFD64.
  544. Add archive64.c source file.
  545. * archive64.c: New file implementing bfd_elf64_archive_slurp_armap
  546. and bfd_elf64_archive_write_armap, code from elf64-mips.c
  547. * archive.c (bfd_slurp_armap): Add ELF64 archive support.
  548. * config.bfd (mips*-*-irix6*): Allow with BFD64 only.
  549. (mips64*el-*-linux*): Likewise.
  550. (mips*el-*-linux*): Likewise. Reorder entries.
  551. * configure.in (bfd_libs): Define in dependency of BFD64 and
  552. AC_SUBST it.
  553. * elf64-mips.c (mips_elf64_slurp_armap): Remove, use
  554. bfd_elf64_archive_slurp_armap instead.
  555. (mips_elf64_write_armap): Remove, use bfd_elf64_archive_write_armap
  556. instead.
  557. 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  558. * config.bfd: Remove trailing blanks.
  559. * elf32-mips.c (gprel16_with_gp): Remove superfluous casts.
  560. 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
  561. * elf32-d10v.c (elf_d10v_howto_table): Adjust bit-size of
  562. R_D10V_10_PCREL_L, R_D10V_10_PCREL_R, R_D10V_18,
  563. R_D10V_18_PCREL. Check 10_PCREL relocations as signed.
  564. Disable pointless overflow checking of NONE and 32.
  565. 2001-12-04 Alan Modra <amodra@bigpond.net.au>
  566. * reloc.c (bfd_install_relocation): Correct reloc address test.
  567. (bfd_perform_relocation): Formatting fix.
  568. * bfd-in2.h: Regenerate for 2001-12-02 reloc.c change.
  569. 2001-12-03 Nick Clifton <nickc@cambridge.redhat.com>
  570. * configure.in (LINGUAS): Add tr.
  571. * configure: Regenerate.
  572. * po/tr.po: Import from translation project's web site.
  573. 2001-12-03 Alan Modra <amodra@bigpond.net.au>
  574. * elf32-hppa.c (hppa_get_stub_entry): Remove debug message that
  575. happens to trigger on undefined symbols.
  576. (final_link_relocate): Return bfd_reloc_undefined for undefined
  577. stubs.
  578. (elf32_hppa_relocate_section): Don't say we can't handle a reloc
  579. if we have already warned about an undefined symbol.
  580. 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  581. * elf32-mips.c (NEWABI_P): New define.
  582. (USE_REL): Remove, replaced by
  583. (elf_backend_may_use_rel_p): New define.
  584. (elf_backend_may_use_rela_p): Likewise.
  585. (elf_backend_default_use_rela_p): Likewise.
  586. (elf_mips_howto_table): Rename to elf_mips_howto_table_rel.
  587. Fix some relocation definitions.
  588. (elf_mips_howto_table_rela): New RELA relocation definitions for
  589. NewABI support.
  590. (mips32_64bit_reloc): Use the renamed elf_mips_howto_table_rel.
  591. (bfd_elf32_bfd_reloc_type_lookup): Likewise.
  592. (mips_rtype_to_howto): Likewise.
  593. (_bfd_mips_elf_relocate_section): Likewise.
  594. (_bfd_mips_elf_object_p): Typo.
  595. (elf_backend_sign_extend_vma): Reordered together with many other
  596. defines nearby to resemble the order of declaration in the header
  597. file.
  598. 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  599. * coff-mips.c (mips_bfd_reloc_type_lookup): Replace
  600. BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
  601. * pe-mips.c (mips_bfd_reloc_type_lookup): Likewise.
  602. * elf32-mips.c (mips_reloc_map): Likewise. Replace
  603. BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
  604. * elf64-mips.c (mips_reloc_map): Likewise.
  605. * reloc.c (BFD_RELOC_MIPS_GPREL): Remove.
  606. (BFD_RELOC_MIPS_GPREL32): Remove.
  607. 2001-11-30 H.J. Lu <hjl@gnu.org>
  608. * elflink.h (elf_add_default_symbol): New.
  609. (elf_link_add_object_symbols): Call elf_add_default_symbol ()
  610. to create an indirect symbol from the default for the symbol
  611. with the default version if needed.
  612. 2001-11-29 "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
  613. * elf.c (elfcore_grok_prstatus): Do not overwite the core signal
  614. if it has already been set by another thread.
  615. 2001-11-28 Jakub Jelinek <jakub@redhat.com>
  616. * elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined.
  617. (elf64_alpha_relocate_section): Translate local_got_entries
  618. for STT_SECTION symbol to SHF_MERGE section the first time
  619. we see it.
  620. * elfxx-ia64.c (struct elfNN_ia64_local_hash_entry): Add
  621. sec_merge_done.
  622. (get_local_sym_hash): New, extracted from get_dyn_sym_info.
  623. (get_dyn_sym_info): Use it.
  624. (elfNN_ia64_relocate_section): Translate local dyn entries
  625. for STT_SECTION symbol to SHF_MERGE section the first time
  626. we see it.
  627. 2001-11-27 H.J. Lu <hjl@gnu.org>
  628. * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
  629. ELF.
  630. 2001-11-26 Jeffrey A Law (law@cygnus.com)
  631. * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
  632. prototypes.
  633. 2001-11-24 Alan Modra <amodra@bigpond.net.au>
  634. * elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub
  635. group sizes to accommodate c++.
  636. 2001-11-23 Jakub Jelinek <jakub@redhat.com>
  637. * elf32-sparc.c (elf32_sparc_relocate_section): Don't clear
  638. relocations in non-alloced sections against global symbols
  639. defined in shared library being built.
  640. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  641. 2001-11-23 Jakub Jelinek <jakub@redhat.com>
  642. * elf.c (_bfd_elf_rela_local_sym): New.
  643. * elflink.h (elf_link_input_bfd): Don't consider empty
  644. merged sections as removed in relocation tests.
  645. * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype.
  646. * elf32-i386.c (elf_i386_relocate_section): Handle relocs
  647. against STT_SECTION symbol of SHF_MERGE section.
  648. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  649. * elf32-avr.c (elf32_avr_relocate_section): Call
  650. _bfd_elf_rela_local_sym.
  651. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  652. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  653. * elf32-fr30.c (fr30_final_link_relocate): Likewise.
  654. * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
  655. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  656. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  657. * elf32-i860.c (elf32_i860_relocate_section): Likewise.
  658. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  659. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  660. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  661. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
  662. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  663. * elf32-s390.c (elf_s390_relocate_section): Likewise.
  664. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  665. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  666. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  667. * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
  668. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
  669. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  670. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  671. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  672. * elf-hppa.h (elf_hppa_relocate_section): Likewise.
  673. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  674. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  675. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  676. * elf32-sh.c (sh_elf_relocate_section): Likewise for
  677. !partial_inplace relocs. Handle relocs against STT_SECTION
  678. symbol of SHF_MERGE for partial_inplace relocs.
  679. 2001-11-21 Nick Clifton <nickc@cambridge.redhat.com>
  680. * po/Make-in (distclean): Move SRC-POTFILES.in and
  681. BLD-POTFILES.in to maintainer-clean target.
  682. 2001-11-21 Alan Modra <amodra@bigpond.net.au>
  683. * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather
  684. than sym_sec->output_section to detect relocs against discarded
  685. sections.
  686. 2001-11-19 H.J. Lu <hjl@gnu.org>
  687. * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
  688. discarding relocations.
  689. 2001-11-19 Nick Clifton <nickc@cambridge.redhat.com>
  690. * section.c (bfd_is_const_section): New macro. Return true if the
  691. given seciton is one of the special, constant, sections.
  692. * bfd-in2.h: Regenerate.
  693. * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section.
  694. (coff_write_native_symbol): Use bfd_is_const_section.
  695. 2001-11-19 Alan Modra <amodra@bigpond.net.au>
  696. * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount.
  697. * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined
  698. millicode syms as candidates for import stubs.
  699. * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete.
  700. (allocate_PIC_calls): Rename to allocate_plt_static.
  701. (allocate_dynrelocs): Move most of code handling .plt entries to..
  702. (allocate_plt_static): ..here. Don't drop plabel entries.
  703. 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
  704. * mmo.c: Adjust documentation tags to use texinfo 4 features.
  705. 2001-11-16 Nick Clifton <nickc@cambridge.redhat.com>
  706. * section.c (bfd_is_const_section): New macro. Return true if the
  707. section pointer refers to one of the special, constant sections.
  708. * bfd-in2.h: Regenerate.
  709. * coffgen.c (coff_count_linenumbers): Only update the line number
  710. count in non-special sections.
  711. (coff_write_native_symbol): Only update the line number file
  712. position in non-special sections.
  713. 2001-11-15 Daniel Jacobowitz <drow@mvista.com>
  714. * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
  715. local syms from discarded sections. Update comment.
  716. 2001-11-15 Alan Modra <amodra@bigpond.net.au>
  717. * po/SRC-POTFILES.in: Regenerate.
  718. * elflink.h (elf_link_input_bfd): Complain about all relocs
  719. against local syms from discarded sections. K&R fixes.
  720. (elf_reloc_symbol_deleted_p): Don't try to swap in external syms.
  721. K&R fixes.
  722. 2001-11-15 Alexandre Oliva <aoliva@redhat.com>
  723. * elf64-sparc.c (sparc64_elf_relocate_section): Disregard
  724. overflows in the .stab section.
  725. 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
  726. * bfd-in.h (bfd_elf32_discard_info): Add prototype.
  727. (bfd_elf64_discard_info): Likewise.
  728. * bfd-in2.h: Regenerate.
  729. * elf-bfd.h (struct elf_reloc_cookie): New.
  730. (struct elf_backend_data): Add elf_backend_discard_info,
  731. elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
  732. (_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
  733. (_bfd_elf64_reloc_symbol_deleted_p): Likewise.
  734. * elf32-mips.c (_bfd_elf32_mips_discard_info): New.
  735. (_bfd_elf32_mips_ignore_discarded_relocs): New.
  736. (_bfd_elf32_mips_write_section): New.
  737. (elf_backend_discard_info): Define.
  738. (elf_backend_ignore_discarded_relocs): Define.
  739. (elf_backend_write_section): Define.
  740. * elfcode.h (elf_bfd_discard_info): Define.
  741. (elf_reloc_symbol_deleted_p): Define.
  742. * elflink.h (elf_link_input_bfd): Check
  743. elf_section_ignore_discarded_relocs. Call
  744. bed->elf_backend_write_section if available.
  745. (elf_reloc_symbol_deleted_p): New.
  746. (elf_bfd_discard_info): New.
  747. (elf_section_ignore_discarded_relocs): New.
  748. * elfxx-target.h (elf_backend_discard_info): Define.
  749. (elf_backend_ignore_discarded_relocs): Define.
  750. (elf_backend_write_section): Define.
  751. (elfNN_bed): Add elf_backend_discard_info,
  752. elf_backend_ignore_discarded_relocs, and
  753. elf_backend_write_section.
  754. * libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
  755. * libbfd.h: Regenerate.
  756. * stabs.c (_bfd_discard_section_stabs): New.
  757. 2001-11-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
  758. * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
  759. scheme to get rid of an ugly complicated test.
  760. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  761. 2001-11-14 Andreas Jaeger <aj@suse.de>
  762. * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
  763. x86-64 for display.
  764. 2001-11-14 Jakub Jelinek <jakub@redhat.com>
  765. * dwarf2.c (struct line_head) [total_length]: Change type to
  766. bfd_vma.
  767. (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
  768. (struct comp_unit): Add stash and offset_size.
  769. (read_8_bytes): Return bfd_vma.
  770. (read_indirect_string): New.
  771. (read_attribute): Handle DW_FORM_strp.
  772. (decode_line_info): Support 64-bit DWARF format.
  773. (_bfd_dwarf2_find_nearest_line): Likewise.
  774. (parse_comp_unit): Set offset_size and stash.
  775. 2001-11-13 Keith Walker <keith.walker@arm.com>
  776. * dwarf2.c (read_attribute_value): New function to handle
  777. DW_FORM_indirect.
  778. (read_attribute): Use it.
  779. 2001-11-13 Geoffrey Keating <geoffk@redhat.com>
  780. * dwarf2.c (decode_line_info): Properly deal with unknown standard
  781. opcodes.
  782. 2001-11-13 John Marshall <jmarshall@acm.org>
  783. Alan Modra <amodra@bigpond.net.au>
  784. * section.c (bfd_make_section_anyway): Don't increment section_id
  785. and the BFD's section_count if adding the section failed.
  786. * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
  787. change.
  788. 2001-11-12 Orjan Friberg <orjanf@axis.com>
  789. * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
  790. core dump format.
  791. 2001-11-11 H.J. Lu <hjl@gnu.org>
  792. * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
  793. _bfd_elf_strtab_size instead of _bfd_stringtab_size.
  794. * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
  795. dynstr type to `struct elf_strtab_hash *'.
  796. 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
  797. * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
  798. size_t. Rename second i to j.
  799. 2001-11-10 Jeffrey A Law (law@cygnus.com)
  800. * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
  801. 2001-11-10 Alan Modra <amodra@bigpond.net.au>
  802. * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
  803. relocs into shared libs.
  804. * elf32-cris.c (cris_elf_relocate_section): Likewise.
  805. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  806. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  807. * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
  808. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  809. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  810. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  811. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  812. * elf64-s390.c (elf_s390_relocate_section): Likewise.
  813. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  814. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
  815. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
  816. * elf.c (bfd_section_from_r_symndx): New function.
  817. * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
  818. (struct sym_sec_cache): New.
  819. (bfd_section_from_r_symndx): Declare.
  820. (struct bfd_elf_section_data): Change local_dynrel type to PTR.
  821. * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
  822. relocs when relocatable. Don't zero entire reloc, just zero the
  823. addend and sym.
  824. * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
  825. (elf32_hppa_link_hash_table_create): Init it.
  826. (elf32_hppa_check_relocs): Track dynamic relocs needed for local
  827. syms on a per-section basis as we do for globals.
  828. (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
  829. (allocate_dynrelocs): Warning fix.
  830. (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
  831. section has been discarded.
  832. (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
  833. into shared libs.
  834. * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
  835. (elf_i386_link_hash_table_create): Init it.
  836. (elf_i386_check_relocs): Track dynamic relocs needed for local
  837. syms on a per-section basis as we do for globals.
  838. (elf_i386_gc_sweep_hook): Update for local_dynrel change.
  839. Remove dead code.
  840. (allocate_dynrelocs): Warning fix.
  841. (elf_i386_size_dynamic_sections): Don't allocate relocs when
  842. section has been discarded.
  843. (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
  844. into shared libs.
  845. * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
  846. (elf_s390_link_hash_table_create): Init it.
  847. (elf_s390_check_relocs): Track dynamic relocs needed for local
  848. syms on a per-section basis as we do for globals.
  849. (elf_s390_gc_sweep_hook): Update for local_dynrel change.
  850. Remove dead code.
  851. (allocate_dynrelocs): Warning fix.
  852. (elf_s390_size_dynamic_sections): Don't allocate relocs when
  853. section has been discarded.
  854. (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
  855. into shared libs.
  856. * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
  857. (ppc64_link_hash_table_create): Init it.
  858. (ppc64_elf_check_relocs): Track dynamic relocs needed for local
  859. syms on a per-section basis as we do for globals.
  860. (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
  861. (allocate_dynrelocs): Call the correct record_dynamic_dymbol
  862. function. Warning fix.
  863. (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
  864. section has been discarded.
  865. (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
  866. into shared libs.
  867. * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
  868. (elf_s390_link_hash_table_create): Init it.
  869. (elf_s390_check_relocs): Track dynamic relocs needed for local
  870. syms on a per-section basis as we do for globals.
  871. (elf_s390_gc_sweep_hook): Update for local_dynrel change.
  872. Remove dead code.
  873. (allocate_dynrelocs): Warning fix.
  874. (elf_s390_size_dynamic_sections): Don't allocate relocs when
  875. section has been discarded.
  876. (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
  877. into shared libs.
  878. 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
  879. * elf32-s390: Major rework that introduces all recent changes to
  880. the s390 backends. Get a closer match to elf32-i386.
  881. (elf_s390_relocate_section): Make use of dynamic section short-cuts.
  882. Localise vars, and delay setting. Better error reporting, replace
  883. BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
  884. symbol is not defined in the regular object file and tread the weak
  885. definition as the normal one. Don't discard relocs for undefweak or
  886. undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
  887. test for avoided copy relocs. Reinstate fudge for unresolved relocs
  888. in debugging sections.
  889. (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
  890. reloc processing for weakdefs. Remove redundant casts and aborts.
  891. Delay setting of vars until needed. Move creation of dynamic symbols
  892. and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
  893. BFD_ASSERT with abort. Discard .plt entries for everything with
  894. plt.refcount <= 0.
  895. (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
  896. .got or .relgot here but do it in allocate_dynrelocs. Reference count
  897. possible .plt and .got entries. Don't test input section SEC_READONLY
  898. here to try to avoid copy relocs, and keep dyn_relocs regardless of
  899. ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
  900. variables until needed. Remove separate switch stmt for creating .got
  901. section. Initialise local_got_refcounts to 0. Cache pointer to
  902. "sreloc" section in elf_section_data. Tweak condition under which .got
  903. created. Report files with bad relocation section names.
  904. (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
  905. have been forced local. Use same test to decide if we can use a
  906. relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
  907. comment. Move expressions out of function calls. Replace BFD_ASSERT
  908. with abort.
  909. (elf_s390_finish_dynamic_sections): Migrate common code out of switch
  910. statement. Replace BFD_ASSERT with abort.
  911. (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
  912. to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
  913. instead of looking up section names for DT_TEXTREL. Replace
  914. BFD_ASSERT with abort. Zero out the dynamic allocated content space.
  915. Add a comment to remind us that one day this ought to be fixed.
  916. (struct elf_s390_link_hash_entry): Rename "root" to "elf".
  917. (struct elf_s390_link_hash_table): Likewise.
  918. (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
  919. rid of unnecessary casts.
  920. (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
  921. Remove "section" field.
  922. (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
  923. Reference count possible .plt entries. Don't deallocate .got and
  924. .relgot space here.
  925. (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
  926. Update comment.
  927. (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
  928. dyn_relocs.
  929. (elf_s390_discard_copies): Delete.
  930. (elf_s390_link_hash_traverse): Delete.
  931. (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
  932. rather than gc variety).
  933. (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
  934. srelplt, sdynbss, srelbss fields.
  935. (elf_s390_link_hash_table_create): Init them.
  936. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  937. (allocate_dynrelocs): New function.
  938. (create_got_section): New function.
  939. (elf_backend_can_refcount): Define.
  940. (elf_backend_copy_indirect_symbol): Define.
  941. (elf_s390_copy_indirect_symbol): New function.
  942. (elf_s390_create_dynamic_sections): New function.
  943. (readonly_dynrelocs): New function.
  944. * elf64-s390.c: Likewise.
  945. 2001-11-07 Jakub Jelinek <jakub@redhat.com>
  946. * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
  947. (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
  948. (elf-strtab.lo): Add rule.
  949. * Makefile.in: Rebuilt.
  950. * configure.in (elf): Add elf-strtab.lo.
  951. * configure: Rebuilt.
  952. * elf-bfd.h (elf_strtab_hash): Forward declare.
  953. (struct elf_link_hash_table): Change dynstr type to
  954. struct elf_strtab_hash *.
  955. (struct elf_obj_tdata): Change strtab_ptr type to
  956. struct elf_strtab_hash *.
  957. (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
  958. _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
  959. _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
  960. _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
  961. _bfd_elf_strtab_finalize): New prototypes.
  962. * elf-strtab.c: New file.
  963. * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
  964. and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
  965. Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
  966. when forcing dynamic symbol to local.
  967. (elf_link_create_dynamic_sections): Call
  968. _bfd_elf_strtab_init instead of elf_stringtab_init.
  969. (elf_link_record_local_dynamic_symbol): Likewise, change
  970. dynstr type. Use _bfd_elf_strtab functions instead of
  971. _bfd_stringtab calls.
  972. (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
  973. _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
  974. call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
  975. (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
  976. (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
  977. dynamic symbol to local.
  978. (elf_link_assign_sym_version): Likewise.
  979. (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
  980. _bfd_stringtab_emit.
  981. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
  982. type. Call _bfd_elf_strtab functions instead of
  983. _bfd_stringtab functions.
  984. * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
  985. * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
  986. (elf_fake_sections): Likewise.
  987. (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
  988. on shstrtab hash table, call _bfd_elf_strtab_addref on each section
  989. name in the output. Call _bfd_elf_strtab_finalize and
  990. use _bfd_elf_strtab_offset to finalize sh_name section header fields.
  991. (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
  992. instead of _bfd_stringtab_size.
  993. (prep_headers): Change shstrtab type.
  994. Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
  995. 2001-11-07 Alan Modra <amodra@bigpond.net.au>
  996. * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
  997. bad symtab segfault. Formatting and warning fixes. Improve
  998. error message for internationalisation.
  999. 2001-11-06 H.J. Lu (hjl@gnu.org)
  1000. * elflink.h (elf_link_input_bfd): Complain about relocs against
  1001. discarded sections.
  1002. 2001-11-03 Alan Modra <amodra@bigpond.net.au>
  1003. * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
  1004. 2001-11-02 H.J. Lu <hjl@gnu.org>
  1005. * elf32-mips.c (mips_elf_calculate_relocation): Don't create
  1006. dynamic relocation for symbols defined in regular objects when
  1007. creating executables.
  1008. 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
  1009. * configure.in (ALL_LINGUAS): Add "fr".
  1010. * configure: Regenerate.
  1011. * po/fr.po: New file.
  1012. * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
  1013. 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
  1014. * som.c (setup_sections): Initialize subspace_sections.
  1015. 2001-11-02 H.J. Lu (hjl@gnu.org)
  1016. * coffgen.c (coff_object_p): Return 0 if the header is too big.
  1017. 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
  1018. * elfcore.h (elf_core_file_p): Preserve and clear abfd section
  1019. information. Save bfd arch and mach values. Restore on error.
  1020. 2001-11-02 Alan Modra <amodra@bigpond.net.au>
  1021. * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
  1022. (allocate_PIC_calls): New function.
  1023. (allocate_dynrelocs): Don't allocate pic_call plt entries here.
  1024. (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
  1025. (elf32_hppa_finish_dynamic_symbol): Remove dead code.
  1026. 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
  1027. * elf32-cris.c (cris_elf_grok_prstatus): New function.
  1028. (cris_elf_grok_psinfo): New function.
  1029. (elf_backend_grok_prstatus): Define.
  1030. (elf_backend_grok_psinfo): Define.
  1031. 2001-11-01 Alan Modra <amodra@bigpond.net.au>
  1032. * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
  1033. prediction bits.
  1034. 2001-10-31 Chris Demetriou <cgd@demetriou.com>
  1035. * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
  1036. relocations properly.
  1037. 2001-10-31 H.J. Lu <hjl@gnu.org>
  1038. * elflink.h (elf_link_output_extsym): Don't clear the visibility
  1039. field for relocateable.
  1040. 2001-11-01 Alan Modra <amodra@bigpond.net.au>
  1041. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
  1042. .plt relocs in DT_RELASZ.
  1043. 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
  1044. * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
  1045. targets.
  1046. 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
  1047. * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
  1048. 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
  1049. * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
  1050. (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
  1051. (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
  1052. Regenerate dependencies.
  1053. * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
  1054. * config.bfd: [BFD64] (mmix-*-*): New case.
  1055. * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
  1056. * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
  1057. (bfd_mmix_arch): Declare.
  1058. (bfd_archures_list): Add bfd_mmix_arch.
  1059. * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
  1060. (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
  1061. (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
  1062. bfd_mmo_mmix_vec.
  1063. * reloc.c: Add MMIX relocations.
  1064. * bfd.c (struct _bfd, tdata): Add mmo_data.
  1065. * Makefile.in: Regenerate.
  1066. * configure: Regenerate.
  1067. * libbfd.h: Regenerate.
  1068. * bfd-in2.h: Regenerate.
  1069. * configure: Rebuild.
  1070. 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
  1071. * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
  1072. p_paddr of the segment that contains it.
  1073. (copy_private_bfd_data): If the LMA for a segment is known, use it
  1074. for matching sections to segments.
  1075. (assign_file_positions_for_segments): Use the LMA when adjusting
  1076. for inter-section alignment padding.
  1077. 2001-10-29 Kazu Hirata <kazu@hxi.com>
  1078. * README: Fix a typo.
  1079. 2001-10-24 Richard Henderson <rth@redhat.com>
  1080. * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
  1081. timestamp to time_t for ctime.
  1082. 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
  1083. * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
  1084. unsigned, increasing index.
  1085. 2001-10-23 H.J. Lu <hjl@gnu.org>
  1086. * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
  1087. m != NULL before accessing it.
  1088. 2001-10-23 Alan Modra <amodra@bigpond.net.au>
  1089. * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
  1090. bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
  1091. doesn't accept BFD_RELOC_* on some targets, eg. hppa.
  1092. * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
  1093. (hppa_link_hash_newfunc): Likewise.
  1094. (elf32_hppa_finish_dynamic_symbol): Likewise.
  1095. (allocate_dynrelocs): Always allocate .got relocs if shared.
  1096. (elf32_hppa_relocate_section): Output them too. Similarly
  1097. consolidate .plt reloc code, and no longer initialise .plt
  1098. when a reloc is output.
  1099. (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
  1100. when no reloc is output.
  1101. From Herbert Xu <herbert@gondor.apana.org.au>
  1102. * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
  1103. unreachable branches.
  1104. 2001-10-22 H.J. Lu <hjl@gnu.org>
  1105. * configure.in (WIN32LIBADD): Use -L../libiberty for
  1106. mips*-*-linux*.
  1107. * configure: Rebuild.
  1108. 2001-10-21 H.J. Lu <hjl@gnu.org>
  1109. * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
  1110. if shared library is enabled only for Linux hosts.
  1111. * configure: Rebuild.
  1112. 2001-10-21 H.J. Lu <hjl@gnu.org>
  1113. * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
  1114. ../libiberty/Makefile instead of $enable_shared.
  1115. * configure: Rebuild.
  1116. 2001-10-21 H.J. Lu <hjl@gnu.org>
  1117. * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
  1118. index 0.
  1119. 2001-10-20 H.J. Lu <hjl@gnu.org>
  1120. * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
  1121. if shared library is enabled.
  1122. * configure: Rebuild.
  1123. 2001-10-20 H.J. Lu <hjl@gnu.org>
  1124. * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
  1125. 2001-10-19 H.J. Lu <hjl@gnu.org>
  1126. * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
  1127. size is empty.
  1128. 2001-10-18 H.J. Lu <hjl@gnu.org>
  1129. * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
  1130. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  1131. 2001-10-18 Jakub Jelinek <jakub@redhat.com>
  1132. * section.c (_bfd_strip_section_from_output): Don't count
  1133. SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
  1134. 2001-10-17 Alan Modra <amodra@bigpond.net.au>
  1135. * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
  1136. Elf_Internal_Shdr.contents now that it's no longer a PTR.
  1137. * elf-m10300.c (mn10300_elf_relax_section): Likewise.
  1138. * elf32-h8300.c (elf32_h8_relax_section): Likewise.
  1139. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
  1140. * elf32-sh.c (sh_elf_relax_section): Likewise.
  1141. * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
  1142. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
  1143. * elf.c (setup_group): Warning fixes.
  1144. * elflink.h (elf_link_sort_relocs): Likewise.
  1145. * pdp11.c (slurp_reloc_table): Likewise.
  1146. 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
  1147. * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
  1148. casts.
  1149. 2001-10-15 H.J. Lu <hjl@gnu.org>
  1150. * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
  1151. for relocations against discarded link-once section.
  1152. 2001-10-15 Alan Modra <amodra@bigpond.net.au>
  1153. * elf32-i386.c (elf_i386_relocate_section): Report some detail on
  1154. bfd_reloc_outofrange and similar errors.
  1155. * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
  1156. rather than ind->weakdef.
  1157. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
  1158. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  1159. * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  1160. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  1161. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  1162. 2001-10-15 Alan Modra <amodra@bigpond.net.au>
  1163. H.J. Lu <hjl@gnu.org>
  1164. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
  1165. counts for aliases instead of aborting.
  1166. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
  1167. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
  1168. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
  1169. to -1 for non-function symbols.
  1170. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
  1171. * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  1172. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
  1173. * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
  1174. * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  1175. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
  1176. plt.offset instead of plt.refcount when setting to -1.
  1177. 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
  1178. * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
  1179. like R_ARM_PC24. Include reloc number in error message about
  1180. unresolvable relocs.
  1181. 2001-10-10 Jakub Jelinek <jakub@redhat.com>
  1182. * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
  1183. relocations against the same symbol in .rel{,a}.dyn section.
  1184. 2001-10-10 Kazu Hirata <kazu@hxi.com>
  1185. * aout-encap.c: Fix comment typos.
  1186. * aoutx.h: Likewise.
  1187. * archive.c: Likewise.
  1188. * bout.c: Likewise.
  1189. * coff64-rs6000.c: Likewise.
  1190. * coffcode.h: Likewise.
  1191. * coffgen.c: Likewise.
  1192. * cofflink.c: Likewise.
  1193. * coff-mips.c: Likewise.
  1194. * ecoff.c: Likewise.
  1195. * elf32-m32r.c: Likewise.
  1196. * libcoff-in.h: Likewise.
  1197. * libecoff.h: Likewise.
  1198. * libxcoff.h: Likewise.
  1199. * nlm32-i386.c: Likewise.
  1200. * pdp11.c: Likewise.
  1201. * section.c: Likewise.
  1202. * som.c: Likewise.
  1203. * som.h: Likewise.
  1204. * bfd-in2.h: Regenerate.
  1205. * libcoff.h: Likewise.
  1206. 2001-10-10 Alan Modra <amodra@bigpond.net.au>
  1207. * elf.c (elf_map_symbols): Don't create new section symbols; Use
  1208. existing section syms. Update comments.
  1209. (copy_private_bfd_data): Formatting fixes.
  1210. (elfcore_grok_win32pstatus): Likewise.
  1211. (swap_out_syms): Likewise. Remove unnecessary level of braces.
  1212. 2001-10-09 Alan Modra <amodra@bigpond.net.au>
  1213. * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
  1214. "group_name".
  1215. (elf_group_name): Define.
  1216. (elf_next_in_group): Define.
  1217. * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
  1218. (setup_group): Don't use sec->lineno for SHT_GROUP section to store
  1219. first member section; Instead use elf_next_in_group.
  1220. (bfd_section_from_shdr): Likewise.
  1221. (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
  1222. 2001-10-09 Alan Modra <amodra@bigpond.net.au>
  1223. * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
  1224. "next_in_group". Fix gp and gp_size comments.
  1225. * elf.c (union elf_internal_group): New.
  1226. (setup_group): New function.
  1227. (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
  1228. Call setup_group for SHF_GROUP sections.
  1229. (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
  1230. (elf_fake_sections): Set header type for SEC_GROUP, and header
  1231. flags for sections in a group.
  1232. (set_group_contents): New function.
  1233. (_bfd_elf_compute_section_file_positions): Call it.
  1234. (assign_section_numbers): Set sh_link for SHT_GROUP.
  1235. * elflink.h (gc_mark_hook): Handle section groups.
  1236. * elfxx-target.h: Add SEC_GROUP to applicable_flags.
  1237. * section.c (SEC_GROUP): Define.
  1238. (struct sec): Comment fixes.
  1239. * bfd-in2.h: Regenerate.
  1240. * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
  1241. out of function args.
  1242. (_bfd_elf_canonicalize_reloc): Similarly.
  1243. (_bfd_elf_get_symtab): Here too.
  1244. (_bfd_elf_canonicalize_dynamic_symtab): And here.
  1245. * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
  1246. bfd_bread, and remove unnecessary cast.
  1247. 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
  1248. * config.bfd (targ_cpu): Add arm9e-*-elf.
  1249. 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
  1250. * dwarf2.c (comp_unit_find_nearest_line): Check for end of
  1251. compilation unit.
  1252. 2001-10-06 Alan Modra <amodra@bigpond.net.au>
  1253. * bfd.c (bfd_assert): Report bfd version.
  1254. (_bfd_abort): Likewise.
  1255. * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
  1256. section sym values. Instead replace any relocs against them with
  1257. relocs against STN_UNDEF, which has a zero value.
  1258. * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
  1259. relocs.
  1260. 2001-10-05 Jeff Law <law@redhat.com>
  1261. * som.h (som_exec_data): New field "version_id".
  1262. * som.c (som_object_setup): Record the version_id if it
  1263. exists.
  1264. (som_prep_headers): Do not initialize version_id here.
  1265. (som_finish_writing): Initialize version_id here.
  1266. 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1267. * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
  1268. according to the MIPS/SGI ELF64 ABI Draft.
  1269. (mips_elf_sort_hash_table): Typo.
  1270. 2001-10-04 Alan Modra <amodra@bigpond.net.au>
  1271. * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
  1272. * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
  1273. copying flags if this is a weakdef.
  1274. 2001-10-04 Alan Modra <amodra@bigpond.net.au>
  1275. * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
  1276. packing.
  1277. * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
  1278. to 1 rather than 0 to avoid confusing copy_indirect_symbol.
  1279. (mips_elf_sort_hash_table_f): Compare got.offset against 1.
  1280. * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
  1281. depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
  1282. backends we configure. Run "make dep-am".
  1283. (install-data-local): Install symcat.h.
  1284. * dep-in.sed: Remove symcat.h from dependencies.
  1285. * Makefile.in: Regenerate.
  1286. 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
  1287. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
  1288. 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  1289. * elf64-mips.c (elf_backend_may_use_rela_p): New define.
  1290. (elf_backend_default_use_rela_p): New define.
  1291. 2001-10-03 Alan Modra <amodra@bigpond.net.au>
  1292. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
  1293. change.
  1294. * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
  1295. * configure: Regenerate.
  1296. * Makefile.am (BFD_H_FILES): Add version.h.
  1297. * Makefile.in: Regenerate.
  1298. * po/SRC-POTFILES.in: Regenerate.
  1299. * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
  1300. elf_backend_copy_indirect_symbol so that backend has a chance to
  1301. copy other necessary fields.
  1302. * elf-bfd.h (struct elf_backend_data): Update description of
  1303. elf_backend_copy_indirect_symbol.
  1304. * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
  1305. copying flags if this is a weakdef.
  1306. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
  1307. (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
  1308. than bfd_link_hash_lookup.
  1309. * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
  1310. reloc processing for weakdefs.
  1311. * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
  1312. * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
  1313. 2001-10-02 Alan Modra <amodra@bigpond.net.au>
  1314. * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
  1315. result of ELF64_R_TYPE to enum before using in a switch.
  1316. (ppc64_elf_gc_mark_hook): Likewise.
  1317. (ppc64_elf_gc_sweep_hook): Likewise.
  1318. (ppc64_elf_reloc_type_class): Likewise.
  1319. 2001-10-02 Alan Modra <amodra@bigpond.net.au>
  1320. * version.h: New file.
  1321. * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
  1322. (BFD_VERSION_DATE): Define.
  1323. (BFD_VERSION_STRING): Define.
  1324. * configure.in: AC_SUBST bfd_version, bfd_version_date and
  1325. bfd_version_string.
  1326. (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
  1327. * bfd-in2.h: Regenerate.
  1328. * configure: Regenerate.
  1329. * Makefile.am: Run "make dep-am".
  1330. * Makefile.in: Regenerate.
  1331. * bfd-in.h: Include "symcat.h".
  1332. (CONCAT4): Redefine as for old CAT4.
  1333. * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
  1334. Add warning regarding whitespace.
  1335. * aout-cris.c: Likewise.
  1336. * aout-ns32k.c: Likewise.
  1337. * aout-sparcle.c: Likewise.
  1338. * aout-tic30.c: Likewise.
  1339. * aout0.c: Likewise.
  1340. * armnetbsd.c: Likewise.
  1341. * demo64.c: Likewise.
  1342. * elf-bfd.h: Likewise.
  1343. * gen-aout.c: Likewise.
  1344. * host-aout.c: Likewise.
  1345. * hp300bsd.c: Likewise.
  1346. * hp300hpux.c: Likewise.
  1347. * i386aout.c: Likewise.
  1348. * i386bsd.c: Likewise.
  1349. * i386dynix.c: Likewise.
  1350. * i386freebsd.c: Likewise.
  1351. * i386linux.c: Likewise.
  1352. * i386lynx.c: Likewise.
  1353. * i386mach3.c: Likewise.
  1354. * i386netbsd.c: Likewise.
  1355. * libaout.h: Likewise.
  1356. * m68k4knetbsd.c: Likewise.
  1357. * m68klinux.c: Likewise.
  1358. * m68klynx.c: Likewise.
  1359. * m68knetbsd.c: Likewise.
  1360. * m88kmach3.c: Likewise.
  1361. * mipsbsd.c: Likewise.
  1362. * newsos3.c: Likewise.
  1363. * ns32knetbsd.c: Likewise.
  1364. * pc532-mach.c: Likewise.
  1365. * pdp11.c: Likewise.
  1366. * riscix.c: Likewise.
  1367. * sparclinux.c: Likewise.
  1368. * sparclynx.c: Likewise.
  1369. * sparcnetbsd.c: Likewise.
  1370. * sunos.c: Likewise.
  1371. * targets.c: Likewise.
  1372. * vaxnetbsd.c: Likewise.
  1373. * vms-hdr.c: Likewise.
  1374. 2001-10-01 Alan Modra <amodra@bigpond.net.au>
  1375. * bfd-in.h: Remove comments regarding generated files.
  1376. * libbfd-in.h: Likewise.
  1377. * libcoff-in.h: Likewise.
  1378. * bfd-in2.h: Regenerate.
  1379. * libbfd.h: Likewise.
  1380. * libcoff.h: Likewise.
  1381. 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
  1382. Hans-Peter Nilsson <hp@bitrange.com>
  1383. * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
  1384. partial_inplace, matching assembler output. Set src_mask to
  1385. all ones.
  1386. (sh_elf_relocate_section): Delete misplaced comment.
  1387. For relocatable linking against section symbol, call
  1388. _bfd_relocate_contents for partial_inplace relocs and adjust
  1389. rel->r_addend for others.
  1390. <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
  1391. bfd_get_32, not at rel->r_addend.
  1392. 2001-09-30 Alan Modra <amodra@bigpond.net.au>
  1393. * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
  1394. the old dir refcount, so we indirectly set them to init_refcount.
  1395. Short-circuit asserts when we've just verified they are true.
  1396. 2001-09-29 Alan Modra <amodra@bigpond.net.au>
  1397. * section.c (struct sec): Remove kept_section.
  1398. (STD_SECTION): Remove kept_section initialisation.
  1399. (bfd_make_section_anyway): Here too.
  1400. * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
  1401. * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
  1402. * elflink.h (elf_link_input_bfd): Set discarded link-once section
  1403. symbols to zero, and remove all code involved with kept_section
  1404. and tracking section symbol values.
  1405. * bfd-in2.h: Regenerate.
  1406. * configure.in: Bump version number.
  1407. * configure: Regenerate.
  1408. 2001-09-29 Alan Modra <amodra@bigpond.net.au>
  1409. * elf64-ppc.c (struct ppc_dyn_relocs): New.
  1410. (IS_ABSOLUTE_RELOC): Define.
  1411. (struct ppc_link_hash_entry): New.
  1412. (struct ppc_link_hash_table): New.
  1413. (ppc_hash_table): Define.
  1414. (link_hash_newfunc): New function.
  1415. (ppc64_elf_link_hash_table_create): New function.
  1416. (create_got_section): New function.
  1417. (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
  1418. pointers to our dynamic sections in hash table.
  1419. (ppc64_elf_copy_indirect_symbol): New function.
  1420. (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
  1421. dynamic sections. Localise vars. Modify code for refcounts
  1422. starting from zero. Don't allocate here, or force symbols dynamic.
  1423. Don't copy all relocs if shared, select ones we need. Add code
  1424. to track possible copy relocs for non-shared link.
  1425. (ppc64_elf_gc_mark_hook): Update comment.
  1426. (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
  1427. (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
  1428. code for reference counting garbage collection. Don't create .plt
  1429. entries for functions that don't comply with ABI naming convention,
  1430. and don't allocate .plt space here. Use short-cuts to dynamic
  1431. sections. If possible, keep dynamic relocations instead of using
  1432. copy relocs. Remove confused comments.
  1433. (ppc_adjust_dynindx): Delete.
  1434. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  1435. (allocate_dynrelocs): New function.
  1436. (readonly_dynrelocs): New function.
  1437. (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
  1438. space here, and call allocate_dynrelocs to allocate space for
  1439. global .plt, .got and reloc sections. Use short-cuts to dynamic
  1440. sections. Call readonly_dynrelocs to determine whether we need
  1441. DT_TEXTREL. Don't generate section symbols here, the generic
  1442. ELF linker code does it for us.
  1443. (ppc64_elf_final_link): Call regular ELF backend linker rather than
  1444. gc variety, since we do our own .got handling.
  1445. (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
  1446. dynamic section short-cuts. Localise vars, and delay setting.
  1447. Handle unknown relocs in main switch statement. Replace ugly
  1448. complicated tests for unresolvable relocs with a simple direct
  1449. scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
  1450. before allowing an undefined sym in a shared lib. Do R_*_DS tests
  1451. after main switch, when we've set addend. Do non-addend insn
  1452. tweaks before main swithc. Ignore input_section->vma when
  1453. calculating reloc offsets as it's always zero. Rewrite dynamic
  1454. reloc handling. Consolidate R_*_HA handling. Handle more relocs.
  1455. (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
  1456. of dynamic section short-cuts. Reorganise .plt handling code.
  1457. Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
  1458. Move expressions out of swap_reloca_out function calls.
  1459. (ppc64_elf_reloc_type_class): New function.
  1460. (ppc64_elf_info_to_howto): Move common expression to local var.
  1461. (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
  1462. of dynamic section short-cuts. Don't fiddle with section syms
  1463. here as the ELF linker does it for us.
  1464. (elf_backend_can_refcount): Define.
  1465. (bfd_elf64_bfd_link_hash_table_create): Define.
  1466. (elf_backend_copy_indirect_symbol): Define.
  1467. (elf_backend_reloc_type_class): Define.
  1468. (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
  1469. 2001-09-29 Alan Modra <amodra@bigpond.net.au>
  1470. * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
  1471. (struct elf_backend_data): Add can_refcount.
  1472. * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
  1473. got.refcount and plt.refcount from init_refcount.
  1474. (_bfd_elf_link_hash_table_init): Set up init_refcount.
  1475. (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
  1476. rather than got/plt.offset, and test for <= 0 rather than -1.
  1477. * elflink.h (size_dynamic_sections): Set init_refcount to -1.
  1478. * elfxx-target.h (elf_backend_can_refcount): Define.
  1479. (elfNN_bed): Init can_refcount.
  1480. * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
  1481. (_bfd_generic_link_hash_newfunc): Likewise.
  1482. * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
  1483. starting from zero.
  1484. (elf_backend_can_refcount): Define.
  1485. * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
  1486. starting from zero.
  1487. (elf32_hppa_copy_indirect_symbol): Make static to agree with
  1488. prototype.
  1489. (elf_backend_can_refcount): Define.
  1490. * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
  1491. starting from zero.
  1492. (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
  1493. (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
  1494. (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
  1495. (elf_backend_can_refcount): Define.
  1496. (elf_i386_copy_indirect_symbol): Make static to agree with
  1497. prototype. Formatting fix.
  1498. * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
  1499. starting from zero.
  1500. (elf_backend_can_refcount): Define.
  1501. * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
  1502. starting from zero.
  1503. (elf_backend_can_refcount): Define.
  1504. * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
  1505. starting from zero.
  1506. (elf_backend_can_refcount): Define.
  1507. * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
  1508. starting from zero.
  1509. (elf_backend_can_refcount): Define.
  1510. * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
  1511. starting from zero.
  1512. (elf_backend_can_refcount): Define.
  1513. * som.c (som_write_symbol_strings): Cast current_offset in
  1514. bfd_seek call to match param type.
  1515. 2001-09-28 J. Brobecker <brobecker@gnat.com>
  1516. * som.c (som_write_symbol_strings): Fix incorrect type of
  1517. current_offset to match the function definition. Fixes a build
  1518. failure on HPUX-11.00.
  1519. 2001-09-28 Richard Henderson <rth@redhat.com>
  1520. * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
  1521. SEC_MERGE, SEC_STRINGS.
  1522. * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
  1523. * bfd-in2.h: Rebuild.
  1524. 2001-09-28 Alan Modra <amodra@bigpond.net.au>
  1525. * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
  1526. reloc code using x86_64_reloc_map.
  1527. * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
  1528. no longer allocate here. Localise some vars to blocks where they
  1529. are used.
  1530. (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
  1531. setting of vars until needed.
  1532. (allocate_dynrelocs): Don't create a .plt entry without a reloc
  1533. when symbol visibilty makes a function local.
  1534. (elf32_hppa_finish_dynamic_symbol): Move expressions out of
  1535. swap_reloca_out function calls.
  1536. (elf32_hppa_relocate_section): Likewies. Comment typo fix.
  1537. (elf32_hppa_finish_dynamic_sections): Migrate common code out of
  1538. switch statement.
  1539. * elf32-i386.c (elf_i386_check_relocs): Update comment since we
  1540. no longer allocate here. Localise some vars to blocks where they
  1541. are used. Remove separate switch stmt for creating .got sec.
  1542. (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
  1543. redundant casts and aborts. Delay setting of vars until needed.
  1544. (allocate_dynrelocs): Remove redundant casts and aborts.
  1545. (elf_i386_size_dynamic_sections): Move comment.
  1546. (elf_i386_finish_dynamic_symbol): Move expressions out of function
  1547. calls.
  1548. (elf_i386_relocate_section): Likewise. Comment typo fix.
  1549. (elf_i386_finish_dynamic_sections): Migrate common code out of
  1550. switch statement.
  1551. (elf_backend_* defines): Sort.
  1552. * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
  1553. without a reloc when symbol visibilty makes a function local.
  1554. 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
  1555. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
  1556. conflicting float flags.
  1557. 2001-09-26 Alan Modra <amodra@bigpond.net.au>
  1558. * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
  1559. (elf_backend_copy_indirect_symbol): Define.
  1560. (struct elf_i386_link_hash_entry): Rename "root" to "elf".
  1561. (struct elf_i386_link_hash_table): Likewise.
  1562. (link_hash_newfunc): Get rid of unnecessary casts.
  1563. (elf_i386_link_hash_table_create): Likewise.
  1564. (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
  1565. Don't test input section SEC_READONLY here to try to avoid copy
  1566. relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
  1567. (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
  1568. here to properly test whether we need copy relocs. Do so for weak
  1569. syms too.
  1570. * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
  1571. (elf_backend_copy_indirect_symbol): Define.
  1572. (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
  1573. (stub_hash_newfunc): Get rid of unnecessary casts.
  1574. (hppa_link_hash_newfunc): Likewise.
  1575. (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
  1576. Don't test input section SEC_READONLY here to try to avoid copy
  1577. relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
  1578. (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
  1579. here to properly test whether we need copy relocs. Do so for weak
  1580. syms too.
  1581. 2001-09-26 Alan Modra <amodra@bigpond.net.au>
  1582. * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
  1583. VA_OPEN, VA_FIXEDARG, VA_CLOSE.
  1584. (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
  1585. 2001-09-25 Jakub Jelinek <jakub@redhat.com>
  1586. * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
  1587. computation.
  1588. 2001-09-25 H.J. Lu <hjl@gnu.org>
  1589. * bfd-in2.h: Regenerated.
  1590. 2001-09-25 Alan Modra <amodra@bigpond.net.au>
  1591. * elf32-i386.c: Add comment re linker function names and ordering.
  1592. (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
  1593. (elf_i386_grok_prstatus): Move before linker functions.
  1594. (elf_i386_grok_psinfo): Likewise.
  1595. (elf_i386_fake_sections): Move so that functions are ordered.
  1596. (elf_i386_reloc_type_class): Likewise. Comment function purpose.
  1597. 2001-09-25 Alan Modra <amodra@bigpond.net.au>
  1598. * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
  1599. throughout file.
  1600. * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
  1601. code handling this option.
  1602. (LONG_BRANCH_VIA_PLT): Likewise.
  1603. (RELATIVE_DYNRELOCS): Define as zero.
  1604. (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
  1605. "pc_count" fields. Remove "section" field.
  1606. (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
  1607. (elf32_hppa_check_relocs): Don't allocate space for dynamic
  1608. relocs here. Instead, record all needed dynamic relocs via
  1609. dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
  1610. in elf_section_data.
  1611. (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
  1612. (allocate_plt_and_got_and_discard_relocs): Rename to
  1613. allocate_dynrelocs. Allocate rather than discarding dyn relocs.
  1614. (readonly_dynrelocs): New function.
  1615. (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
  1616. Call readonly_dynrelocs to determine need for DT_TEXTREL.
  1617. Rename "i" to "ibfd". Allocate space for local dyn relocs.
  1618. (elf32_hppa_relocate_section): Make use of cached sreloc.
  1619. (elf32_hppa_reloc_type_class): New function.
  1620. (elf_backend_reloc_type_class): Define.
  1621. 2001-09-25 Alan Modra <amodra@bigpond.net.au>
  1622. * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
  1623. and "sreloc" fields.
  1624. * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
  1625. "pc_count" fields. Remove "section" field.
  1626. (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
  1627. allocate space for dynamic relocs here. Instead, record all
  1628. needed dynamic relocs via dyn_relocs and local_dynrel. Cache
  1629. pointer to "sreloc" section in elf_section_data.
  1630. (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
  1631. (allocate_plt_and_got_and_discard_relocs): Rename to
  1632. allocate_dynrelocs. Allocate rather than discarding dyn relocs.
  1633. (readonly_dynrelocs): New function.
  1634. (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
  1635. Rename "i" to "ibfd". Allocate space for local dyn relocs.
  1636. (elf_i386_relocate_section): Make use of cached sreloc.
  1637. 2001-09-24 Alan Modra <amodra@bigpond.net.au>
  1638. * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
  1639. reloc rather than just the type.
  1640. (_bfd_elf_reloc_type_class): Likewise.
  1641. * elf.c (_bfd_elf_reloc_type_class): Likewise.
  1642. * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
  1643. * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
  1644. * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
  1645. * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
  1646. * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
  1647. * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
  1648. * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
  1649. * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
  1650. * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
  1651. * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
  1652. * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
  1653. * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
  1654. * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
  1655. * elflink.h: Formatting fixes.
  1656. (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
  1657. Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
  1658. o->contents to PTR. Update call to elf_backend_reloc_type_class.
  1659. 2001-09-22 John Reiser <jreiser@BitWagon.com>
  1660. * elfcode.h (elf_object_p): Allow for no section header at all in
  1661. non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
  1662. 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
  1663. * elfxx-ia64.c: Fix compile time warning messages.
  1664. * coff-mcore.c: Fix compile time warning messages.
  1665. * coff-ppc.c: Fix compile time warning messages.
  1666. * coffcode.h: Fix compile time warning messages.
  1667. * elf32-mips.c: Fix compile time warning messages.
  1668. * elf64-alpha.c: Fix compile time warning messages.
  1669. * libbfd.c: Fix compile time warning messages.
  1670. * bfd-in2.h: Regenerate.
  1671. 2001-09-21 Alan Modra <amodra@bigpond.net.au>
  1672. * Makefile.am: Run "make dep-am".
  1673. * Makefile.in: Regenerate.
  1674. * aoutx.h: Formatting fixes.
  1675. * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
  1676. * linker.c: Replace bfd_get_filename with bfd_archive_filename
  1677. in error message.
  1678. 2001-09-21 Alan Modra <amodra@bigpond.net.au>
  1679. * bfd.c (bfd_archive_filename): New function.
  1680. * bfd-in2.h: Regenerate.
  1681. * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
  1682. in error messages where the bfd is an input bfd.
  1683. * aout-cris.c: Likewise.
  1684. * coff-arm.c: Likewise.
  1685. * coff-mcore.c: Likewise.
  1686. * coff-ppc.c: Likewise.
  1687. * coff-rs6000.c: Likewise.
  1688. * coff-sh.c: Likewise.
  1689. * coff-tic54x.c: Likewise.
  1690. * coff-tic80.c: Likewise.
  1691. * coff64-rs6000.c: Likewise.
  1692. * coffcode.h: Likewise.
  1693. * coffgen.c: Likewise.
  1694. * cofflink.c: Likewise.
  1695. * ecofflink.c: Likewise.
  1696. * elf-hppa.h: Likewise.
  1697. * elf.c: Likewise.
  1698. * elf32-arm.h: Likewise.
  1699. * elf32-cris.c: Likewise.
  1700. * elf32-gen.c: Likewise.
  1701. * elf32-hppa.c: Likewise.
  1702. * elf32-i370.c: Likewise.
  1703. * elf32-i386.c: Likewise.
  1704. * elf32-m32r.c: Likewise.
  1705. * elf32-mcore.c: Likewise.
  1706. * elf32-mips.c: Likewise.
  1707. * elf32-ppc.c: Likewise.
  1708. * elf32-s390.c: Likewise.
  1709. * elf32-sh.c: Likewise.
  1710. * elf32-sparc.c: Likewise.
  1711. * elf32-v850.c: Likewise.
  1712. * elf64-alpha.c: Likewise.
  1713. * elf64-gen.c: Likewise.
  1714. * elf64-ppc.c: Likewise.
  1715. * elf64-s390.c: Likewise.
  1716. * elf64-sparc.c: Likewise.
  1717. * elf64-x86-64.c: Likewise.
  1718. * elflink.h: Likewise.
  1719. * elfxx-ia64.c: Likewise.
  1720. * ieee.c: Likewise.
  1721. * ihex.c: Likewise.
  1722. * libbfd.c: Likewise.
  1723. * pdp11.c: Likewise.
  1724. * pe-mips.c: Likewise.
  1725. * peicode.h: Likewise.
  1726. * srec.c: Likewise.
  1727. * xcofflink.c: Likewise.
  1728. * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
  1729. * elflink.c (_bfd_elf_create_linker_section): Better grammar for
  1730. error message.
  1731. * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
  1732. error message.
  1733. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
  1734. Consolidate error messages, and split long messages to two lines.
  1735. 2001-09-20 John Reiser <jreiser@BitWagon.com>
  1736. * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
  1737. and info->allow_shlib_undefined.
  1738. * elf32-cris.c: Likewise.
  1739. * elf32-hppa.c: Likewise.
  1740. * elf32-m68k.c: Likewise.
  1741. * elf32-mips.c: Likewise.
  1742. * elf32-ppc.c: Likewise.
  1743. * elf32-s390.c: Likewise.
  1744. * elf32-sh.c: Likewise.
  1745. * elf32-sparc.c: Likewise.
  1746. * elf64-alpha.c: Likewise.
  1747. * elf64-hppa.c: Likewise.
  1748. * elf64-ppc.c: Likewise.
  1749. * elf64-s390.c: Likewise.
  1750. * elf64-sparc.c: Likewise.
  1751. * elf64-x86-64.c: Likewise.
  1752. * elfxx-ia64.c: Likewise.
  1753. 2001-09-18 Bruno Haible <haible@clisp.cons.org>
  1754. * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
  1755. (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
  1756. * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
  1757. (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
  1758. * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
  1759. (bfd_default_scan): Use ISDIGIT instead of isdigit.
  1760. * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
  1761. (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
  1762. isxdigit/isdigit/islower.
  1763. * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
  1764. (mangle_name): Use ISALNUM instead of isalnum.
  1765. * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
  1766. (scan): Use ISDIGIT instead of isdigit.
  1767. * hosts/alphavms.h: Don't include <ctype.h>.
  1768. * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
  1769. (ieee_object_p): Use TOUPPER instead of toupper.
  1770. * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
  1771. (ihex_bad_byte): Use ISPRINT instead of isprint.
  1772. * merge.c: Don't include <ctype.h>.
  1773. * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
  1774. (oasys_write_sections): Use ISDIGIT instead of isdigit.
  1775. * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
  1776. (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
  1777. * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
  1778. (mangle_name): Use ISALNUM instead of isalnum.
  1779. * som.c: Include "safe-ctype.h" instead of <ctype.h>.
  1780. (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
  1781. isupper/islower/isdigit.
  1782. (som_decode_symclass): Use TOUPPER instead of toupper.
  1783. * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
  1784. (srec_bad_byte): Use ISPRINT instead of isprint.
  1785. (srec_scan): Use ISSPACE instead of isspace.
  1786. * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
  1787. (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
  1788. * syms.c: Include "safe-ctype.h"
  1789. (islower, toupper): Remove macro definitions.
  1790. (bfd_decode_symclass): Use TOUPPER instead of toupper.
  1791. * vms-gsd.c: Don't include <ctype.h>.
  1792. * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
  1793. (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
  1794. islower/toupper.
  1795. * vms-tir.c: Don't include <ctype.h>.
  1796. 2001-09-18 Alan Modra <amodra@bigpond.net.au>
  1797. * libbfd.c (bfd_bread): New function replacing bfd_read without
  1798. redundant params. Allow reads up to (size_t) -2 in length.
  1799. (bfd_bwrite): Similarly for bfd_write.
  1800. (real_read): Return a size_t.
  1801. (bfd_read): Call bfd_bread.
  1802. (bfd_write): Call bfd_bwrite.
  1803. (warn_deprecated): New function to annoy everybody.
  1804. (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
  1805. * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
  1806. (bfd_read, bfd_write): Define as macro.
  1807. * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
  1808. likewise for bfd_write. Ensure function args are correct size by
  1809. using casts or local vars. In some cases, remove unnecessary
  1810. casts. Formatting fixes, in some cases removing a large expression
  1811. from function args by using a local var. Replace CONST with const.
  1812. Modify variable types to avoid warings. Use casts to avoid
  1813. warnings when using negative numbers in unsigned expressions.
  1814. * aout-adobe.c: Likewise.
  1815. * aout-arm.c: Likewise.
  1816. * aout-cris.c: Likewise.
  1817. * aout-encap.c: Likewise.
  1818. * aout-ns32k.c: Likewise.
  1819. * aout-target.h: Likewise.
  1820. * aout-tic30.c: Likewise.
  1821. * aoutf1.h: Likewise.
  1822. * aoutx.h: Likewise.
  1823. * archive.c: Likewise.
  1824. * archures.c: Likewise.
  1825. * bfd-in.h: Likewise.
  1826. * bfd.c: Likewise.
  1827. * binary.c: Likewise.
  1828. * bout.c: Likewise.
  1829. * cache.c: Likewise.
  1830. * cisco-core.c: Likewise.
  1831. * coff-a29k.c: Likewise.
  1832. * coff-alpha.c: Likewise.
  1833. * coff-arm.c: Likewise.
  1834. * coff-h8300.c: Likewise.
  1835. * coff-h8500.c: Likewise.
  1836. * coff-i386.c: Likewise.
  1837. * coff-i860.c: Likewise.
  1838. * coff-i960.c: Likewise.
  1839. * coff-ia64.c: Likewise.
  1840. * coff-m68k.c: Likewise.
  1841. * coff-m88k.c: Likewise.
  1842. * coff-mcore.c: Likewise.
  1843. * coff-mips.c: Likewise.
  1844. * coff-ppc.c: Likewise.
  1845. * coff-rs6000.c: Likewise.
  1846. * coff-sh.c: Likewise.
  1847. * coff-sparc.c: Likewise.
  1848. * coff-stgo32.c: Likewise.
  1849. * coff-tic30.c: Likewise.
  1850. * coff-tic54x.c: Likewise.
  1851. * coff-tic80.c: Likewise.
  1852. * coff-w65.c: Likewise.
  1853. * coff-z8k.c: Likewise.
  1854. * coff64-rs6000.c: Likewise.
  1855. * coffcode.h: Likewise.
  1856. * coffgen.c: Likewise.
  1857. * cofflink.c: Likewise.
  1858. * coffswap.h: Likewise.
  1859. * corefile.c: Likewise.
  1860. * cpu-arc.c: Likewise.
  1861. * cpu-h8300.c: Likewise.
  1862. * cpu-h8500.c: Likewise.
  1863. * cpu-i960.c: Likewise.
  1864. * cpu-ia64-opc.c: Likewise.
  1865. * cpu-ns32k.c: Likewise.
  1866. * cpu-pdp11.c: Likewise.
  1867. * cpu-pj.c: Likewise.
  1868. * cpu-sh.c: Likewise.
  1869. * cpu-w65.c: Likewise.
  1870. * cpu-z8k.c: Likewise.
  1871. * dwarf1.c: Likewise.
  1872. * dwarf2.c: Likewise.
  1873. * ecoff.c: Likewise.
  1874. * ecofflink.c: Likewise.
  1875. * ecoffswap.h: Likewise.
  1876. * elf-bfd.h: Likewise.
  1877. * elf-hppa.h: Likewise.
  1878. * elf-m10200.c: Likewise.
  1879. * elf-m10300.c: Likewise.
  1880. * elf.c: Likewise.
  1881. * elf32-arc.c: Likewise.
  1882. * elf32-arm.h: Likewise.
  1883. * elf32-avr.c: Likewise.
  1884. * elf32-cris.c: Likewise.
  1885. * elf32-fr30.c: Likewise.
  1886. * elf32-gen.c: Likewise.
  1887. * elf32-h8300.c: Likewise.
  1888. * elf32-hppa.c: Likewise.
  1889. * elf32-i370.c: Likewise.
  1890. * elf32-i386.c: Likewise.
  1891. * elf32-i860.c: Likewise.
  1892. * elf32-m32r.c: Likewise.
  1893. * elf32-m68k.c: Likewise.
  1894. * elf32-mcore.c: Likewise.
  1895. * elf32-mips.c: Likewise.
  1896. * elf32-openrisc.c: Likewise.
  1897. * elf32-pj.c: Likewise.
  1898. * elf32-ppc.c: Likewise.
  1899. * elf32-s390.c: Likewise.
  1900. * elf32-sh-lin.c: Likewise.
  1901. * elf32-sh.c: Likewise.
  1902. * elf32-sparc.c: Likewise.
  1903. * elf32-v850.c: Likewise.
  1904. * elf64-alpha.c: Likewise.
  1905. * elf64-hppa.c: Likewise.
  1906. * elf64-mips.c: Likewise.
  1907. * elf64-ppc.c: Likewise.
  1908. * elf64-s390.c: Likewise.
  1909. * elf64-sparc.c: Likewise.
  1910. * elf64-x86-64.c: Likewise.
  1911. * elfarm-nabi.c: Likewise.
  1912. * elfcode.h: Likewise.
  1913. * elfcore.h: Likewise.
  1914. * elflink.c: Likewise.
  1915. * elflink.h: Likewise.
  1916. * elfxx-ia64.c: Likewise.
  1917. * elfxx-target.h: Likewise.
  1918. * format.c: Likewise.
  1919. * hash.c: Likewise.
  1920. * hp300hpux.c: Likewise.
  1921. * hppabsd-core.c: Likewise.
  1922. * hpux-core.c: Likewise.
  1923. * i386aout.c: Likewise.
  1924. * i386dynix.c: Likewise.
  1925. * i386linux.c: Likewise.
  1926. * i386lynx.c: Likewise.
  1927. * i386mach3.c: Likewise.
  1928. * i386msdos.c: Likewise.
  1929. * i386os9k.c: Likewise.
  1930. * ieee.c: Likewise.
  1931. * ihex.c: Likewise.
  1932. * irix-core.c: Likewise.
  1933. * libaout.h: Likewise.
  1934. * libbfd-in.h: Likewise.
  1935. * libbfd.c: Likewise.
  1936. * libcoff-in.h: Likewise.
  1937. * libecoff.h: Likewise.
  1938. * libieee.h: Likewise.
  1939. * libnlm.h: Likewise.
  1940. * libpei.h: Likewise.
  1941. * libxcoff.h: Likewise.
  1942. * linker.c: Likewise.
  1943. * lynx-core.c: Likewise.
  1944. * m68klinux.c: Likewise.
  1945. * merge.c: Likewise.
  1946. * mipsbsd.c: Likewise.
  1947. * netbsd-core.c: Likewise.
  1948. * nlm.c: Likewise.
  1949. * nlm32-alpha.c: Likewise.
  1950. * nlm32-i386.c: Likewise.
  1951. * nlm32-ppc.c: Likewise.
  1952. * nlm32-sparc.c: Likewise.
  1953. * nlmcode.h: Likewise.
  1954. * nlmswap.h: Likewise.
  1955. * ns32k.h: Likewise.
  1956. * oasys.c: Likewise.
  1957. * opncls.c: Likewise.
  1958. * osf-core.c: Likewise.
  1959. * pc532-mach.c: Likewise.
  1960. * pdp11.c: Likewise.
  1961. * pe-mips.c: Likewise.
  1962. * peXXigen.c: Likewise.
  1963. * peicode.h: Likewise.
  1964. * ppcboot.c: Likewise.
  1965. * ptrace-core.c: Likewise.
  1966. * reloc.c: Likewise.
  1967. * reloc16.c: Likewise.
  1968. * riscix.c: Likewise.
  1969. * rs6000-core.c: Likewise.
  1970. * sco5-core.c: Likewise.
  1971. * section.c: Likewise.
  1972. * som.c: Likewise.
  1973. * sparclinux.c: Likewise.
  1974. * sparclynx.c: Likewise.
  1975. * srec.c: Likewise.
  1976. * stabs.c: Likewise.
  1977. * sunos.c: Likewise.
  1978. * syms.c: Likewise.
  1979. * targets.c: Likewise.
  1980. * tekhex.c: Likewise.
  1981. * trad-core.c: Likewise.
  1982. * versados.c: Likewise.
  1983. * vms-gsd.c: Likewise.
  1984. * vms-hdr.c: Likewise.
  1985. * vms-misc.c: Likewise.
  1986. * vms-tir.c: Likewise.
  1987. * vms.c: Likewise.
  1988. * vms.h: Likewise.
  1989. * xcofflink.c: Likewise.
  1990. * bfd-in2.h: Regenerate.
  1991. * libbfd.h: Regenerate.
  1992. * libcoff.h: Regenerate.
  1993. * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
  1994. * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
  1995. (ufile_ptr): Define.
  1996. (bfd_tell): Return a ufile_ptr.
  1997. * libbfd.c (bfd_tell): Likewise.
  1998. (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
  1999. unnecessarily.
  2000. * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
  2001. * aoutf1.h: Likewise.
  2002. * som.c: Likewise.
  2003. * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
  2004. larger than unsigned long can represent.
  2005. * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
  2006. size overflows size_t.
  2007. (bfd_realloc): Likewise.
  2008. (bfd_zmalloc): Likewise.
  2009. * opncls.c (bfd_alloc): Likewise.
  2010. (bfd_zalloc): Likewise.
  2011. * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
  2012. (bfd_alloc, bfd_zalloc): Update.
  2013. * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
  2014. 8 bits.
  2015. (bfd_get_signed_8): Likewise.
  2016. (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
  2017. H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
  2018. H_GET_64, H_GET_32, H_GET_16, H_GET_8,
  2019. H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
  2020. * libaout.h: Likewise define and use here.
  2021. * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
  2022. * aout-arm.c: Likewise.
  2023. * aout-encap.c: Likewise.
  2024. * aout-ns32k.c: Likewise.
  2025. * aout-tic30.c: Likewise.
  2026. * aoutf1.h: Likewise.
  2027. * aoutx.h: Likewise.
  2028. * bout.c: Likewise.
  2029. * coff-alpha.c: Likewise.
  2030. * coff-h8300.c: Likewise.
  2031. * coff-h8500.c: Likewise.
  2032. * coff-i960.c: Likewise.
  2033. * coff-ia64.c: Likewise.
  2034. * coff-m88k.c: Likewise.
  2035. * coff-mips.c: Likewise.
  2036. * coff-ppc.c: Likewise.
  2037. * coff-rs6000.c: Likewise.
  2038. * coff-sh.c: Likewise.
  2039. * coff-sparc.c: Likewise.
  2040. * coff-stgo32.c: Likewise.
  2041. * coff-tic30.c: Likewise.
  2042. * coff-tic80.c: Likewise.
  2043. * coff-w65.c: Likewise.
  2044. * coff-z8k.c: Likewise.
  2045. * coff64-rs6000.c: Likewise.
  2046. * coffgen.c: Likewise.
  2047. * cofflink.c: Likewise.
  2048. * coffswap.h: Likewise.
  2049. * ecoff.c: Likewise.
  2050. * ecoffswap.h: Likewise.
  2051. * elf.c: Likewise.
  2052. * elf32-mips.c: Likewise.
  2053. * elf64-mips.c: Likewise.
  2054. * hp300hpux.c: Likewise.
  2055. * i386dynix.c: Likewise.
  2056. * i386lynx.c: Likewise.
  2057. * i386msdos.c: Likewise.
  2058. * i386os9k.c: Likewise.
  2059. * libpei.h: Likewise.
  2060. * nlm32-alpha.c: Likewise.
  2061. * nlm32-i386.c: Likewise.
  2062. * nlm32-ppc.c: Likewise.
  2063. * nlmcode.h: Likewise.
  2064. * nlmswap.h: Likewise.
  2065. * oasys.c: Likewise.
  2066. * pdp11.c: Likewise.
  2067. * pe-mips.c: Likewise.
  2068. * peXXigen.c: Likewise.
  2069. * peicode.h: Likewise.
  2070. * riscix.c: Likewise.
  2071. * sunos.c: Likewise.
  2072. * xcofflink.c: Likewise.
  2073. * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
  2074. Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
  2075. * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
  2076. equivalent H_PUT_* macro instead.
  2077. (GETWORD, GETHALF, GETBYTE): Similarly.
  2078. * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
  2079. (GETWORD, GETHALF, GETBYTE): Likewise.
  2080. * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
  2081. * bfd-in.h (struct orl): Change "pos" to a union.
  2082. * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
  2083. (bsd_write_armap): Here too.
  2084. (coff_write_armap): And here.
  2085. * coff-rs6000.c (xcoff_write_armap_old): And here.
  2086. (xcoff_write_one_armap_big): And here.
  2087. (xcoff_write_armap_big): And here.
  2088. * ecoff.c (_bfd_ecoff_write_armap): And here.
  2089. * elf64-mips.c (mips_elf64_write_armap): And here.
  2090. * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
  2091. * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
  2092. * elf32-h8300.c (elf32_h8_mach): Likewise.
  2093. * elf32-mips.c (elf_mips_mach): Likewise.
  2094. * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
  2095. * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
  2096. calls.
  2097. (aix386_core_vec): Typo fix.
  2098. * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
  2099. etc. to avoid redefined macro warning.
  2100. (MY(put_reloc)): Use bfd_vma for "value" rather than long.
  2101. (MY(fix_pcrel_26)): Likewise.
  2102. * aout-ns32k.c (MY(put_reloc)): Likewise.
  2103. * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
  2104. * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
  2105. * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
  2106. * aout-encap.c: Include "file", not <file> for binutils headers.
  2107. (encap_object_p): Half baked attempt to fix compile errors in
  2108. code dealing with "magic".
  2109. * aout-ns32k.c: Include "file", not <file> for binutils headers.
  2110. (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
  2111. bfd_vma's rather than longs.
  2112. * cpu-ns32k.c (ns32k_sign_extend): Delete.
  2113. (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
  2114. (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
  2115. remove case 3.
  2116. (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
  2117. Use unsigned comparisons.
  2118. (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
  2119. (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
  2120. (_bfd_do_ns32k_reloc_contents): Likewise.
  2121. * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
  2122. (_bfd_ns32k_get_immediate): Likewise.
  2123. (_bfd_ns32k_put_displacement): Likewise.
  2124. (_bfd_ns32k_put_immediate): Likewise.
  2125. (bfd_reloc_status_type): Likewise.
  2126. * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
  2127. to avoid shadowing.
  2128. * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
  2129. * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
  2130. * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
  2131. avoid shadowing.
  2132. (record_toc): Use a bfd_signed_vma for our_toc_offset.
  2133. * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
  2134. * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
  2135. shadow warning.
  2136. (_bfd_elfcore_strndup): Likewise for "dup".
  2137. * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
  2138. "name" to avoid shadowing.
  2139. * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
  2140. definition of "off".
  2141. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  2142. * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
  2143. definition of "s".
  2144. (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
  2145. "secpp".
  2146. * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
  2147. to avoid shadowing.
  2148. * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
  2149. to avoid shadowing.
  2150. (elf_link_input_bfd): Likewise.
  2151. (elf_bfd_final_link): Remove duplicate innermost "off" var.
  2152. * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
  2153. * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
  2154. "input_section".
  2155. * som.c (som_prep_for_fixups): Rename inner "i" to "j".
  2156. * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
  2157. (sunos_write_dynamic_symbol): Remove unused vars.
  2158. * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
  2159. innermost "directory_name" and "file_name" vars.
  2160. * tekhex.c (first_phase): Rename local var "type" to "stype".
  2161. (tekhex_write_object_contents): Rename innermost "s" to "sym".
  2162. * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
  2163. doing comparison at caller.
  2164. (vms_esecflag_by_name): Likewise.
  2165. * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
  2166. * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
  2167. (xcoff_write_global_symbol): Rename "p" param to "inf".
  2168. * cisco-core.c: Add missing prototypes.
  2169. (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
  2170. (cisco_core_file_failing_signal): Likewise.
  2171. (cisco_core_file_matches_executable_p): Likewise.
  2172. * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
  2173. * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
  2174. * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
  2175. * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
  2176. * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
  2177. thumb_glue_size and arm_glue_size.
  2178. * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
  2179. * coff64-rs6000.c: Group prototypes together.
  2180. * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
  2181. (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
  2182. * cpu-arc.c: Add missing prototypes.
  2183. * cpu-h8500.c: Likewise.
  2184. * cpu-i960.c: Likewise.
  2185. * cpu-pj.c: Likewise.
  2186. * cpu-sh.c: Likewise.
  2187. * cpu-w65.c: Likewise.
  2188. * cpu-z8k.c: Likewise.
  2189. * elf32-fr30.c: Likewise.
  2190. * elf32-h8300.c: Likewise.
  2191. * elf32-i370.c: Likewise.
  2192. * hpux-core.c: Likewise.
  2193. * versados.c: Likewise.
  2194. * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
  2195. * cpu-h8500.c: Likewise.
  2196. * cpu-i960.c: Likewise.
  2197. * cpu-z8k.c: Likewise.
  2198. * cpu-ia64-opc.c: Correct comment.
  2199. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
  2200. * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
  2201. to unsigned.
  2202. (bfd_elf32_write_out_phdrs): Likewise.
  2203. (bfd_elf64_write_out_phdrs): Likewise.
  2204. (elf_linker_section_pointers): Change addend to bfd_vma.
  2205. (_bfd_elf_find_pointer_linker_section): Likewise.
  2206. (_bfd_elfcore_make_pseudosection): Change size param to size_t and
  2207. filepos to unsigned file_ptr.
  2208. (_bfd_elfcore_strndup): Change max param to size_t.
  2209. * elf.c (_bfd_elfcore_make_pseudosection): As above.
  2210. (_bfd_elfcore_strndup): Likewise.
  2211. (_bfd_elf_find_pointer_linker_section): Likewise.
  2212. * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
  2213. insn and sym_value to ints.
  2214. * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
  2215. bfd_size_type.
  2216. (elfcore_read_notes): Likewise.
  2217. * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
  2218. param from unsigned char to int.
  2219. (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
  2220. for info_to_howto call.
  2221. (add_dynamic_entry): Define macro.
  2222. (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
  2223. * elf32-cris.c (add_dynamic_entry): Define macro.
  2224. (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
  2225. * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
  2226. (elf32_h8_object_p): Likewise.
  2227. (elf32_h8_merge_private_bfd_data): Likewise.
  2228. (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
  2229. * elf32-hppa.c (add_dynamic_entry): Define macro.
  2230. (elf32_hppa_size_dynamic_sections): Use it.
  2231. * elf32-i370.c (add_dynamic_entry): Define macro.
  2232. (i370_elf_size_dynamic_sections): Use it.
  2233. (i370_noop): Make static.
  2234. * elf32-i386.c (add_dynamic_entry): Define macro.
  2235. (elf_i386_size_dynamic_sections): Use it.
  2236. * elf32-m68k.c (add_dynamic_entry): Define macro.
  2237. (elf_m68k_size_dynamic_sections): Use it.
  2238. * elf32-ppc.c (add_dynamic_entry): Define macro.
  2239. (ppc_elf_size_dynamic_sections): Use it.
  2240. * elf32-s390.c (add_dynamic_entry): Define macro.
  2241. (elf_s390_size_dynamic_sections): Use it.
  2242. * elf64-alpha.c (add_dynamic_entry): Define macro.
  2243. (elf64_alpha_size_dynamic_sections): Use it.
  2244. * elf64-hppa.c (add_dynamic_entry): Define macro.
  2245. (elf64_hppa_size_dynamic_sections): Use it.
  2246. * elf64-ppc.c (add_dynamic_entry): Define macro.
  2247. (ppc64_elf_size_dynamic_sections): Use it.
  2248. * elf64-s390.c (add_dynamic_entry): Define macro.
  2249. (elf_s390_size_dynamic_sections): Use it.
  2250. * elf64-sparc.c (add_dynamic_entry): Define macro.
  2251. (sparc64_elf_size_dynamic_sections): Use it.
  2252. * elf64-x86-64.c (add_dynamic_entry): Define macro.
  2253. (elf64_x86_64_size_dynamic_sections): Use it.
  2254. * elfxx-ia64.c (add_dynamic_entry): Define macro.
  2255. (elfNN_ia64_size_dynamic_sections): Use it.
  2256. * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
  2257. (v850_elf_perform_relocation): Make "r_type" param unsigned.
  2258. * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
  2259. false if the first malloc fails rather than going via error_return.
  2260. * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
  2261. "index" param.
  2262. (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
  2263. * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
  2264. * elfxx-ia64.c (global_sym_index): Return a long.
  2265. * ieee.c (get_symbol): Use int rather than char param.
  2266. (ieee_slurp_sections): Move "section" var to inner blocks.
  2267. (copy_expression): Don't init "value" to zero or worry about
  2268. clearing to zero after using.
  2269. (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
  2270. shadowing.
  2271. * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
  2272. unsigned int.
  2273. * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
  2274. (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
  2275. * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
  2276. * pc532-mach.c (MYNSX): Delete.
  2277. (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
  2278. (write_object_contents): Correct prototype.
  2279. * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
  2280. than unsigned short.
  2281. * section.c (bfd_set_section_contents): Remove redundant
  2282. "offset < 0" test. Check that "count" doesn't overflow size_t.
  2283. (bfd_get_section_contents): Likewise.
  2284. * som.c (som_fixup_formats): Add missing braces.
  2285. (som_reloc_addend): Pass a bfd_vma for "addend".
  2286. * srec.c (srec_write_record): Pass "type" as an unsigned int.
  2287. (srec_write_symbols): Remove an unnecessary var.
  2288. * targets.c (_bfd_target_vector): Sort entries. Sort externs
  2289. to match.
  2290. * configure.in: Sort to match. Bump version number.
  2291. * configure: Regenerate.
  2292. * tekhex.c (move_section_contents): Assert offset == 0.
  2293. * versados.c (new_symbol_string): Constify arg.
  2294. (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
  2295. (versados_get_symbol_info): Make static.
  2296. (versados_print_symbol): Likewise.
  2297. (versados_get_reloc_upper_bound): Likewise.
  2298. (versados_canonicalize_reloc): Likewise.
  2299. 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
  2300. * elflink.h (elf_link_input_bfd): Fix typo in error message.
  2301. 2001-09-17 H.J. Lu <hjl@gnu.org>
  2302. * dwarf1.c (parse_die): Take a new arg for the end of the
  2303. section. Return false if die is beyond the section.
  2304. (parse_functions_in_unit): Pass the end of the section to
  2305. parse_die ().
  2306. (_bfd_dwarf1_find_nearest_line): Likewise.
  2307. 2001-09-14 Michael Rauch <mrauch@netbsd.org>
  2308. * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
  2309. just like R_SPARC_32.
  2310. 2001-09-14 Kevin Lo <kevlo@openbsd.org>
  2311. * configure.bfd: Add arm-openbsd target.
  2312. 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2313. * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
  2314. Add support for mips64.
  2315. 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
  2316. * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
  2317. 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
  2318. * elf.c (prep_headers): Get the machine code from the elf
  2319. backend data.
  2320. * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
  2321. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
  2322. * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
  2323. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
  2324. * elf-arc.c (arc_elf_final_write_processing): Don't override
  2325. e_machine, it's now properly set in prep_headers.
  2326. * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
  2327. EM_AVR_OLD.
  2328. (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
  2329. * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
  2330. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
  2331. * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
  2332. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
  2333. * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
  2334. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
  2335. * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
  2336. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
  2337. * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
  2338. * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
  2339. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
  2340. 2001-09-11 Richard Henderson <rth@redhat.com>
  2341. * elf64-alpha.c (elf64_alpha_section_flags): New.
  2342. (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
  2343. 2001-09-11 Richard Henderson <rth@redhat.com>
  2344. * elf64-alpha.c (elf64_alpha_relocate_section): Do not
  2345. apply HINT relocations against dynamic symbols.
  2346. 2001-09-11 H.J. Lu <hjl@gnu.org>
  2347. * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
  2348. 2001-09-09 Richard Henderson <rth@redhat.com>
  2349. * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
  2350. * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
  2351. following a call to a near function.
  2352. 2001-09-08 Richard Henderson <rth@redhat.com>
  2353. * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
  2354. relocation errors. Fail gp-relative relocations against
  2355. dynamic symbols.
  2356. 2001-09-08 Alan Modra <amodra@bigpond.net.au>
  2357. * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
  2358. as well as DEF_DYNAMIC in test for avoided copy relocs.
  2359. (allocate_plt_and_got_and_discard_relocs): Likewise.
  2360. * elf32-hppa.c (elf_i386_relocate_section): Likewise.
  2361. (allocate_plt_and_got_and_discard_relocs): Likewise.
  2362. 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2363. * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
  2364. of R_MIPS_PC16.
  2365. 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2366. * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
  2367. definitions.
  2368. (mips_elf64_howto_table_rel): Likewise.
  2369. 2001-09-05 Tom Rix <trix@redhat.com>
  2370. * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
  2371. and syscall symbols.
  2372. (write_global_symbol) : Same.
  2373. (bfd_xcoff_export_symbol): Remove unused syscall param.
  2374. * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
  2375. bfd_xcoff_import_symbol.
  2376. * bfd-in.h: Same.
  2377. * bfd-in2.h : Regenerate.
  2378. 2001-09-04 Richard Henderson <rth@redhat.com>
  2379. * elf64-alpha.c (SKIP_HOWTO): New.
  2380. (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
  2381. Fix sizes of 16-bit mem format relocs.
  2382. (elf64_alpha_reloc_map): Update to match.
  2383. (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
  2384. (elf64_alpha_relax_without_lituse): Likewise.
  2385. (elf64_alpha_check_relocs): Handle GPREL16.
  2386. (elf64_alpha_relocate_section): Likewise.
  2387. * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
  2388. (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
  2389. * bfd-in2.h, libbfd.h: Rebuild.
  2390. 2001-09-04 Jeff Law <law@redhat.com>
  2391. * elf32-h8300.c (elf32_h8_relax_section): New function.
  2392. (elf32_h8_relax_delete_bytes): Likewise.
  2393. (elf32_h8_symbol_address_p): Likewise.
  2394. (elf32_h8_get_relocated_section_contents): Likewise.
  2395. (bfd_elf32_bfd_relax_section): Define.
  2396. (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
  2397. * elf32-h8300.c (special): New function.
  2398. (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
  2399. all relocations.
  2400. (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
  2401. relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
  2402. Fix minor problems with 8bit and 16bit PC relative relocations.
  2403. 2001-09-01 Andreas Jaeger <aj@suse.de>
  2404. * vms-tir.c: Add missing prototypes.
  2405. * vms-hdr.c: Likewise.
  2406. * vms-gsd.c: Likewise.
  2407. * vms-misc.c: Likewise.
  2408. 2001-08-31 H.J. Lu <hjl@gnu.org>
  2409. * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
  2410. with bad relocation.
  2411. 2001-08-31 Eric Christopher <echristo@redhat.com>
  2412. Jason Eckhardt <jle@redhat.com>
  2413. * archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
  2414. mips32_4k and mips64.
  2415. * aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
  2416. bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
  2417. * cpu-mips.c: Ditto.
  2418. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
  2419. * bfd-in2.h: Regenerate.
  2420. 2001-08-31 Jakub Jelinek <jakub@redhat.com>
  2421. * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
  2422. value into R_ALPHA_RELATIVE's addend.
  2423. (elf64_alpha_finish_dynamic_symbol): Likewise.
  2424. 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
  2425. * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
  2426. recomputed addend during relocatable link if not USE_REL.
  2427. * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
  2428. error.
  2429. 2001-08-30 H.J. Lu <hjl@gnu.org>
  2430. * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
  2431. 2 changes.
  2432. (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
  2433. relocations for weak definitions.
  2434. 2001-08-30 H.J. Lu <hjl@gnu.org>
  2435. * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
  2436. (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
  2437. * Makefile.in: Rebuild.
  2438. 2001-08-30 H.J. Lu <hjl@gnu.org>
  2439. * elf32-mips.c (mips_elf_calculate_relocation): Don't create
  2440. dynamic relocation for undefined weak symbols when creating
  2441. executables. Check h->root.root.type, instead of h->root.type.
  2442. 2001-08-29 Joel Sherrill <joel@OARcorp.com>
  2443. * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
  2444. default from coff to elf.
  2445. 2001-08-29 Jeff Law <law@redhat.com>
  2446. * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
  2447. relocations.
  2448. (h8_reloc_map): Similarly.
  2449. (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
  2450. Add support for PC relative relocations.
  2451. * elf32-h8300.c: Put all prototypes together.
  2452. (elf32_h8_info_to_howto): Parameter elf_reloc is used.
  2453. (elf32_h8_final_link_relocate): New function for linker.
  2454. (elf32_h8_relocate_section): Similarly.
  2455. (elf_backend_relocate_section): Define.
  2456. * cpu-h8300.c (h8300_scan, compatible): Prototype.
  2457. (h8300_scan): Handle architecture:machine encodings typically
  2458. found in linker scripts.
  2459. * elf.c (prep_headers): Do not try to do H8 machine recognition
  2460. here.
  2461. * elf32-h8300.c: Add some missing prototypes.
  2462. (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
  2463. (elf32_h8_object_p): Similarly.
  2464. 2001-08-29 Tom Rix <trix@redhat.com>
  2465. * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
  2466. does not follow a XTY_SD.
  2467. 2001-08-29 Alan Modra <amodra@bigpond.net.au>
  2468. * targmatch.sed: Delete case statements.
  2469. * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
  2470. aix4.3 and above.
  2471. 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
  2472. * Makefile.am (elf32-h8300.lo): New target.
  2473. * config.bfd (h8300*-*-elf): New case.
  2474. * configure.in (bfd_elf32_h8300_vec): New case.
  2475. * elf.c (prep_headers): Add case for bfd_arch_h8300.
  2476. * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
  2477. (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
  2478. (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
  2479. * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
  2480. * elf32-h8300.c: New file.
  2481. * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
  2482. 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
  2483. * sparclynx.c: Add missing prototypes.
  2484. * coff-mcore.c: Add missing prototypes.
  2485. * elf32-pj.c: Add missing prototypes.
  2486. * nlm32-sparc.c: Add missing prototypes.
  2487. * oasys.c: Add missing prototypes.
  2488. * pdp11.c: Add missing prototypes.
  2489. * pe-mips.c: Add missing prototypes.
  2490. * riscix.c: Add missing prototypes.
  2491. 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
  2492. * elf32-i386.c: Add missing prototypes.
  2493. * elf32-ppc.c: Likewise.
  2494. * elf32-sh-lin.c: Likewise.
  2495. * elfarm-nabi.c: Likewise.
  2496. 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
  2497. * elf32-i386.c (elf_i386_grok_prstatus): New function.
  2498. (elf_i386_grok_psinfo): New function.
  2499. (elf_backend_grok_prstatus): Define.
  2500. (elf_backend_grok_psinfo): Likewise.
  2501. * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
  2502. (ppc_elf_grok_psinfo): New function.
  2503. (elf_backend_grok_prstatus): Define.
  2504. (elf_backend_grok_psinfo): Likewise.
  2505. * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
  2506. (elf32_shlin_grok_psinfo): New function.
  2507. (elf_backend_grok_prstatus): Define.
  2508. (elf_backend_grok_psinfo): Likewise.
  2509. * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
  2510. (elf32_arm_nabi_grok_psinfo): New function.
  2511. (elf_backend_grok_prstatus): Define.
  2512. (elf_backend_grok_psinfo): Likewise.
  2513. 2001-08-27 H.J. Lu <hjl@gnu.org>
  2514. * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
  2515. sanity check.
  2516. (mips_elf_calculate_relocation): Create dynamic relocation for
  2517. symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
  2518. bit is not set.
  2519. 2001-08-27 H.J. Lu <hjl@gnu.org>
  2520. * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
  2521. (_bfd_mips_elf_copy_indirect_symbol): Likewise.
  2522. (_bfd_elf32_mips_grok_prstatus): Likewise.
  2523. (_bfd_elf32_mips_grok_psinfo): Likewise.
  2524. (_bfd_mips_elf_hide_symbol): Make it static and cast to
  2525. `struct mips_elf_link_hash_entry *'.
  2526. (_bfd_mips_elf_copy_indirect_symbol): Make it static.
  2527. 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
  2528. * mipsbsd.c: Add missing prototypes.
  2529. * hp300hpux.c: Add missing prototypes.
  2530. * i386aout.c: Add missing prototypes.
  2531. * i386lynx.c: Add missing prototypes.
  2532. * i386mach3.c: Add missing prototypes.
  2533. * i386msdos.c: Add missing prototypes.
  2534. * i386os9k.c: Add missing prototypes.
  2535. 2001-08-27 Linus Nordberg <linus@swox.se>
  2536. Torbjorn Granlund <tege@swox.com>
  2537. Staffan Ulfberg <staffanu@swox.se>
  2538. Alan Modra <amodra@bigpond.net.au>
  2539. * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
  2540. targ64_selvecs for 32 bit powerpc targets.
  2541. * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
  2542. (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
  2543. Run "make dep-am".
  2544. * Makefile.in: Regenerate.
  2545. * configure.in: Add elf64_powerpc vecs.
  2546. * configure: Regenerate.
  2547. * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
  2548. * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
  2549. * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
  2550. * elf64-ppc.c: New file.
  2551. * reloc.c: Add powerpc64 relocs.
  2552. * libbfd.h: Regenerate.
  2553. * bfd-in2.h: Regenerate.
  2554. 2001-08-27 Andreas Schwab <schwab@suse.de>
  2555. * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
  2556. reloc is against read-only section.
  2557. (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2558. looking up section names for DT_TEXTREL.
  2559. (elf32_m68k_reloc_type_class): New function.
  2560. (elf_backend_reloc_type_class): Define.
  2561. 2001-08-27 Andreas Jaeger <aj@suse.de>
  2562. * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
  2563. reloc is against read-only section.
  2564. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2565. looking up section names for DT_TEXTREL.
  2566. (elf_s390_reloc_type_class): New.
  2567. (elf_backend_reloc_type_class): Define.
  2568. * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
  2569. reloc is against read-only section.
  2570. (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2571. looking up section names for DT_TEXTREL.
  2572. (elf_s390_reloc_type_class): New.
  2573. (elf_backend_reloc_type_class): Define.
  2574. * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
  2575. is against read-only section.
  2576. (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2577. looking up section names for DT_TEXTREL.
  2578. (ppc_elf_reloc_type_class): New.
  2579. (elf_backend_reloc_type_class): Define.
  2580. 2001-08-26 Andreas Jaeger <aj@suse.de>
  2581. * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
  2582. reloc is against read-only section.
  2583. (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2584. looking up section names for DT_TEXTREL.
  2585. (elf_cris_reloc_type_class): New.
  2586. (elf_backend_reloc_type_class): Define.
  2587. * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
  2588. against read-only section.
  2589. (elf_backend_reloc_type_class): Define.
  2590. (sh_elf_reloc_type_class): New.
  2591. (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2592. looking up section names for DT_TEXTREL.
  2593. * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
  2594. reloc is against read-only section.
  2595. (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2596. looking up section names for DT_TEXTREL.
  2597. (elf32_arm_reloc_type_class): New.
  2598. (elf_backend_reloc_type_class): Define.
  2599. 2001-08-25 Andreas Jaeger <aj@suse.de>
  2600. * oasys.c: Add missing prototypes.
  2601. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
  2602. attribute for parameter.
  2603. * elf.c (_bfd_elf_reloc_type_class): Likewise.
  2604. * versados.c (get_4): Make static.
  2605. (get_10): Make static.
  2606. Add missing prototypes.
  2607. (process_esd): Fix call to versados_new_symbol.
  2608. 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
  2609. * coff-a29k.c: Add missing prototypes.
  2610. * coff-apollo.c: Add missing prototypes.
  2611. * coff-arm.c: Add missing prototypes.
  2612. * coff-i860.c: Add missing prototypes.
  2613. * coff-rs6000.c: Add missing prototypes.
  2614. * coff-tic80.c: Add missing prototypes.
  2615. * elf-m10200.c: Add missing prototypes.
  2616. * elf-m10300.c: Add missing prototypes.
  2617. * elf32-arm.h: Add missing prototypes.
  2618. * elf32-d10v.c: Add missing prototypes.
  2619. * elf32-m32r.c: Add missing prototypes.
  2620. * elf32-mcore.c: Add missing prototypes.
  2621. * elf32-openrisc.c: Add missing prototypes.
  2622. * elf32-sh.c: Add missing prototypes.
  2623. * elf32-sparc.c: Add missing prototypes.
  2624. * elf32-v850.c: Add missing prototypes.
  2625. * elfarm-nabi.c: Add missing prototypes.
  2626. * elfarm-oabi.c: Add missing prototypes.
  2627. 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2628. * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
  2629. E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
  2630. 2001-08-24 H.J. Lu <hjl@gnu.org>
  2631. * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
  2632. hash structure.
  2633. 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
  2634. * elf-bfd.h (elf_hash_table): Revert definition.
  2635. (is_elf_hash_table): New macro.
  2636. * elflink.h (elf_link_add_object_symbols): Test
  2637. is_elf_hash_table before accessing ELF only fields in hash
  2638. structure.
  2639. (elf_link_create_dynamic_sections): Fail if not using an ELF
  2640. hash structure.
  2641. (elf_add_dynamic_entry): Fail if not using an ELF hash
  2642. structure.
  2643. (elf_link_record_local_dynamic_symbol): Fail if not using an
  2644. ELF hash structure.
  2645. (size_dynamic_sections): Fail if not using an ELF hash
  2646. structure.
  2647. (elf_adjust_dynamic_symbol): Fail if not using an ELF
  2648. hash structure.
  2649. (elf_bfd_final_link): Fail if not using an ELF hash
  2650. structure.
  2651. 2001-08-24 H.J. Lu <hjl@gnu.org>
  2652. * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
  2653. table is not an ELF linker hash table.
  2654. * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
  2655. table type to bfd_link_elf_hash_table.
  2656. * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
  2657. the last change.
  2658. * linker.c (_bfd_link_hash_table_init): Set the linker hash
  2659. table type to bfd_link_generic_hash_table.
  2660. 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
  2661. * bfd.c (bfd_alt_mach_code): New function.
  2662. * bfd-in2.h: Rebuilt.
  2663. 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
  2664. * elf-m10300.c (mn10300_elf_relocate_section): Test the right
  2665. `type' field in the hash entry when deciding whether to follow a
  2666. link.
  2667. 2001-08-24 Jakub Jelinek <jakub@redhat.com>
  2668. * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
  2669. last.
  2670. (elf_link_sort_relocs): Adjust accordingly.
  2671. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
  2672. (elf64_alpha_check_relocs): Set it if section this reloc is against
  2673. is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
  2674. read-only section.
  2675. (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
  2676. is is against read-only section.
  2677. (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
  2678. check section names.
  2679. (elf64_alpha_reloc_type_class): New.
  2680. (elf_backend_reloc_type_class): Define.
  2681. 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  2682. * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
  2683. by bfd_malloc().
  2684. 2001-08-23 Andreas Jaeger <aj@suse.de>
  2685. * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
  2686. the reloc is against read-only section.
  2687. (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
  2688. of looking up section names for DT_TEXTREL.
  2689. (elf64_x86_64_reloc_type_class): New.
  2690. (elf_backend_reloc_type_class): Define.
  2691. 2001-08-23 H.J. Lu <hjl@gnu.org>
  2692. * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
  2693. * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
  2694. * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
  2695. bfd_print_symbol_vandf.
  2696. * coffgen.c (coff_print_symbol): Likewise.
  2697. * elf.c (bfd_elf_print_symbol): Likewise.
  2698. * ieee.c (ieee_print_symbol): Likewise.
  2699. * nlmcode.h (nlm_print_symbol): Likewise.
  2700. * oasys.c (oasys_print_symbol): Likewise.
  2701. * pdp11.c (NAME(aout,print_symbol)): Likewise.
  2702. * som.c (som_print_symbol): Likewise.
  2703. * srec.c (srec_print_symbol): Likewise.
  2704. * tekhex.c (tekhex_print_symbol): Likewise.
  2705. * versados.c (versados_print_symbol): Likewise.
  2706. * vms.c (vms_print_symbol): Likewise.
  2707. * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
  2708. with bfd_fprintf_vma.
  2709. (bfd_elf_print_symbol): Likewise.
  2710. * syms.c (bfd_print_symbol_vandf): Likewise.
  2711. 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
  2712. * aoutf1.h (sunos_write_object_contents): Silence compile time
  2713. warning.
  2714. * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
  2715. * bout.c: Add missing function prototypes. Fix formatting.
  2716. * coff-z8k.c: Add missing function prototypes. Fix formatting.
  2717. * coff-w65.c: Add missing function prototypes. Fix formatting.
  2718. * coff-h8500.c: Add missing function prototypes. Fix formatting.
  2719. * coff-h8300.c: Add missing function prototypes. Fix formatting.
  2720. * coff-tic54x.c: Add missing function prototypes. Fix formatting.
  2721. * coff-tic30.c: Add missing function prototypes. Fix formatting.
  2722. * coff-m68k.c: Add missing function prototypes. Fix formatting.
  2723. * coff-rs6000.c: Add missing function prototypes. Fix formatting.
  2724. * coff-sh.c: Add missing function prototypes. Fix formatting.
  2725. 2001-08-23 Jakub Jelinek <jakub@redhat.com>
  2726. * elf-bfd.h (enum elf_reloc_type_class): New.
  2727. (struct elf_backend_data): Add elf_backend_reloc_type_class.
  2728. (_bfd_elf_reloc_type_class): New.
  2729. * elfxx-target.h (elf_backend_reloc_type_class): Define.
  2730. (elfNN_bed): Add elf_backend_reloc_type_class.
  2731. * elf.c (_bfd_elf_reloc_type_class): New.
  2732. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
  2733. is against read-only section.
  2734. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2735. looking up section names for DT_TEXTREL.
  2736. (elf_i386_reloc_type_class): New.
  2737. (elf_backend_reloc_type_class): Define.
  2738. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
  2739. reloc is against read-only section.
  2740. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2741. looking up section names for DT_TEXTREL.
  2742. (elf32_sparc_reloc_type_class): New.
  2743. (elf_backend_reloc_type_class): Define.
  2744. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
  2745. reloc is against read-only section.
  2746. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
  2747. looking up section names for DT_TEXTREL.
  2748. (sparc64_elf_reloc_type_class): New.
  2749. (elf_backend_reloc_type_class): Define.
  2750. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
  2751. (elfNN_ia64_hash_table_create): Clear ia64_info.
  2752. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
  2753. section.
  2754. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
  2755. instead of looking up section names for DT_TEXTREL.
  2756. (elfNN_ia64_reloc_type_class): New.
  2757. (elf_backend_reloc_type_class): Define.
  2758. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
  2759. (struct elf_link_sort_rela): New.
  2760. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
  2761. (elf_bfd_final_link): Call elf_link_sort_relocs.
  2762. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
  2763. necessary.
  2764. 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
  2765. * configure.in (x86-bsdi): No corefile support.
  2766. * configure: Regenerate.
  2767. 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
  2768. * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
  2769. comma.
  2770. 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
  2771. * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
  2772. the alignment of dwarf2 linkonce sections to 0.
  2773. * coff-sto32.c: Likewise.
  2774. 2001-08-20 Andreas Jaeger <aj@suse.de>
  2775. * coff-sparc.c: Add missing prototypes.
  2776. * elf32-s390.c: Likewise.
  2777. * elf32-i960.c: Likewise.
  2778. * aout-target.h: Likewise.
  2779. 2001-08-20 H.J. Lu <hjl@gnu.org>
  2780. * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
  2781. (elf_num_section_syms): New for num_section_syms.
  2782. * elf.c (elf_map_symbols): Set num_section_syms.
  2783. (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
  2784. the section symbol index.
  2785. 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
  2786. * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
  2787. select the generic has table creator. All elf backends need elf
  2788. specific fields in the hash table.
  2789. 2001-08-20 Alan Modra <amodra@bigpond.net.au>
  2790. * archive.c (offsetof): Remove define.
  2791. * elf.c: Likewise.
  2792. * oasys.c: Likewise
  2793. * sysdep.h (offsetof): Define.
  2794. 2001-08-17 Alan Modra <amodra@bigpond.net.au>
  2795. * bfd.c (bfd_get_gp_size): Return an unsigned int.
  2796. (bfd_set_gp_size): Make param unsigned.
  2797. * bfd-in2.h: Regenerate.
  2798. * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
  2799. than calling bfd_get_gp_size.
  2800. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
  2801. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
  2802. 2001-08-17 Alan Modra <amodra@bigpond.net.au>
  2803. * linker.c (default_fill_link_order): Handle four byte fill value.
  2804. 2001-08-17 Alan Modra <amodra@bigpond.net.au>
  2805. * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
  2806. prototype.
  2807. * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
  2808. * elf64-mips.c (UNUSED_RELOC): Define.
  2809. (mips_elf64_howto_table_rel): Use it.
  2810. (mips_elf64_howto_table_rela): Here too.
  2811. (mips_elf64_write_relocs): Fix signed/unsigned warning.
  2812. * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
  2813. silence warning.
  2814. * coffgen.c (coff_print_symbol): Fix warnings.
  2815. (coff_find_nearest_line): Likewise.
  2816. * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
  2817. * coff-alpha.c (alpha_convert_external_reloc): Likewise.
  2818. * format.c (bfd_check_format_matches): Likewise.
  2819. (bfd_set_format): Likewise.
  2820. * coff-ia64.c: Add missing prototypes.
  2821. * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
  2822. signed to silence warnings.
  2823. (elf64_alpha_relocate_section): Likewise.
  2824. (elf64_alpha_find_reloc_at_ofs): Fix warnings.
  2825. (elf64_alpha_add_symbol_hook): Likewise.
  2826. (elf64_alpha_final_link): Likewise.
  2827. (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
  2828. (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
  2829. (elf64_alpha_size_got_sections): Likewise.
  2830. * elfxx-ia64.c: Add missing prototypes.
  2831. (elfNN_ia64_relocate_section): Fix warning.
  2832. (elfNN_ia64_unwind_entry_compare): Make params const.
  2833. 2001-08-17 Alan Modra <amodra@bigpond.net.au>
  2834. * config.bfd (targ64_selvecs): New.
  2835. <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
  2836. * bfd-in.h (BFD_VERSION): Remove wrong comment.
  2837. (BFD_DEFAULT_TARGET_SIZE): New.
  2838. (BFD_ARCH_SIZE): Comment.
  2839. * configure.in (target_size): New. Set instead of target64 in
  2840. selvecs case statement. Set target64 from it.
  2841. (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
  2842. * bfd-in2.h: Regenerate.
  2843. * configure: Regenerate.
  2844. 2001-08-17 Alan Modra <amodra@bigpond.net.au>
  2845. * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
  2846. (bfd_errmsgs): Add corresponding message.
  2847. * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
  2848. finding an archive that contains different format object files.
  2849. Return bfd_error_wrong_object_format for this case.
  2850. * format.c: Formatting fixes. s/CONST/const/.
  2851. (bfd_check_format_matches): Accept archives that give
  2852. bfd_error_wrong_object_format if no full match is found. Tidy
  2853. code handling matching_vector. Don't return a pointer to freed
  2854. memory in `matching'. Handle ambiguous matches as for partial
  2855. archive matches.
  2856. * bfd-in2.h: Regenerate.
  2857. 2001-08-15 Alan Modra <amodra@bigpond.net.au>
  2858. * libieee.h (common_header_type): Add last_byte field.
  2859. * ieee.c: Add missing prototypes. Some format fixes.
  2860. (struct output_buffer_struct): Move for availability to prototypes.
  2861. (ieee_part_after): New function.
  2862. (ieee_slurp_debug): Use it here.
  2863. (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
  2864. ieee_part_after to set last_byte to one past end of current part.
  2865. Update callers.
  2866. (ieee_pos): Pass in ieee_data_struct rather than bfd.
  2867. Update callers.
  2868. (parse_expression): Don't go beyond the end of the current part.
  2869. (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
  2870. (ieee_get_symtab_upper_bound, ieee_get_symtab,
  2871. ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
  2872. ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
  2873. ieee_set_section_contents, ieee_write_object_contents,
  2874. ieee_make_empty_symbol): Make static.
  2875. (ieee_archive_p): Correct comments regarding bfd_read.
  2876. (ieee_object_p): Similarly.
  2877. (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
  2878. output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
  2879. input_bfd, output_bfd, output_buffer.
  2880. (do_as_repeat): Write out ieee_set_current_pc_enum value as for
  2881. do_with_relocs, ie. as a symbol for relocatable files.
  2882. (ieee_vec): Add comments showing functions referenced by macros.
  2883. 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
  2884. * aout-tic30.c: Add missing prototypes. Fix formatting.
  2885. * aout-ns32k.c: Add missing prototypes. Fix formatting.
  2886. * peXXigen.c: Add missining prototypes. Fix formatting.
  2887. * aout-adobe.c: Add missining prototypes. Fix formatting.
  2888. 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
  2889. * elf32-v850.c: Add missing function prototypes.
  2890. Fix some formatting.
  2891. * cpu-v850.c: Add missing function prototype.
  2892. Fix some formatting.
  2893. 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
  2894. * elf-bfd.h (struct elf_backend_data): Add new fields
  2895. 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
  2896. (bfd_elf_sprintf_vma): Rename function prototype to
  2897. '_bfd_elf_sprintf_vma'.
  2898. (bfd_elf_fprintf_vma): Rename function prototype to
  2899. '_bfd_elf_fprintf_vma'.
  2900. * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
  2901. directly, instead indirect via the elf_backend_data structure.
  2902. (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
  2903. instead indirect via the elf_backend_data structure.
  2904. * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
  2905. (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
  2906. * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
  2907. already defined.
  2908. (elf_backend_fprintf_vma): Initialise if not already defined.
  2909. (struct elf_backend_data): Initialise the
  2910. elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
  2911. 2001-08-10 Andreas Jaeger <aj@suse.de>
  2912. * elf64-sparc.c: Add missing prototypes.
  2913. * elf32-cris.c: Likewise.
  2914. * elf32-i370.c: Likewise.
  2915. * elf64-hppa.c: Likewise.
  2916. * elf64-s390.c: Likewise.
  2917. 2001-08-10 Andreas Jaeger <aj@suse.de>
  2918. * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
  2919. Add prototypes where needed.
  2920. 2001-08-10 H.J. Lu <hjl@gnu.org>
  2921. * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
  2922. (bfd_fprintf_vma): Likewise.
  2923. 2001-08-10 H.J. Lu <hjl@gnu.org>
  2924. * bfd.c (bfd_sprintf_vma): Don't return void.
  2925. (bfd_fprintf_vma): Likewise.
  2926. 2001-08-10 Andreas Jaeger <aj@suse.de>
  2927. * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
  2928. to build warnings.
  2929. * configure: Regenerate.
  2930. 2001-08-10 Alan Modra <amodra@bigpond.net.au>
  2931. * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
  2932. warning if not BFD64. Add braces so emacs auto format works.
  2933. (bfd_elf_fprintf_vma): Likewise.
  2934. * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
  2935. of _xcoff_swap_ld*.
  2936. * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
  2937. param to agree with libxcoff.h.
  2938. (xcoff_swap_ldhdr_out): Likewise.
  2939. (xcoff_swap_ldsym_in): Likewise.
  2940. (xcoff_swap_ldsym_out): Likewise.
  2941. (xcoff_swap_ldrel_in): Likewise.
  2942. (xcoff_swap_ldrel_out): Likewise.
  2943. (xcoff_create_csect_from_smclas): Likewise.
  2944. * coff64-rs6000.c: Add missing prototypes.
  2945. (xcoff64_swap_ldhdr_in): Modify type of external param to agree
  2946. with libxcoff.h.
  2947. (xcoff64_swap_ldhdr_out): Likewise.
  2948. (xcoff64_swap_ldsym_in): Likewise.
  2949. (xcoff64_swap_ldsym_out): Likewise.
  2950. (xcoff64_swap_ldrel_in): Likewise.
  2951. (xcoff64_swap_ldrel_out): Likewise.
  2952. (xcoff64_ppc_relocate_section): Make static.
  2953. (xcoff64_slurp_armap): Likewise.
  2954. (xcoff64_archive_p): Likewise.
  2955. (xcoff64_openr_next_archived_file): Likewise.
  2956. (xcoff64_sizeof_headers): Likewise.
  2957. (xcoff64_is_lineno_count_overflow): Likewise.
  2958. (xcoff64_is_reloc_count_overflow): Likewise.
  2959. (xcoff64_loader_symbol_offset): Likewise.
  2960. (xcoff64_loader_reloc_offset): Likewise.
  2961. * elf64-gen.c: Add missing prototypes.
  2962. 2001-08-09 H.J. Lu <hjl@gnu.org>
  2963. * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
  2964. (bfd_elf_fprintf_vma): Likewise.
  2965. 2001-08-09 H.J. Lu <hjl@gnu.org>
  2966. * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
  2967. to ...
  2968. * elf-bfd.h: Here.
  2969. * bfd-in2.h: Regenerated.
  2970. 2001-08-09 H.J. Lu <hjl@gnu.org>
  2971. * bfd-in.h (bfd_sprintf_vma): New prototype.
  2972. (bfd_fprintf_vma): Likewise.
  2973. (bfd_elf_sprintf_vma): Likewise.
  2974. (bfd_elf_fprintf_vma): Likewise.
  2975. (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
  2976. * bfd-in2.h: Regenerated.
  2977. * bfd.c (bfd_sprintf_vma): New. Defined.
  2978. (bfd_fprintf_vma): Likewise.
  2979. * elf.c (bfd_elf_sprintf_vma): New. Defined.
  2980. (bfd_elf_fprintf_vma): Likewise.
  2981. 2001-08-09 Alan Modra <amodra@bigpond.net.au>
  2982. * coff-rs6000.c: Add missing prototypes.
  2983. (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
  2984. xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
  2985. xcoff_loader_reloc_offset): Make static.
  2986. * dwarf1.c: Add missing prototypes.
  2987. * dwarf2.c: Add missing prototypes.
  2988. (struct abbrev_info): Move definition.
  2989. (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
  2990. * elf.c: Add missing prototypes.
  2991. * elf32-gen.c: Likewise.
  2992. * elf32-i386.c: Likewise.
  2993. * elf32-ppc.c: Likewise.
  2994. (ppc_elf_sort_rela): Use PTR instead of "void *".
  2995. * elflink.h: Add missing prototypes. Formatting fixes.
  2996. * merge.c: Add missing prototypes.
  2997. (last4_eq): Use PTR instead of "void *".
  2998. (last_eq): Likewise.
  2999. * syms.c: Add missing prototypes.
  3000. 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
  3001. * bfd.c: Fix formatting.
  3002. * bfd-in2.h: Regenerate.
  3003. 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
  3004. * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
  3005. true (this target uses REL relocations) and 'pcrel_offset' to
  3006. false (the PC is implied, not stored in the offset).
  3007. 2001-08-08 Alan Modra <amodra@bigpond.net.au>
  3008. 1999-10-19 Linus Nordberg <linus@swox.se>
  3009. * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
  3010. * elfxx-target.h (elf_backend_want_got_sym): Define.
  3011. (elfNN_bed): Add elf_backend_want_got_sym.
  3012. * elflink.c (_bfd_elf_create_got_section): Define
  3013. _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
  3014. 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
  3015. * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
  3016. (find_rela_addend): New function.
  3017. (parse_comp_unit): Call it to find the abbrev offset addend.
  3018. (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
  3019. members of dwarf2_debug as debugging information is read.
  3020. 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
  3021. * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
  3022. targets as well as sh-pe.
  3023. 2001-08-03 Ben Harris <bjh21@netbsd.org>
  3024. * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
  3025. reloc from start of section when computing value for R_ARM_REL32
  3026. reloc.
  3027. 2001-08-03 Alan Modra <amodra@bigpond.net.au>
  3028. From H.J. Lu <hjl@gnu.org>
  3029. * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
  3030. keep relocs for undefined syms if there are no dynamic sections in
  3031. executable.
  3032. * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
  3033. 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
  3034. * cofflink.c (coff_link_check_ar_symbols): also search for
  3035. __imp__symbol as well as _symbol.
  3036. * linker.c (_bfd_generic_link_add_archive_symbols): also
  3037. search for __imp__symbol as well as _symbol.
  3038. 2001-08-01 Adam Nemet <anemet@lnxw.com>
  3039. * elf.c (elf_sort_sections): Return zero only as the last step.
  3040. 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
  3041. * config.bfd (arm-vxworks): Change name of define from VXWORKS to
  3042. ARM_COFF_BUGFIX.
  3043. (arm-epoc-pe): Define ARM_COFF_BUGFIX.
  3044. coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
  3045. ARM_COFF_BUGFIX.
  3046. 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  3047. * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
  3048. to match corresponding bfd_coff_backend data member.
  3049. 2001-07-24 Alan Modra <amodra@bigpond.net.au>
  3050. * Makefile.am: Update dependencies with "make dep-am".
  3051. * Makefile.in: Regenerate
  3052. 2001-07-15 H.J. Lu <hjl@gnu.org>
  3053. * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
  3054. (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
  3055. * Makefile.in: Regenerate.
  3056. 2001-07-11 H.J. Lu <hjl@gnu.org>
  3057. * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
  3058. flags when creating the reloc section if the ALLOC flag in the
  3059. source section is set.
  3060. 2001-07-11 Steve Ellcey <sje@cup.hp.com>
  3061. * reloc.c (bfd_reloc_code_type): Add IA64 relocs
  3062. BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
  3063. * bfd-in2.h: Regenerate.
  3064. * libbfd.h: Regenerate.
  3065. * elfxx-ia64.c (ia64_howto_table): Define how to handle
  3066. new relocations.
  3067. (elfNN_ia64_reloc_type_lookup): Handle new relocations.
  3068. (elfNN_ia64_check_relocs): Likewise.
  3069. (elfNN_ia64_install_value): Likewise.
  3070. (elfNN_ia64_relocate_section): Likewise.
  3071. 2001-07-11 Jakub Jelinek <jakub@redhat.com>
  3072. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
  3073. R_SPARC_UA64.
  3074. (elf32_sparc_check_relocs): Likewise.
  3075. Only create .rela section for alloced sections in shared libraries.
  3076. (elf32_sparc_relocate_section): Likewise.
  3077. Remove redundant check.
  3078. Optimize unaligned reloc usage.
  3079. * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
  3080. check.
  3081. 2001-07-11 H.J. Lu <hjl@gnu.org>
  3082. * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
  3083. ALLOC|LOAD flags as the source section for debugging sections
  3084. when creating the reloc section.
  3085. 2001-07-05 Jim Wilson <wilson@redhat.com>
  3086. * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
  3087. the section of the bigger symbol.
  3088. * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
  3089. 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
  3090. * peicode.h (coff_swap_scnhdr_in): For sections containing
  3091. uninitialised data, only set their size to s_paddr if this does
  3092. not reset their size to zero. MS's latest compilers will set
  3093. s_paddr to zero.
  3094. 2001-07-04 H.J. Lu <hjl@gnu.org>
  3095. * elf32-mips.c (_bfd_mips_elf_final_write_processing):
  3096. Handle bfd_mach_mips4400, bfd_mach_mips4600 and
  3097. bfd_mach_mips5000.
  3098. 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
  3099. * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
  3100. * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
  3101. sections being discarded.
  3102. 2001-06-30 Alan Modra <amodra@bigpond.net.au>
  3103. * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
  3104. instead of _bfd_elfcore_section_from_phdr.
  3105. * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
  3106. * elf.c (_bfd_elfcore_section_from_phdr): Remove.
  3107. (_bfd_elfcore_make_pseudosection): Expedite tail-call.
  3108. (elfcore_grok_prstatus): Likewise.
  3109. (elfcore_grok_lwpstatus): Likewise.
  3110. (bfd_get_elf_phdr_upper_bound): Likewise.
  3111. (elfcore_make_note_pseudosection): Formatting.
  3112. (_bfd_elfcore_strndup): Formatting.
  3113. * elf32-mips.c (mips_elf_sym_is_global): Formatting.
  3114. (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
  3115. 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
  3116. * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
  3117. and _bfd_elfcore_strndup.
  3118. (struct elf_backend_data): Add elf_backend_grok_prstatus
  3119. and elf_backend_grok_psinfo.
  3120. * elf.c (_bfd_elfcore_make_pseudosection): New function.
  3121. (elfcore_grok_prstatus): Use it.
  3122. (elfcore_make_note_pseudosection): Likewise.
  3123. (elfcore_strndup): Rename to...
  3124. (_bfd_elfcore_strndup): Here, and make global.
  3125. (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
  3126. (elfcore_grok_note): Call elf_backend_grok_prstatus
  3127. and elf_backend_grok_psinfo if available.
  3128. * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
  3129. (_bfd_elf32_mips_grok_psinfo): New function.
  3130. (elf_backend_grok_prstatus): Define.
  3131. (elf_backend_grok_psinfo): Define.
  3132. * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
  3133. (elf_backend_grok_psinfo): Likewise.
  3134. (elfNN_bed): Include elf_backend_grok_prstatus and
  3135. elf_backend_grok_psinfo.
  3136. 2001-06-29 H.J. Lu <hjl@gnu.org>
  3137. * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
  3138. hplink->sgot is NULL before filling GOT. Check if hplink->splt
  3139. is NULL before filling PLT.
  3140. 2001-06-29 Alan Modra <amodra@bigpond.net.au>
  3141. * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
  3142. 2001-06-27 Alan Modra <amodra@bigpond.net.au>
  3143. * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
  3144. here..
  3145. (elf32_hppa_adjust_dynamic_symbol): ..nor here..
  3146. (allocate_plt_and_got_and_discard_relocs): .. instead do so here
  3147. after gc has run.
  3148. * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
  3149. (IS_ABSOLUTE_RELOC): Define.
  3150. (elf32_hppa_link_hash_entry): Always include reloc_entries field.
  3151. (hppa_link_hash_newfunc): Always init it.
  3152. (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
  3153. create COPY relocs only when the reloc is in a read-only section.
  3154. Instead, allocate space for a dynamic reloc to reference the
  3155. library symbol directly. Keep track of space we allocate using
  3156. relocs_entries.
  3157. (hppa_discard_copies): Delete, and move code to..
  3158. (allocate_plt_and_got): ..here. Rename to
  3159. allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
  3160. relocs for non-shared link.
  3161. (elf32_hppa_size_dynamic_sections): Update calls to above.
  3162. (elf32_hppa_relocate_section): Write out the dynamic relocs used
  3163. in lieu of COPY relocs.
  3164. * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
  3165. here..
  3166. (elf_i386_adjust_dynamic_symbol): ..nor here..
  3167. (allocate_plt_and_got_and_discard_relocs): .. instead do so here
  3168. after gc has run.
  3169. (elf_i386_size_dynamic_sections): Fix a comment.
  3170. (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
  3171. involved in writing reloc out.
  3172. 2001-06-25 Alan Modra <amodra@bigpond.net.au>
  3173. * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
  3174. Ensure syms are dynamic if we might be emitting a reloc.
  3175. (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
  3176. for undefweak or undefined syms..
  3177. (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
  3178. * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
  3179. relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
  3180. (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
  3181. redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
  3182. 2001-06-24 H.J. Lu <hjl@gnu.org>
  3183. * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
  3184. strncasecmp/strcasecmp instead of strncmp/strcmp.
  3185. 2001-06-23 H.J. Lu <hjl@gnu.org>
  3186. * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
  3187. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
  3188. in the regular object file and treat the weak definition as
  3189. the normal one.
  3190. 2001-06-23 Alan Modra <amodra@bigpond.net.au>
  3191. * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
  3192. unresolved_reloc test to exclude cases where we use "relocation"
  3193. before setting it to point into the .got. Reinstate fudge for
  3194. unresolved relocs in debugging sections.
  3195. * elf32-i386.c (elf_i386_relocate_section): Replace ugly
  3196. complicated tests for unresolvable relocs with a simple direct
  3197. scheme using "unresolved_reloc" var.
  3198. * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
  3199. elf_i386_dyn_relocs. Update comment.
  3200. (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
  3201. dyn_relocs.
  3202. (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
  3203. others to aborts.
  3204. (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
  3205. abort.
  3206. (elf_i386_size_dynamic_sections): Likewise.
  3207. (elf_i386_finish_dynamic_symbol): Likewise.
  3208. (elf_i386_finish_dynamic_sections): Likewise.
  3209. (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
  3210. handling code.
  3211. Avoid creating COPY relocs if possible.
  3212. * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
  3213. which .got created. Mark symbols used by R_386_32 and R_386_PC32
  3214. relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
  3215. reloc is in a read-only section. Instead, allocate space for a
  3216. dynamic reloc to reference the library symbol directly. Keep
  3217. track of space we allocate using pcrel_relocs_copied.
  3218. (discard_copies): Delete, and move code to ..
  3219. (allocate_plt_and_got): ..here. Rename to
  3220. allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
  3221. relocs for non-shared link.
  3222. (elf_i386_size_dynamic_sections): Update calls to above functions.
  3223. (elf_i386_relocate_section): Write out the dynamic relocs. Add
  3224. more ugly logic to avoid "unresolvable relocation" error. Use
  3225. htab shortcut in place of elf_hash_table macro.
  3226. (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
  3227. not always be created now.
  3228. 2001-06-20 Bo Thorsen <bo@suse.co.uk>
  3229. * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
  3230. shared libraries.
  3231. 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3232. * configure.host (mips64-*-linux): Reformat.
  3233. 2001-06-21 Alan Modra <amodra@bigpond.net.au>
  3234. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
  3235. allocate local .got space. Use shortcuts from hash table for .got
  3236. and .plt rather than comparing section names.
  3237. (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
  3238. adjusting index into local_got_refcounts to document what we are
  3239. really doing.
  3240. (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
  3241. Tidy .got and .plt error checking.
  3242. 2001-06-20 Catherine Moore <clm@redhat.com>
  3243. * elf-bfd.h (struct elf_backend_data):
  3244. elf_backend_emit_relocs: New field: Function for emitting
  3245. relocs.
  3246. elf_backend_count_relocs: New field: Function for determining
  3247. the number of relocs to be emitted.
  3248. * elfxx-target.h: Provide default (NULL) values for
  3249. elf_backend_emit_relocs and elf_backend_count_relocs.
  3250. * elflink.h (elf_link_size_reloc_section): Make the hash table
  3251. big enough to hold the relocs counted by either reloc_count or
  3252. o->reloc_count.
  3253. (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
  3254. should be emitted, either because of a command line option
  3255. stored in the info structure or because the target provides a
  3256. special reloc emitting function.
  3257. If the target provides a reloc counting function use it,
  3258. unless performing a relocatable link or emitting all relocs.
  3259. Also set the SEC_RELOC flag on any output section which will
  3260. contain relocs.
  3261. (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
  3262. should be emitted, either because of a command line option
  3263. stored in the info structure or because the target provides a
  3264. special reloc emitting function.
  3265. If the target provides a reloc emitting function, use it,
  3266. unless performing a relocatable link or emitting all relocs.
  3267. 2001-06-20 H.J. Lu <hjl@gnu.org>
  3268. * elf32-i386.c (elf_i386_size_dynamic_sections): Always
  3269. allocate local .got space.
  3270. 2001-06-19 Andreas Jaeger <aj@suse.de>
  3271. * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
  3272. dynamic symbols.
  3273. 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
  3274. * elflink.h (struct elf_assign_sym_version_info): Remove member
  3275. export_dynamic. All users changed to use info member.
  3276. NAME(bfd_elf,size_dynamic_sections)): Remove parameter
  3277. export_dynamic, instead use member in parameter info.
  3278. * bfd-in.h (bfd_elf32_size_dynamic_sections,
  3279. bfd_elf64_size_dynamic_sections): Update prototype.
  3280. * bfd-in2.h: Regenerate.
  3281. 2001-06-18 H.J. Lu <hjl@gnu.org>
  3282. * elflink.h (elf_info_failed): Add a new field, verdefs.
  3283. (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
  3284. elf_export_symbol.
  3285. (elf_export_symbol): Check eif->verdefs to decide if a symbol
  3286. should be exported.
  3287. 2001-06-17 H.J. Lu <hjl@gnu.org>
  3288. * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
  3289. readonly_reloc, to record if a relocation in the .rel.dyn
  3290. section is against a read-only section.
  3291. (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
  3292. field to false.
  3293. (_bfd_mips_elf_check_relocs): Record if there is a relocation
  3294. in the .rel.dyn section against a read-only section by setting
  3295. DF_TEXTREL or readonly_reloc.
  3296. (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
  3297. it is true.
  3298. (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
  3299. there is a relocation in the .rel.dyn section against a
  3300. read-only section.
  3301. (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
  3302. DF_TEXTREL is set.
  3303. 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
  3304. * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
  3305. function. Move flagword result into parameter list. Remove
  3306. comment about setting bfd_error_handler to intercept failure
  3307. results.
  3308. * coffgen.c (make_a_section_from_file): Examine result of
  3309. calling bfd_coff_styp_to_sec_flags and pass a failure back to
  3310. caller.
  3311. * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
  3312. function. Move flagword result into parameter list.
  3313. * libcoff.h: Regenerate.
  3314. * libecoff.h: Regenerate.
  3315. 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
  3316. * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
  3317. section is going to follow it.
  3318. 2001-06-12 Catherine Moore <clm@redhat.com>
  3319. * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
  3320. with the file_align entry from elf_backend_data.
  3321. (elf_gc_smash_unused_vtentry_relocs): Likewise.
  3322. (elf_gc_record_vtentry): Likewise.
  3323. 2001-06-10 Alan Modra <amodra@bigpond.net.au>
  3324. * elflink.h: Whitespace changes.
  3325. (elf_link_read_relocs_from_section): Use "unsigned int" iterator
  3326. rather than "unsigned char".
  3327. (elf_link_output_relocs): Likewise.
  3328. (elf_link_input_bfd): Likewise.
  3329. (elf_reloc_link_order): LIkewise.
  3330. * elf.c: s/CONST/const/. Whitespace changes.
  3331. * elf32-mips.c: Formatting fix.
  3332. * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
  3333. * Makefile.in: Regenerate.
  3334. * po/Make-in: Remove trailing tab.
  3335. 2001-06-09 Philip Blundell <philb@gnu.org>
  3336. * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
  3337. change.
  3338. (elf32_arm_plt_entry): Likewise.
  3339. 2001-06-08 H.J. Lu <hjl@gnu.org>
  3340. * elf.c (swap_out_syms): Keep names for global section symbols.
  3341. 2001-06-07 H.J. Lu <hjl@gnu.org>
  3342. * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
  3343. MIPS-based machines need it.
  3344. 2001-06-07 H.J. Lu <hjl@gnu.org>
  3345. * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
  3346. for SGI only.
  3347. * config.bfd: Remove ecoff from Linux/mips.
  3348. 2001-06-07 Andreas Jaeger <aj@suse.de>
  3349. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
  3350. assertion.
  3351. (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
  3352. alignment of 8 for .rela sections; handle further relocations.
  3353. 2001-06-06 Christian Groessler <cpg@aladdin.de>
  3354. * coff-z8k.c: Fix formatting.
  3355. Fix howtos: howto->size was always 1.
  3356. 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3357. * configure.host (mips64*-*-linux*): Define.
  3358. 2001-06-05 Alan Modra <amodra@bigpond.net.au>
  3359. * elf32-i386.c (elf_i386_discard_copies): Rename to
  3360. discard_copies, and use elf_link_hash_entry arg rather than
  3361. elf_i386_link_hash_entry.
  3362. (elf_i386_link_hash_traverse): Delete.
  3363. (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
  3364. Tidy sizing of dynamic sections.
  3365. (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
  3366. possible .plt entries.
  3367. (elf_i386_gc_sweep_hook): Likewise.
  3368. (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
  3369. everything with plt.refcount <= 0.
  3370. * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
  3371. .relgot space here.
  3372. (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
  3373. (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
  3374. .rel.plt here..
  3375. (allocate_plt_and_got): ..instead do it all here. New function.
  3376. (elf_i386_size_dynamic_sections): Allocate local .got space and
  3377. call allocate_plt_and_got. No need to zap .relgot if not dynamic.
  3378. (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
  3379. rather than gc variety).
  3380. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  3381. (elf_i386_relocate_section): Use it here and correct handling of
  3382. R_386_GOT32. Provide section and offset for "unresolvable
  3383. relocation" error message.
  3384. (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
  3385. * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
  3386. sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
  3387. (elf_i386_link_hash_table_create): Init them.
  3388. (create_got_section): New function.
  3389. (elf_i386_create_dynamic_sections): New function.
  3390. (elf_backend_create_dynamic_sections): Set to above.
  3391. (elf_i386_check_relocs): Use shortcuts from hash table rather than
  3392. calling bfd_get_section_by_name.
  3393. (elf_i386_gc_sweep_hook): Likewise.
  3394. (elf_i386_adjust_dynamic_symbol): Likewise.
  3395. (elf_i386_size_dynamic_sections): Likewise.
  3396. (elf_i386_relocate_section): Likewise.
  3397. (elf_i386_finish_dynamic_sections): Likewise.
  3398. * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
  3399. 2001-06-02 H.J. Lu <hjl@gnu.org>
  3400. * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
  3401. and ELFOSABI_HPUX.
  3402. * elf64-hppa.c (elf64_hppa_object_p): Likewise.
  3403. 2001-06-02 H.J. Lu <hjl@gnu.org>
  3404. * aout-cris.c (MACHTYPE_OK): New. Defined.
  3405. 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
  3406. * section.c (_bfd_strip_section_from_output): Handle NULL
  3407. output_section.
  3408. 2001-06-02 H.J. Lu <hjl@gnu.org>
  3409. * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
  3410. rs6000coff64_vec only if BFD64 is defined.
  3411. (powerpc64-*-aix*): Enable only if BFD64 is defined.
  3412. 2001-06-02 H.J. Lu <hjl@gnu.org>
  3413. * coff-ia64.c (ia64coff_object_p): Rewrite with
  3414. external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
  3415. 2001-06-01 Andreas Jaeger <aj@suse.de>
  3416. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
  3417. relocation, small reformatting.
  3418. 2001-05-29 Andreas Jaeger <aj@suse.de>
  3419. * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
  3420. (elf64_x86_64_relocate_section): Likewise.
  3421. 2001-05-30 Alan Modra <amodra@one.net.au>
  3422. * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
  3423. millicode. Don't allocate .got and .rela.got space here..
  3424. (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
  3425. (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
  3426. .rela.plt here..
  3427. (hppa_handle_PIC_calls): ..nor here..
  3428. (allocate_plt_and_got): ..instead do it all here. New function.
  3429. (elf32_hppa_size_dynamic_sections): Allocate local .got space and
  3430. call allocate_plt_and_got. No need to zap .got if not dynamic.
  3431. (elf32_hppa_final_link): Call regular bfd_final_link instead of
  3432. gc_common_final_link.
  3433. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
  3434. (elf32_hppa_relocate_section): Use it here.
  3435. (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
  3436. dynamic_sections_created.
  3437. (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
  3438. 2001-05-28 Andreas Jaeger <aj@suse.de>
  3439. * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
  3440. generic version since we want a hashsize of 4.
  3441. (elf_backend_size_info): Likewise.
  3442. 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3443. * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
  3444. a zeroing loop.
  3445. (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
  3446. (elf_link_input_bfd): Likewise.
  3447. (elf_reloc_link_order): Likewise.
  3448. (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
  3449. relocations correctly.
  3450. 2001-05-28 Nicolas Pitre <nico@cam.org>
  3451. * elf32-arm.h: fix PLT generation for big endian ARM
  3452. 2001-05-28 Alan Modra <amodra@one.net.au>
  3453. * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
  3454. for symbols forced local that need plabels.
  3455. (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
  3456. .plt.rela for local syms if non-shared.
  3457. (hppa_build_one_stub): Mask lsb of plt.offset.
  3458. (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
  3459. (clobber_millicode_symbols): Correct comment.
  3460. (elf32_hppa_relocate_section): Likewise.
  3461. (elf32_hppa_finish_dynamic_symbol): Likewise.
  3462. 2001-05-28 Jeff Sturm <jsturm@one-point.com>
  3463. * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
  3464. * bfd-in2.h: Regenerate.
  3465. * libbfd.h: Regenerate.
  3466. * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
  3467. and BFD_RELOC_SPARC_UA64 mapping
  3468. * elf64-sparc.c: Likewise.
  3469. 2001-05-25 H.J. Lu <hjl@gnu.org>
  3470. * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
  3471. (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
  3472. (coff-rs6000.lo): Remove the old dependency.
  3473. * Makefile.in: Rebuild.
  3474. * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
  3475. coff-rs6000.lo.
  3476. 2001-05-25 H.J. Lu <hjl@gnu.org>
  3477. * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
  3478. rs6000coff_core_file_matches_executable_p,
  3479. rs6000coff_core_file_failing_command and
  3480. rs6000coff_core_file_failing_signal only if AIX_CORE is
  3481. defined.
  3482. (pmac_xcoff_vec): Likewise.
  3483. * coff64-rs6000.c (rs6000coff64_vec): Likewise.
  3484. 2001-05-25 Timothy Wall <twall@redhat.com>
  3485. * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
  3486. for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
  3487. 2001-05-25 H.J. Lu <hjl@gnu.org>
  3488. * bfd-in2.h: Regenerated.
  3489. * libcoff.h: Likewise.
  3490. 2001-05-25 Alan Modra <amodra@one.net.au>
  3491. * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
  3492. undefined millicode syms in shared libs.
  3493. (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
  3494. (elf32_hppa_check_relocs): Likewise.
  3495. (elf32_hppa_adjust_dynamic_symbol): Likewise.
  3496. (elf32_hppa_size_dynamic_sections): Likewise.
  3497. (elf32_hppa_relocate_section): Likewise.
  3498. (elf32_hppa_finish_dynamic_symbol): Likewise.
  3499. (elf32_hppa_finish_dynamic_sections): Likewise.
  3500. 2001-05-24 Tom Rix <trix@redhat.com>
  3501. * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
  3502. xcoff-target.h not used to define rs6000 or ppc bfd.
  3503. * Makefile.in same
  3504. * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
  3505. to 64 bit.
  3506. * coff-rs6000.c : Many changes for 64 bit support. Move common
  3507. 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
  3508. and pmac_xcoff_vec
  3509. * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
  3510. linker now supported. Explictly define the rs6000coff64_vec.
  3511. * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
  3512. (coff_print_aux) same
  3513. (coff_write_object_contents) same
  3514. (coff_slurp_line_table) same
  3515. * coffgen.c : (coff_fix_symbol_name) formatting
  3516. (coff_mangle_symbols) xcoff 64 bit support
  3517. (coff_write_symbol) same
  3518. (coff_write_alien_symbol) same
  3519. (coff_write_native_symbol) same
  3520. (coff_write_symbols) same
  3521. (coff_get_symbol_info) same
  3522. (bfd_coff_get_syment) same
  3523. (coff_print_symbol) same
  3524. * config.bfd : add powerpc64-*-aix* target
  3525. * libcoff-in.h : formatting
  3526. * libcoff.h : move xcoff extern declarations to libxcoff.h
  3527. * libxcoff.h : New file
  3528. * xcofflink.c : Many changes for xcoff64 support. Move common
  3529. structures to include/coff/xcoff.h. Move specific structure to
  3530. backends coff-rs6000.c and coff64-rs6000.c. Use new backend
  3531. functions, defined in libxcoff.h, to isolate 32/64 dependencies.
  3532. (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
  3533. aix4.2+ -binitfini.
  3534. (xcoff_build_ldsyms) : handle special __rtinit symbol.
  3535. 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
  3536. * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
  3537. s/ENTIRES/ENTRIES/.
  3538. 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3539. * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
  3540. * libbfd.h: Regenerate.
  3541. * bfd-in2.h: Regenerate.
  3542. * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
  3543. * archures.c (bfd_mach_mips12000): Define.
  3544. * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
  3545. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
  3546. support.
  3547. (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
  3548. * bfd-in2.h: Regenerate.
  3549. * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
  3550. 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
  3551. * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
  3552. elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
  3553. elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
  3554. that is used by GCC.
  3555. 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
  3556. * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
  3557. of entries in a structured section.
  3558. * elf.c: Use new macro.
  3559. * elf32-i386.c: Use new macro.
  3560. * elf32-mips.c: Use new macro.
  3561. * elf64-alpha.c: Use new macro.
  3562. * elf64-sparc.c: Use new macro.
  3563. * elfcode.h: Use new macro.
  3564. * elflink.h: Use new macro.
  3565. 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
  3566. * bfdint.texi: Replace -oformat with --oformat.
  3567. 2001-05-21 Andreas Jaeger <aj@suse.de>
  3568. * dwarf2.c (decode_line_info): Fix error message.
  3569. (read_abbrevs): Fix test for offset as suggested by Alan Modra and
  3570. adjust error message.
  3571. 2001-05-18 H.J. Lu <hjl@gnu.org>
  3572. * elflink.h (elf_link_add_object_symbols): Revert the last
  3573. change.
  3574. 2001-05-17 Alan Modra <amodra@one.net.au>
  3575. * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
  3576. ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
  3577. (hppa_build_one_stub): Add an assert to check plt.offset.
  3578. 2001-05-17 H.J. Lu <hjl@gnu.org>
  3579. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
  3580. version definition to basename of the output filename.
  3581. 2001-05-17 H.J. Lu <hjl@gnu.org>
  3582. * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
  3583. basename of the bfd filename.
  3584. 2001-05-16 Alan Modra <amodra@one.net.au>
  3585. * section.c (asection): Add linker_has_input field.
  3586. (STD_SECTION): Adjust initialization to suit.
  3587. * ecoff.c (bfd_debug_section): Likewise.
  3588. * bfd-in2.h: Regenerate.
  3589. 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
  3590. * elf-m10300.c (mn10300_elf_relax_section): Don't relax
  3591. negative 32-bit operands to 16 operands when the operand is
  3592. going to be zero-extended by the modified opcode.
  3593. 2001-05-12 Peter Targett <peter.targett@arccores.com>
  3594. * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
  3595. name for 'arc5' core versions.
  3596. (bfd_arc_arch): Make bfd_mach_arc_6 default.
  3597. * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
  3598. architecture.
  3599. (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
  3600. 2001-05-11 Jakub Jelinek <jakub@redhat.com>
  3601. * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
  3602. sections as well.
  3603. (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
  3604. to .gnu.linkonce.t.FOO text section.
  3605. 2001-05-11 Jakub Jelinek <jakub@redhat.com>
  3606. * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
  3607. fields, change sec into secinfo.
  3608. (struct sec_merge_info): Add chain, remove last fields.
  3609. (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
  3610. (sec_merge_hash_lookup): If lookup could not use a string only
  3611. because it has bad alignment, mark the old string for deletion.
  3612. (sec_merge_add): Add secinfo argument. Don't compute entry's
  3613. position, instead record the section.
  3614. (sec_merge_emit): Update for the sec into secinfo change in
  3615. struct sec_merge_hash_entry.
  3616. (_bfd_merge_section): Only record the section for merging, defer
  3617. putting strings into the hash table.
  3618. (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
  3619. _bfd_merge_sections): New functions.
  3620. (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
  3621. changes.
  3622. * libbfd-in.h (_bfd_merge_sections): Add prototype.
  3623. (_bfd_nolink_bfd_merge_sections): Define.
  3624. * libbfd.h: Likewise.
  3625. (bfd_generic_merge_sections): Add prototype.
  3626. * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
  3627. (struct bfd_target): Likewise.
  3628. * bfd.c (bfd_merge_sections): Define.
  3629. * bfd-in2.h: Rebuilt.
  3630. * elf.c (_bfd_elf_merge_sections): New function.
  3631. * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
  3632. * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
  3633. * reloc.c (bfd_generic_merge_sections): New function.
  3634. * vms.c (vms_bfd_merge_sections): New function.
  3635. * aout-adobe.c (aout_32_bfd_merge_sections): Define.
  3636. * aout-target.h (MY_bfd_merge_sections): Define.
  3637. * aout-tic30.c (MY_bfd_merge_sections): Define.
  3638. * binary.c (binary_bfd_merge_sections): Define.
  3639. * bout.c (b_out_bfd_merge_sections): Define.
  3640. * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
  3641. * coffcode.c (coff_bfd_merge_sections): Define.
  3642. * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
  3643. * i386msdos.c (msdos_bfd_merge_sections): Define.
  3644. * i386os9k.c (os9k_bfd_merge_sections): Define.
  3645. * ieee.c (ieee_bfd_merge_sections): Define.
  3646. * ihex.c (ihex_bfd_merge_sections): Define.
  3647. * nlm-target.h (nlm_bfd_merge_sections): Define.
  3648. * oasys.c (oasys_bfd_merge_sections): Define.
  3649. * ppcboot.c (ppcboot_bfd_merge_sections): Define.
  3650. * som.c (som_bfd_merge_sections): Define.
  3651. * srec.c (srec_bfd_merge_sections): Define.
  3652. * tekhex.c (tekhex_bfd_merge_sections): Define.
  3653. * versados.c (versados_bfd_merge_sections): Define.
  3654. * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
  3655. 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
  3656. * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
  3657. to be unsigned long, in order to match its use.
  3658. 2001-05-10 H.J. Lu <hjl@gnu.org>
  3659. * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
  3660. indirect symbols.
  3661. 2001-05-09 H.J. Lu <hjl@gnu.org>
  3662. * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
  3663. versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
  3664. Remove the unused veriable `dynver'.
  3665. 2001-05-08 Ian Lance Taylor <ian@zembu.com>
  3666. * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
  3667. NULL or is not COFF.
  3668. (coff_i386_rtype_to_howto): Don't dump core if output section
  3669. owner is not COFF.
  3670. 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
  3671. * ecoff.c (bfd_debug_section): Fix initialization.
  3672. * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
  3673. is always a positive integer. Cast away sign mismatch.
  3674. * elf32-mips.c: Fix misleading comment and typo.
  3675. (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
  3676. correct data type.
  3677. * elflink.c: Fix typo.
  3678. (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
  3679. * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
  3680. 2001-05-04 Richard Henderson <rth@redhat.com>
  3681. * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
  3682. 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
  3683. * elf32-arm.h (elf32_arm_final_link_relocate): Set
  3684. EF_ARM_HASENTRY if the start address is set.
  3685. 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
  3686. * targets.c (_bfd_target_vector_entries): Compute value based on
  3687. the size of the _bfd_target_vector and not bfd_target_vector.
  3688. 2001-05-03 H.J. Lu <hjl@gnu.org>
  3689. * elfcode.h: Include "libiberty.h".
  3690. * elflink.h (elf_link_add_object_symbols): Set
  3691. elf_dt_name (abfd) to basename of the bfd filename.
  3692. (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
  3693. of the bfd filename.
  3694. 2001-05-03 Andreas Jaeger <aj@suse.de>
  3695. * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
  3696. (elf_generic_info_to_howto_rel): Likewise.
  3697. * coff-alpha.c (reloc_nil): Likewise.
  3698. (alpha_ecoff_bad_format_hook): Likewise.
  3699. (alpha_adjust_reloc_out): Likewise.
  3700. (alpha_bfd_reloc_type_lookup): Likewise.
  3701. (alpha_convert_external_reloc): Likewise.
  3702. * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
  3703. (elf64_alpha_reloc_bad): Likewise.
  3704. (elf64_alpha_reloc_gpdisp): Likewise.
  3705. (elf64_alpha_bfd_reloc_type_lookup): Likewise.
  3706. (elf64_alpha_info_to_howto): Likewise.
  3707. (elf64_alpha_add_symbol_hook): Likewise.
  3708. (elf64_alpha_create_got_section): Likewise.
  3709. (elf64_alpha_is_local_label_name): Likewise.
  3710. (elf64_alpha_merge_ind_symbols): Likewise.
  3711. * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
  3712. (mips_elf64_get_reloc_upper_bound): Likewise.
  3713. * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
  3714. (nlm_alpha_get_public_offset): Likewise.
  3715. 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
  3716. * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
  3717. about overflow in R_OPENRISC_LO_16_IN_INSN and
  3718. R_OPENRISC_HI_16_IN_INSN.
  3719. 2001-04-30 H.J. Lu <hjl@gnu.org>
  3720. * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
  3721. only for ELF_LINK_FORCED_LOCAL.
  3722. * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
  3723. * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
  3724. * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
  3725. * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
  3726. if the symbol has hidden or internal visibility.
  3727. 2001-04-30 Alan Modra <amodra@one.net.au>
  3728. * elf32-hppa.c (final_link_relocate): Branch to .+8 for
  3729. calls to undefined weak symbols.
  3730. 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
  3731. * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
  3732. R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
  3733. 2001-04-27 Andreas Jaeger <aj@suse.de>
  3734. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
  3735. out handled entries.
  3736. (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
  3737. (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
  3738. (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
  3739. GOT32.
  3740. 2001-04-27 Sean McNeil <sean@mcneil.com>
  3741. * config.bfd: Add arm-vxworks target.
  3742. * coff-arm (coff_arm_relocate_section): Add in symbol value to
  3743. addend (fro VXworks targets).
  3744. 2001-04-26 H.J. Lu <hjl@gnu.org>
  3745. * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
  3746. valid.
  3747. 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
  3748. * bfd-in.h (bfd_cache_close): Declare newly exported function.
  3749. * bfd-in2.h: Regenerated.
  3750. 2001-04-24 Jakub Jelinek <jakub@redhat.com>
  3751. * merge.c (struct sec_merge_hash_entry): Add alignment field.
  3752. (struct sec_merge_hash): Remove alignment_power.
  3753. (sec_merge_hash_newfunc): Clear alignment.
  3754. (sec_merge_hash_lookup): Pass alignment as argument.
  3755. Use hashp->root.next, not hashp->next to walk the hash chain.
  3756. If a string already in the hashtable does not have required
  3757. alignment, create a new hashtable entry.
  3758. (sec_merge_init): Remove alignment_power argument.
  3759. (sec_merge_add): Add alignment argument.
  3760. (sec_merge_emit): Alignment is now a per-entity thing, not per
  3761. section.
  3762. (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
  3763. for proper alignment.
  3764. Pass alignment information to sec_merge_add.
  3765. 2001-04-24 Christian Groessler <cpg@aladdin.de>
  3766. * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
  3767. and R_REL16 reloc types; accept odd values for R_REL16 type
  3768. 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
  3769. * cpu-openrisc.c: New file.
  3770. * elf32-openrisc.c: Likewise.
  3771. * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
  3772. (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
  3773. (BFD32_BACKENDS): Add elf32-openrisc.lo.
  3774. (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
  3775. (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
  3776. * Makefile.in: Regenerated.
  3777. * config.bfd: (openrisc-*-elf): New target.
  3778. * configure.in (bfd_elf32_openrisc_vec): New vector.
  3779. * configure: Regenerated.
  3780. * libbfd.h: Regenerated.
  3781. * bfd-in2.h: Regenerated.
  3782. * reloc.c: Add OpenRISC relocations.
  3783. * targets.c (bfd_elf32_openrisc_vec): Declare.
  3784. (bfd_target_vect): Add bfd_elf32_openrisc_vec.
  3785. * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
  3786. (bfd_openrisc_arch): Declare.
  3787. (bfd_archures_list): Add bfd_openrisc_arch.
  3788. * elf.c (prep_headers): Add bfd_arch_openrisc.
  3789. 2001-04-23 Bo Thorsen <bo@suse.de>
  3790. * elf64-x86-64.c: Add c++ vtable hack.
  3791. Small whitespace and comment changes.
  3792. 2001-04-19 Andreas Jaeger <aj@suse.de>
  3793. * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
  3794. (elf64_x86_64_plt_entry): Likewise.
  3795. (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
  3796. (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
  3797. 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
  3798. * elf32-cris.c: Tweak comments related to dynamic linking.
  3799. (cris_elf_relocate_section): When not creating shared object, fill
  3800. in the .got table for any symbol not in the dynamic symbol table.
  3801. (elf_cris_finish_dynamic_symbol): When not creating shared object,
  3802. only emit a .got.rela reloc if the symbol is in the dynamic symbol
  3803. table.
  3804. (cris_elf_check_relocs): Use variable r_type in all places rather
  3805. than the original expression. Add default case in switch for
  3806. reloc types.
  3807. (elf_cris_size_dynamic_sections): Iterate over
  3808. elf_cris_discard_excess_program_dynamics when not creating shared
  3809. library.
  3810. (elf_cris_discard_excess_dso_dynamics): Renamed from
  3811. elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
  3812. (elf_cris_discard_excess_program_dynamics): New.
  3813. 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
  3814. * coffcode.h (coff_write_object_contents): Use
  3815. bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
  3816. 2001-04-14 H.J. Lu <hjl@gnu.org>
  3817. * bfd-in2.h: Regenerate.
  3818. 2001-04-14 Jakub Jelinek <jakub@redhat.com>
  3819. * section.c (STD_SECTION): Add entsize.
  3820. 2001-04-13 H.J. Lu <hjl@gnu.org>
  3821. * section.c (SEC_MERGE): Define new flag for merging.
  3822. (SEC_STRINGS): Likewise.
  3823. (entsize): New field.
  3824. 2001-04-13 Roger Sayle <roger@metaphorics.com>
  3825. * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
  3826. flag on pe-i386 targets.
  3827. 2001-04-13 Jakub Jelinek <jakub@redhat.com>
  3828. * libbfd-in.h (_bfd_merge_section): New.
  3829. (_bfd_write_merged_section): New.
  3830. (_bfd_merged_section_offset): New.
  3831. * libbfd.h: Rebuilt.
  3832. * linker.c (_bfd_generic_link_output_symbols): Handle
  3833. discard_sec_merge.
  3834. * aoutx.h (aout_link_write_symbols): Likewise.
  3835. * pdp11.c (aout_link_write_symbols): Likewise.
  3836. * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
  3837. (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
  3838. sections.
  3839. (elf_link_sec_merge_syms): New.
  3840. (elf_link_input_bfd): Call _bfd_merged_section_offset
  3841. and _bfd_write_merged_section.
  3842. Handle discard_sec_merge.
  3843. * elf-bfd.h (struct elf_link_hash_table): Add merge_info
  3844. field.
  3845. (struct bfd_elf_section_data): Likewise.
  3846. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
  3847. SEC_STRINGS section flags and entsize from their ELF counterparts.
  3848. (_bfd_elf_link_hash_table_init): Initialize merge_info.
  3849. (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
  3850. from their BFD counterparts.
  3851. * merge.c: New file.
  3852. * Makefile.am: Add strtab.lo.
  3853. * Makefile.in: Rebuilt.
  3854. 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
  3855. * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
  3856. only hide symbols marked STV_INTERNAL or STV_HIDDEN.
  3857. 2001-04-05 Steven J. Hill <sjhill@cotw.com>
  3858. * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
  3859. endian MIPS ELF target.
  3860. * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
  3861. MIPS ELF target.
  3862. * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
  3863. 64bit big endian MIPS ELF target.
  3864. (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
  3865. endian MIPS ELF target.
  3866. * configure: Regenerated.
  3867. * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
  3868. little endian targets.
  3869. (mips_elf_sym_is_global): Handle traditional targets.
  3870. * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
  3871. 64bit big endian MIPS ELF target.
  3872. (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
  3873. endian MIPS ELF target.
  3874. * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
  3875. and bfd_elf64_tradlittlemips_vec.
  3876. 2001-04-05 David Mosberger <davidm@hpl.hp.com>
  3877. * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
  3878. ordinary "progbits" section.
  3879. 2001-04-04 Alan Modra <alan@linuxcare.com.au>
  3880. * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
  3881. when -Bsymbolic causes a symbol to no longer need a .plt entry.
  3882. 2001-04-03 David Mosberger <davidm@hpl.hp.com>
  3883. * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
  3884. 2001-03-30 H.J. Lu <hjl@gnu.org>
  3885. * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
  3886. (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
  3887. 2001-03-26 H.J. Lu <hjl@gnu.org>
  3888. * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
  3889. if there are any relocations for generic ELF.
  3890. (bfd_elf32_bfd_link_add_symbols): Defined to
  3891. elf32_generic_link_add_symbols.
  3892. * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
  3893. if there are any relocations for generic ELF.
  3894. (bfd_elf64_bfd_link_add_symbols): Defined to
  3895. elf64_generic_link_add_symbols.
  3896. 2001-03-23 Nick Clifton <nickc@redhat.com>
  3897. * Makefile.am (BUILD_CFILES): New variable: List of C source
  3898. files created in build directory.
  3899. (BUILD_HFILES): New variable: List of header files created in
  3900. build directory.
  3901. (POTFILES): Delete.
  3902. (po/POTFILES.in): Replace rule with empty entry.
  3903. (po/SRC-POTFILES.in): New rule: Create a list of source files
  3904. in the source directory.
  3905. (po/BLD-POTFILES.in): New rule: Create a list of source files
  3906. in the build directory.
  3907. (MOSTLYCLEAN): Do not delete source files created in build
  3908. directory.
  3909. * Makefile.in: Regenerate.
  3910. * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
  3911. into po/Makefile.
  3912. * configure: Regenerate.
  3913. * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
  3914. and BLD_POTFILES.
  3915. Add .. to the search path when building bfd.pot.
  3916. Delete POTFILES when performing distclean.
  3917. Add comment describing why distclean is broken in maintainer mode.
  3918. * po/POTFILES.in: Delete.
  3919. * po/SRC-POTFILES.in: New file.
  3920. * po/BLD-POTFILES.in: New file.
  3921. * po/bfd.pot: Regenerate.
  3922. 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
  3923. * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
  3924. (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
  3925. elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
  3926. elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
  3927. elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
  3928. elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
  3929. functions.
  3930. (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
  3931. R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
  3932. <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
  3933. R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
  3934. R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
  3935. New HOWTO members for new relocs.
  3936. (cris_reloc_map): Map new relocs.
  3937. (ELF_DYNAMIC_INTERPRETER): Define.
  3938. (PLT_ENTRY_SIZE): Define.
  3939. (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
  3940. elf_cris_pic_plt_entry): New, PLT templates.
  3941. (struct elf_cris_pcrel_relocs_copied, struct
  3942. elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
  3943. (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
  3944. (cris_final_link_relocate): Check that 16-bit GOT relocs have
  3945. positive values. Adjust PCREL relocs to be relative to location
  3946. after relocation.
  3947. (cris_elf_relocate_section): Handle relocations to dynamic
  3948. objects. Handle new relocations. Call error handler when seeing
  3949. non-PIC relocation for read-only sections while generating shared
  3950. object.
  3951. (cris_elf_check_relocs): Set reference counts for GOT and PLT
  3952. entries.
  3953. (bfd_elf32_bfd_link_hash_table_create,
  3954. elf_backend_adjust_dynamic_symbol,
  3955. elf_backend_size_dynamic_sections,
  3956. elf_backend_finish_dynamic_symbol,
  3957. elf_backend_finish_dynamic_sections,
  3958. elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
  3959. elf_backend_hide_symbol, elf_backend_want_got_plt,
  3960. elf_backend_plt_readonly, elf_backend_want_plt_sym,
  3961. elf_backend_got_header_size, elf_backend_plt_header_size):
  3962. Define.
  3963. * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
  3964. BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
  3965. BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
  3966. BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
  3967. BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
  3968. BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
  3969. * bfd-in2.h, libbfd.h: Regenerate.
  3970. 2001-03-21 Diego Novillo <dnovillo@redhat.com>
  3971. (_bfd_mips_elf_relocate_section): Give a better error message when
  3972. a relocation is not recognized.
  3973. 2001-03-21 Alan Modra <alan@linuxcare.com.au>
  3974. * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
  3975. non-NULL before attempting to dereference.
  3976. 2001-03-20 H.J. Lu <hjl@gnu.org>
  3977. * configure.in: Remove the redundent AC_ARG_PROGRAM.
  3978. * configure: Rebuild.
  3979. 2001-03-20 Andreas Schwab <schwab@suse.de>
  3980. * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
  3981. relocation value when resolving a reference from a debugging
  3982. section.
  3983. 2001-03-16 Scott Thomason <SThomaso@hii.com>
  3984. * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
  3985. (xcoff64_swap_sym_out): Fix syntax errors.
  3986. 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
  3987. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
  3988. 2001-03-15 Alan Modra <alan@linuxcare.com.au>
  3989. * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
  3990. (hppa_link_hash_newfunc): Init it.
  3991. (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
  3992. section appears to be non-PIC.
  3993. (final_link_relocate): Likewise.
  3994. (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
  3995. possible candidate function, and set pic_call for those that will
  3996. only have a .plt entry for the PIC call stub.
  3997. (hppa_handle_PIC_calls): Set maybe_pic_call.
  3998. 2001-03-12 DJ Delorie <dj@redhat.com>
  3999. * elf32-sh.c (sh_elf_relocate_section): Only relocation
  4000. R_SH_DIR8WP* relocs if they're against external symbols, else
  4001. they're just for relaxing. Validate the reloc values.
  4002. 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
  4003. * binary.c (bfd_external_binary_architecture): Declare.
  4004. (binary_object_p): If bfd_external_binary_architecture is defined,
  4005. set the architecture to this string.
  4006. 2001-03-11 Philip Blundell <philb@gnu.org>
  4007. * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
  4008. entries that could serve as a definition for a weak symbol.
  4009. 2001-03-08 Nick Clifton <nickc@redhat.com>
  4010. * Most files: Update copyright notices using Perl script created
  4011. by Kevin Buettner <kevinb@redhat.com>.
  4012. 2001-03-07 Nick Clifton <nickc@redhat.com>
  4013. * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
  4014. prior patch on ! defined OLD_ARM_ABI.
  4015. 2001-03-07 Andreas Jaeger <aj@suse.de>
  4016. * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
  4017. some relocation values.
  4018. 2001-03-06 Nick Clifton <nickc@redhat.com>
  4019. * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
  4020. of offset in BLX(1) instruction.
  4021. * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
  4022. offset in BLX(1) instruction.
  4023. Fix formatting.
  4024. 2001-03-06 Nick Clifton <nickc@redhat.com>
  4025. * coff-arm.c (coff_arm_reloc_type_lookup): Add
  4026. BFD_RELOC_THUMB_PCREL_BLX.
  4027. 2001-03-06 Igor Shevlyakov <igor@windriver.com>
  4028. * archures.c (bfd_default_scan): Add Coldfire CPUs.
  4029. * bfd-in2.h: Regenerate.
  4030. * cpu-m68k.c: Add Coldfire CPUs for arch table.
  4031. * ieee.c (ieee_write_processor): Set proper id for
  4032. Coldfire CPUs.
  4033. 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
  4034. * configure.in: Add s390 target.
  4035. * configure: Regenerate.
  4036. 2001-02-28 Andreas Jaeger <aj@suse.de>
  4037. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
  4038. to addend.
  4039. 2001-02-28 Philip Blundell <pb@futuretv.com>
  4040. * elf32-arm.h: Update mentions of renamed EF_xx constants.
  4041. (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
  4042. 2001-02-27 H.J. Lu <hjl@gnu.org>
  4043. * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
  4044. abfd->tdata.aout_data == NULL.
  4045. 2001-02-27 Alan Modra <alan@linuxcare.com.au>
  4046. * elf32-hppa.c: Correct field selector in stub comments.
  4047. (clobber_millicode_symbols): Formatting fix.
  4048. * configure.in: Bump version to 2.11.90.
  4049. * configure: Regenerate.
  4050. * Makefile.am (CFILES): Rename to SOURCE_CFILES.
  4051. (CFILES): $SOURCE_CFILES + generated C files.
  4052. (POTFILES): Include $HFILES not $SOURCE_HFILES.
  4053. Run "make dep-am"
  4054. * Makefile.in: Regenerate.
  4055. * doc/Makefile.in: This too.
  4056. 2001-02-26 Timothy Wall <twall@cygnus.com>
  4057. * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
  4058. comments.
  4059. 2001-02-26 Nick Clifton <nickc@redhat.com>
  4060. * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
  4061. up, replacing multiple if statements with a switch.
  4062. (handle_COMDAT): New function.
  4063. 2001-02-26 H.J. Lu <hjl@gnu.org>
  4064. * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
  4065. a warning for section flags we do not handle instead of
  4066. aborting.
  4067. 2001-02-26 Andreas Jaeger <aj@suse.de>
  4068. * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
  4069. 2001-02-22 Timothy Wall <twall@cygnus.com>
  4070. * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
  4071. * configure.in: Add objects for elf64_ia64_aix vectors.
  4072. * configure: Regenerated.
  4073. * configure.host: Recognize ia64-*-aix*.
  4074. * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
  4075. for AIX. AIX5 requires most relocations to be dynamic (*all*
  4076. binaries are somewhat similar to shared libraries).
  4077. * targets.c: Add elf64_ia64_aix vectors.
  4078. 2001-02-21 David Mosberger <davidm@hpl.hp.com>
  4079. * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
  4080. C8 said "1" instead of "8". Clarify error string for IMM22:
  4081. "signed integer" instead of just "integer".
  4082. 2001-02-20 Andreas Jaeger <aj@suse.de>
  4083. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
  4084. PLT entries that could serve as a definition for a weak symbol.
  4085. 2001-02-19 Jakub Jelinek <jakub@redhat.com>
  4086. * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
  4087. entries that could serve as a definition for a weak symbol.
  4088. * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
  4089. 2001-02-18 David O'Brien <obrien@FreeBSD>
  4090. * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
  4091. FreeBSD/i386-CURRENT differently until I can figure out the needed
  4092. corefile changes.
  4093. * configure: Regenerate.
  4094. * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
  4095. FreeBSD/PowerPC, and FreeBSD/sparc64.
  4096. 2001-02-18 lars brinkhoff <lars@nocrew.org>
  4097. * Makefile.am: Add PDP-11 a.out target.
  4098. * config.bfd: Likewise.
  4099. * configure.in: Likewise.
  4100. * targets.c: Likewise.
  4101. * archures.c: Likewise.
  4102. * bfd-in2.h: Likewise. Add PDP-11 relocations.
  4103. * libbfd.h: Add PDP-11 relocations.
  4104. * reloc.c: Likewise.
  4105. * cpu-pdp11.c: New file.
  4106. * pdp11.c: New file.
  4107. * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
  4108. (GET_SWORD) [ARCH_SIZE==16]: Likewise.
  4109. (GET_SWORD) [ARCH_SIZE==16]: Likewise.
  4110. (PUT_WORD) [ARCH_SIZE==16]: Likewise.
  4111. (GET_MAGIC): New macro.
  4112. (PUT_MAGIC): Likewise.
  4113. * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
  4114. 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
  4115. * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
  4116. multiarch needs it).
  4117. 2001-02-18 H.J. Lu <hjl@gnu.org>
  4118. * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
  4119. index.
  4120. 2001-02-18 Kazu Hirata <kazu@hxi.com>
  4121. * vms-misc.c: Fix formatting.
  4122. 2001-02-16 Kazu Hirata <kazu@hxi.com>
  4123. * vms.c: Fix formatting.
  4124. 2001-02-14 H.J. Lu <hjl@gnu.org>
  4125. * elf.c (elf_find_function): New function.
  4126. (_bfd_elf_find_nearest_line): Call elf_find_function () to find
  4127. the file name and function name.
  4128. 2001-02-14 Nick Clifton <nickc@redhat.com>
  4129. * ecoff.c (bfd_debug_section): Update to initialise new fields in
  4130. asection structure.
  4131. * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
  4132. (BFD64_BACKENDS): Add pepigen.c
  4133. Add rules to create peigen.c and pepigen.c from peXXigen.c.
  4134. * Makefile.in: Regenerate.
  4135. * configure: Regenerate.
  4136. * po/POTFILES.in: Regenerate.
  4137. * po/bfd.pot: Regenerate.
  4138. 2001-02-14 H.J. Lu <hjl@gnu.org>
  4139. * libcoff-in.h (pe_tdata): Add members target_subsystem and
  4140. force_minimum_alignment.
  4141. 2001-02-14 Bo Thorsen <bo@suse.de>
  4142. * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
  4143. (elf64_86_64_size_info): Struct added to fix a problem
  4144. with the hashtable string entries.
  4145. (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
  4146. (elf64_x86_64_size_dynamic_sections): A FIXME removed.
  4147. (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
  4148. remove the FIXME for this.
  4149. (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
  4150. section. Also removed the FIXME for it.
  4151. (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
  4152. (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
  4153. (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
  4154. 2001-02-13 Richard Henderson <rth@redhat.com>
  4155. * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
  4156. and not user provided.
  4157. 2001-02-13 Kazu Hirata <kazu@hxi.com>
  4158. * vms.c (vms_print_symbol): Remove unreachable code.
  4159. * rs6000-core.c: Fix formatting.
  4160. 2001-02-13 David Mosberger <davidm@hpl.hp.com>
  4161. * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
  4162. as _bfd_XXi_only_swap_filehdr_out.
  4163. (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
  4164. pe->force_minimum_alignment to TRUE.
  4165. (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
  4166. PEI_TARGET_SUBSYSTEM.
  4167. (pe_print_private_bfd_data): Call
  4168. _bfd_XX_print_private_bfd_data_common() instead of
  4169. _bfd_pe_print_private_bfd_data_common().
  4170. (pe_bfd_copy_private_bfd_data): Call
  4171. _bfd_XX_bfd_copy_private_bfd_data_common() instead of
  4172. _bfd_pe_bfd_copy_private_bfd_data_common().
  4173. (coff_bfd_copy_private_section_data): Define as
  4174. _bfd_XX_bfd_copy_private_section_data instead of
  4175. _bfd_pe_bfd_copy_private_section_data.
  4176. (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
  4177. of a _bfd_pe_get_symbol_info.
  4178. * peigen.c: Delete.
  4179. * peXXigen.c: Renamed from peigen.c.
  4180. (COFF_WITH_XX): Define this macro (will get expanded into
  4181. COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
  4182. compiled as peigen.c or pepigen.c.
  4183. [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
  4184. define the canonical PEP structures and definitions.
  4185. (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
  4186. effect, enforce minimum file and section alignments. If
  4187. extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
  4188. pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
  4189. so, by default, this is a no-op).
  4190. * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
  4191. (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
  4192. _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
  4193. _bfd_pefoo if it's not defined. Use these macros to define
  4194. coff swap macros.
  4195. * libcoff.h (pe_tdata): Add members target_subsystem and
  4196. force_minimum_alignment.
  4197. * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
  4198. COFF_WITH_pep.
  4199. (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
  4200. * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
  4201. peigen.lo.
  4202. * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
  4203. (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
  4204. PEPAOUTHDR.
  4205. * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
  4206. (BFD64_BACKENDS_CFILES): Mention pepigen.c
  4207. (peigen.c): Add rule to generate from peXXigen.c.
  4208. (pepigen.c): Ditto.
  4209. (pepigen.lo): List dependencies for pepigen.lo.
  4210. 2001-02-13 Alan Modra <alan@linuxcare.com.au>
  4211. * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
  4212. $global$ referenced but not defined, set its value here.
  4213. 2001-02-09 Bo Thorsen <bo@suse.de>
  4214. * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
  4215. alignment to 3.
  4216. (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
  4217. and relocation.
  4218. (elf64_x86_64_relocate_section): Fix formatting.
  4219. (elf64_x86_64_relocate_section): Fix addend for relocation of
  4220. R_X86_64_(8|16|32|PC8|PC16|PC32).
  4221. 2001-02-12 Jan Hubicka <jh@suse.cz>
  4222. * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
  4223. 2001-02-11 H.J. Lu <hjl@gnu.org>
  4224. * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
  4225. alignment.
  4226. 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  4227. * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
  4228. from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
  4229. relocations against dynsym symbols.
  4230. * elf32-mips.c (elf_mips_howto_table): Fix the comment on
  4231. the R_MIPS_26 relocation.
  4232. (mips_elf_calculate_relocation): Use (p + 4) instead of p for
  4233. the R_MIPS_26 relocation.
  4234. (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
  4235. relocation.
  4236. * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
  4237. the R_MIPS_26 relocation.
  4238. (mips_elf64_howto_table_rela): Likewise.
  4239. * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
  4240. member to mark symbols that have non-CALL relocations against
  4241. them.
  4242. (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
  4243. (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
  4244. R_MIPS_GOT16.
  4245. (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
  4246. non-CALL relocation against it is encountered.
  4247. (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
  4248. (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
  4249. no_fn_stub is not set.
  4250. * elf32-mips.c (mips_elf_output_extsym): Get the output section
  4251. information from the real symbol for indirect ones.
  4252. Check no_fn_stub to find out if a symbol has a function stub
  4253. indeed.
  4254. 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  4255. * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
  4256. * Makefile.in: Regenerate.
  4257. 2001-02-09 David Mosberger <davidm@hpl.hp.com>
  4258. * elfxx-ia64.c (is_unwind_section_name): New function. Returns
  4259. true if section name is an unwind table section name.
  4260. (elfNN_ia64_additional_program_headers): Count each unwind section
  4261. separately.
  4262. (elfNN_ia64_modify_segment_map): Install one unwind program header
  4263. for each unwind separate section. Note: normally the linker
  4264. script merges the unwind sections that go into a single segment,
  4265. so this still generates at most one unwind program header per
  4266. segment.
  4267. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
  4268. name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
  4269. (elfNN_ia64_fake_sections): Mark sections with names that start
  4270. with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
  4271. unwind section.
  4272. * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
  4273. Use it to make sh_info in unwind section point to the text section
  4274. it applies to.
  4275. 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
  4276. * Makefile.am: Add linux target for S/390.
  4277. * archures.c: Likewise.
  4278. * bfd-in2.h: Likewise.
  4279. * config.bfd: Likewise.
  4280. * configure.in: Likewise.
  4281. * elf.c: Likewise.
  4282. * libbfd.h: Likewise.
  4283. * targets.c: Likewise.
  4284. * cpu-s390.c: New file.
  4285. * elf32-s390.c: New file.
  4286. * elf64-s390.c: New file.
  4287. 2001-02-09 Nick Clifton <nickc@redhat.com>
  4288. * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
  4289. ImageBase. This has already been done by coff_swap_hdr_in.
  4290. 2001-02-09 Jakub Jelinek <jakub@redhat.com>
  4291. * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
  4292. 2001-02-09 Jakub Jelinek <jakub@redhat.com>
  4293. * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
  4294. (sparc64_elf_relocate_section): Likewise.
  4295. 2001-02-09 Mark Kettenis <kettenis@gnu.org>
  4296. * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
  4297. similar to R_SPARC_32.
  4298. * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
  4299. 2001-02-08 H.J. Lu <hjl@gnu.org>
  4300. * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
  4301. relocation entries for weak definitions when building DSO with
  4302. -Bsymbolic.
  4303. 2001-02-08 Richard Henderson <rth@redhat.com>
  4304. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
  4305. before visibility. Locally defined protected symbols are not
  4306. dynamic.
  4307. 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
  4308. * config.bfd: Enable coff64 for rs6000-*. Patch from
  4309. <hzoli@austin.ibm.com>.
  4310. 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
  4311. * coffgen.c (coff_find_nearest_line): If stabs info is successfully
  4312. found, do not attempt to find dwarf2 info before returning.
  4313. 2001-02-07 Jakub Jelinek <jakub@redhat.com>
  4314. * elflink.h (is_global_symbol_definition): Rename to
  4315. is_global_data_symbol_definition and have it reject function
  4316. symbols.
  4317. (elf_link_is_defined_archive_symbol): Use renamed function.
  4318. 2001-02-07 Todd Vierling <tv@wasabisystems.com>
  4319. * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
  4320. * libbfd.h (bfd_target_vector): Likewise.
  4321. * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
  4322. make static; create pointer reference named bfd_target_vector.
  4323. (_bfd_target_vector_entries): Calculate this based on the array
  4324. typed _bfd_target_vector.
  4325. 2001-02-06 H.J. Lu <hjl@gnu.org>
  4326. * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
  4327. internal symbols are not dynamic.
  4328. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
  4329. 2001-02-06 Nick Clifton <nickc@redhat.com>
  4330. * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
  4331. that it will not be pulled into the list of files that make up
  4332. po/POTFILES.in.
  4333. * Makefile.in: Regenerate.
  4334. * po/bfd.pot: Regenerate.
  4335. 2001-02-06 H.J. Lu <hjl@gnu.org>
  4336. * peicode.h (coff_swap_filehdr_in): Remove the e_magic
  4337. checking.
  4338. (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
  4339. external_PEI_IMAGE_hdr.
  4340. 2001-02-06 Kazu Hirata <kazu@hxi.com>
  4341. * elf-m10200.c: Fix formatting.
  4342. 2001-02-04 Nick Clifton <nickc@redhat.com>
  4343. * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
  4344. rel, it will be handled later on.
  4345. 2001-02-02 Fred Fish <fnf@ninemoons.com>
  4346. * Makefile.in: Fix typo.
  4347. 2001-02-01 Kazu Hirata <kazu@hxi.com>
  4348. * elf-m10300.c: Fix formatting.
  4349. 2001-01-30 Alan Modra <alan@linuxcare.com.au>
  4350. * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
  4351. (elf_backend_get_symbol_type): Define.
  4352. (elf64_hppa_object_p): Set architecture and machine from elf
  4353. header flags.
  4354. 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
  4355. * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
  4356. before mdebug.
  4357. 2001-01-26 Richard Henderson <rth@redhat.com>
  4358. * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
  4359. for non-default visibility.
  4360. * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
  4361. delete ugly macro and replace with pretty function.
  4362. 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
  4363. * coff-go32.c: Update copyright.
  4364. * coff-stgo32.c: Likewise.
  4365. * coff-go32.c (COFF_LONG_FILENAMES): Define.
  4366. * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
  4367. * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
  4368. * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  4369. 2001-01-25 Kazu Hirata <kazu@hxi.com>
  4370. * bfd-in2.h: Rebuild.
  4371. * libbfd.h: Likewise.
  4372. 2001-01-23 H.J. Lu <hjl@gnu.org>
  4373. * bfd-in2.h: Rebuild.
  4374. 2001-01-23 H.J. Lu <hjl@gnu.org>
  4375. * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
  4376. is NULL or PRIV(vms_rec) is outside of the buffer.
  4377. 2001-01-23 Kazu Hirata <kazu@hxi.com>
  4378. * coff64-rs6000.c: Fix formatting.
  4379. * coff-arm.c: Likewise.
  4380. * coffgen.c: Likewise.
  4381. * cofflink.c: Likewise.
  4382. * coff-mcore.c: Likewise.
  4383. * coff-mips.c: Likewise.
  4384. * coff-pmac.c: Likewise.
  4385. * coff-ppc.c: Likewise.
  4386. * coff-rs6000.c: Likewise.
  4387. * elf32.c: Likewise.
  4388. * elf32-fr30.c: Likewise.
  4389. * elf32-i370.c: Likewise.
  4390. * elf32-i860.c: Likewise.
  4391. * elf32-m32r.c: Likewise.
  4392. * elf32-m68k.c: Likewise.
  4393. * elf32-mcore.c: Likewise.
  4394. * elf32-ppc.c: Likewise.
  4395. * elf32-sh.c: Likewise.
  4396. * elf32-v850.c: Likewise.
  4397. * elf64-alpha.c: Likewise.
  4398. * elf64-sparc.c: Likewise.
  4399. * elflink.c: Likewise.
  4400. * elflink.h: Likewise.
  4401. * elf-m10200.c: Likewise.
  4402. * elf-m10300.c: Likewise.
  4403. * elfxx-ia64.c: Likewise.
  4404. * aoutx.h: Fix formatting.
  4405. * bfd.c: Likewise.
  4406. * bfd-in2.h: Likewise.
  4407. * bfd-in.h: Likewise.
  4408. * cpu-i386.c: Likewise.
  4409. * cpu-m68hc11.c: Likewise.
  4410. * dwarf2.c: Likewise.
  4411. * elf64-x86-64.c: Likewise.
  4412. * format.c: Likewise.
  4413. * freebsd.h: Likewise.
  4414. * hash.c: Likewise.
  4415. * hp300hpux.c: Likewise.
  4416. * hppabsd-core.c: Likewise.
  4417. * hpux-core.c: Likewise.
  4418. 2001-01-22 Bo Thorsen <bo@suse.de>
  4419. * elf64-x86-64.c: Added PIC support for X86-64.
  4420. (elf64_x86_64_link_hash_newfunc): Function added.
  4421. (elf64_x86_64_link_hash_table_create): Likewise.
  4422. (elf64_x86_64_check_relocs): Likewise.
  4423. (elf64_x86_64_gc_mark_hook): Likewise.
  4424. (elf64_x86_64_gc_sweep_hook): Likewise.
  4425. (elf64_x86_64_adjust_dynamic_symbol): Likewise.
  4426. (elf64_x86_64_size_dynamic_sections): Likewise.
  4427. (elf64_x86_64_discard_copies): Likewise.
  4428. (elf64_x86_64_finish_dynamic_symbol): Likewise.
  4429. (elf64_x86_64_finish_dynamic_sections): Likewise.
  4430. (elf64_x86_64_relocate_section): Add relocation of PIC sections.
  4431. 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  4432. * Makefile.am (install-data-local): Make use of $(DESTDIR).
  4433. * Makefile.in: Regenerate.
  4434. 2001-01-21 Kazu Hirata <kazu@hxi.com>
  4435. * coff-a29k.c: Fix formatting.
  4436. 2001-01-19 H.J. Lu <hjl@gnu.org>
  4437. * elf32-i386.c (elf_i386_check_relocs): Report files with bad
  4438. relocation section names.
  4439. (elf_i386_relocate_section): Report files with bad relocation
  4440. section names and return false.
  4441. 2001-01-17 Bo Thorsen <bo@suse.de>
  4442. * targets.c: Alphabetize list of xvecs.
  4443. 2001-01-14 Alan Modra <alan@linuxcare.com.au>
  4444. * config.bfd: Add linux target variant for elfxx-hppa.
  4445. * configure.in: Recognize bfd_elf32_hppa_linux_vec and
  4446. bfd_elf64_hppa_linux_vec.
  4447. * configure: Regenerate.
  4448. * elf64-hppa.c: Include elf64-target.h again to support linux
  4449. target variant.
  4450. (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
  4451. * elf32-hppa.c: Include elf32-target.h again to support linux
  4452. target variant.
  4453. (elf32_hppa_post_process_headers): New function.
  4454. (elf_backend_post_process_headers): Define.
  4455. * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
  4456. bfd_elf32_hppa_linux_vec.
  4457. * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
  4458. and data_segment_base fields.
  4459. (elf32_hppa_link_hash_table_create ): Init them.
  4460. (elf32_hppa_check_relocs): Update comments.
  4461. (hppa_record_segment_addr): New function.
  4462. (elf32_hppa_relocate_section): Call it.
  4463. (final_link_relocate): Handle R_PARISC_SEGREL32.
  4464. (elf32_hppa_final_link): New function.
  4465. (bfd_elf32_bfd_final_link): Define to call it.
  4466. (hppa_unwind_entry_compare): New function.
  4467. * cache.c (bfd_open_file): Create files in write+read mode.
  4468. * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
  4469. SEGREL32 and numerous other relocs. Change duplicate
  4470. R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
  4471. * opncls.c (bfd_fdopenr): Add parens like the comment says around
  4472. O_ACCMODE.
  4473. * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
  4474. .plt entries for DT_INIT and DT_FINI.
  4475. (elf32_hppa_finish_dynamic_sections): Remove special handling of
  4476. DT_INIT and DT_FINI.
  4477. * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
  4478. offsets for stub .plt access if wide mode. Check offset in range.
  4479. 2001-01-13 Nick Clifton <nickc@redhat.com>
  4480. * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
  4481. line.
  4482. * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
  4483. line.
  4484. 2001-01-12 Alan Modra <alan@linuxcare.com.au>
  4485. * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
  4486. * configure: Regenerate.
  4487. 2001-01-11 Peter Targett <peter.targett@arccores.com>
  4488. * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
  4489. bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
  4490. * cpu-arc.c (arch_info_struct): Add entries for variants.
  4491. (bfd_arc_arch) Set default to bfd_mach_arc_5.
  4492. (arc_get_mach) Don't assume machine names prefixed arc- before
  4493. testing.
  4494. * elf32-arc.c (arc_elf_object_p): Set machine number based on new
  4495. selections.
  4496. (arc_elf_final_write_processing) Likewise.
  4497. (ELF_MACHINE_CODE) Use EM_ARC.
  4498. 2001-01-10 Nick Clifton <nickc@redhat.com>
  4499. * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
  4500. 2001-01-07 Philip Blundell <philb@gnu.org>
  4501. * README: Replace `bug-gnu-utils@gnu.org' with
  4502. `bug-binutils@gnu.org'.
  4503. 2001-01-04 Kazu Hirata <kazu@hxi.com>
  4504. * som.c: Fix formatting.
  4505. 2001-01-03 Kazu Hirata <kazu@hxi.com>
  4506. * ecoffswap.h: Fix formatting.
  4507. * elf-bfd.h: Likewise.
  4508. * elfarm-nabi.c: Likewise.
  4509. * elfarm-oabi.c: Likewise.
  4510. * elfcode.h: Likewise.
  4511. * elfcore.h: Likewise.
  4512. * elflink.c: Likewise.
  4513. * elflink.h: Likewise.
  4514. * elfxx-ia64.c: Likewise.
  4515. * elfxx-target.h: Likewise.
  4516. * libbfd.c: Likewise
  4517. * linker.c: Likewise.
  4518. * lynx-core.c: Likewise.
  4519. 2001-01-02 Kazu Hirata <kazu@hxi.com>
  4520. * pc532-mach.c: Fix formatting.
  4521. * pe-arm.c: Likewise.
  4522. * pe-i386.c: Likewise.
  4523. * pe-mips.c: Likewise.
  4524. * pe-ppc.c: Likewise.
  4525. * pe-sh.c: Likewise.
  4526. * pei-mips.c: Likewise.
  4527. * pei-sh.c: Likewise.
  4528. * peicode.h: Likewise.
  4529. * ppcboot.c: Likewise.
  4530. * ptrace-core.c: Likewise.
  4531. 2001-01-01 Kazu Hirata <kazu@hxi.com>
  4532. * reloc.c: Fix formatting.
  4533. * riscix.c: Likewise.
  4534. * rs6000-core.c: Likewise.
  4535. * xcoff-target.h: Likewise.
  4536. 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
  4537. * elfcode.h (elf_object_p): Also restore the bfd mach field on
  4538. error, by calling bfd_default_set_arch_mach with incoming
  4539. values.
  4540. 2000-12-26 Kazu Hirata <kazu@hxi.com>
  4541. * vaxnetbsd.c: Fix formatting.
  4542. * versados.c: Likewise.
  4543. * vms-gsd.c: Likewise.
  4544. * vms-hdr.c: Likewise.
  4545. * vms-misc.c: Likewise.
  4546. 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
  4547. * archive.c (coff_write_armap): Don't write more than symbol_count
  4548. `archive_member_file_ptr's.
  4549. 2000-12-25 Kazu Hirata <kazu@hxi.com>
  4550. * vms-tir.c: Fix formatting.
  4551. 2000-12-23 Kazu Hirata <kazu@hxi.com>
  4552. * vms.c: Fix formatting.
  4553. * vms.h: Likewise.
  4554. 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
  4555. * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
  4556. * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
  4557. * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
  4558. arithmetic.
  4559. * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
  4560. * coffcode.h (styp_to_sec_flags): Add empty statement after label.
  4561. 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
  4562. * libbfd.c (bfd_get_bits): Added
  4563. (bfd_put_bits): Likewise
  4564. * bfd-in.h: Declared the above.
  4565. * bfd-in2.h: Regenerated.
  4566. 2000-12-20 Kazu Hirata <kazu@hxi.com>
  4567. * targets.c: Fix formatting.
  4568. * tekhex.c: Likewise.
  4569. * trad-core.c: Likewise.
  4570. 2000-12-19 Kazu Hirata <kazu@hxi.com>
  4571. * sco5-core.c: Fix formatting.
  4572. * section.c: Likewise.
  4573. * sparclinux.c: Likewise.
  4574. * sparclynx.c: Likewise.
  4575. * sparcnetbsd.c: Likewise.
  4576. * srec.c: Likewise.
  4577. * stabs.c: Likewise.
  4578. * stab-syms.c: Likewise.
  4579. * sunos.c: Likewise.
  4580. * syms.c: Likewise.
  4581. * sysdep.h: Likewise.
  4582. 2000-12-18 Nick Clifton <nickc@redhat.com>
  4583. * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
  4584. defined.
  4585. * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
  4586. * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
  4587. 2000-12-18 Nick Clifton <nickc@redhat.com>
  4588. * vms-misc.c (_bfd_vms_get_record): Add default case to
  4589. file_format switch.
  4590. 2000-12-15 Miloslav Trmac <mitr@volny.cz>
  4591. * elfcore.h (elf_core_file_p): Move to the start of the program
  4592. headers before attempting to read them.
  4593. 2000-12-14 Kazu Hirata <kazu@hxi.com>
  4594. * peigen.c: Fix formatting.
  4595. * som.c: Likewise.
  4596. * som.h: Likewise.
  4597. 2000-12-13 Kazu Hirata <kazu@hxi.com>
  4598. * peigen.c: Fix formatting.
  4599. 2000-12-12 Jim Wilson <wilson@redhat.com>
  4600. * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
  4601. 2000-12-08 Mark Salter <msalter@redhat.com>
  4602. * binary.c (binary_set_section_contents): Ignore sections
  4603. with zero size.
  4604. 2000-12-12 Kazu Hirata <kazu@hxi.com>
  4605. * m68klinux.c: Fix formatting.
  4606. * m68knetbsd.c: Likewise.
  4607. * mipsbsd.c: Likewise.
  4608. * netbsd-core.c: Likewise.
  4609. * netbsd.h: Likewise.
  4610. * newsos3.c: Likewise.
  4611. * nlm32-alpha.c: Likewise.
  4612. * nlm32-i386.c: Likewise.
  4613. * nlm32-ppc.c: Likewise.
  4614. * nlm32-sparc.c: Likewise.
  4615. * nlmcode.h: Likewise.
  4616. * nlmswap.h: Likewise.
  4617. * nlm-target.h: Likewise.
  4618. * ns32knetbsd.c: Likewise.
  4619. 2000-12-10 Fred Fish <fnf@be.com>
  4620. * elflink.h (elf_link_output_extsym): Don't complain about undefined
  4621. symbols in shared objects if allow_shlib_undefined is true.
  4622. 2000-12-12 Nick Clifton <nickc@redhat.com>
  4623. * cpu-sh.c: Fix formattng.
  4624. * elf.c: Fix formattng.
  4625. * elf32-mips.c: Fix formattng.
  4626. * elf32-sh.c: Fix formattng.
  4627. * elf64-alpha.c: Fix formattng.
  4628. 2000-12-09 Nick Clifton <nickc@redhat.com>
  4629. * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
  4630. dwarf2_find_line_info as last parameter to invocation of
  4631. _bfd_dwarf2_find_nearest_line.
  4632. * elf32-arm.h (elf32_arm_find_nearest_line): Pass
  4633. dwarf2_find_line_info as last parameter to invocation of
  4634. _bfd_dwarf2_find_nearest_line.
  4635. 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
  4636. * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
  4637. (BFD_LIBS): ...to here.
  4638. (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
  4639. (BFD_LIBS_CFILES): ...to here.
  4640. * Makefile.in: Regenerate.
  4641. * configure.in: Remove dwarf.lo from the elf shell variable.
  4642. * configure: Regenerate.
  4643. * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
  4644. * libcoff.h: Regenerate.
  4645. * coffgen.c (coff_find_nearest_line): Call
  4646. _bfd_dwarf2_find_nearest_line.
  4647. * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
  4648. accordingly.
  4649. (read_abbrevs): Likewise
  4650. (decode_line_info): Likewise.
  4651. (parse_comp_unit): Likewise.
  4652. (comp_unit_find_nearest_line): Likewise.
  4653. * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
  4654. * libbfd.h: Regenerate.
  4655. * elf.c (_bfd_elf_find_nearest_line): Update call.
  4656. * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
  4657. * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
  4658. * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
  4659. (sec_to_styp_flags): Use them. Handle DWARF2 sections.
  4660. (styp_to_sec_flags): Handle DWARF2 sections.
  4661. * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
  4662. to _bfd_find_nearest_line.
  4663. * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
  4664. call to _bfd_find_nearest_line.
  4665. 2000-12-08 Kazu Hirata <kazu@hxi.com>
  4666. * coffgen.c: Fix formatting.
  4667. * elf-m10300.c: Likewise.
  4668. * elf32-i386.c: Likewise.
  4669. * elf32-i960.c: Likewise.
  4670. * elf32-m68k.c: Likewise.
  4671. * elf32-mcore.c: Likewise.
  4672. * elf32-ppc.c: Likewise.
  4673. * elf32-sh.c: Likewise.
  4674. * elf32-sparc.c: Likewise.
  4675. * elf32-v850.c: Likewise.
  4676. * elf64-alpha.c: Likewise.
  4677. * elf64-hppa.c: Likewise.
  4678. * elf64-mips.c: Likewise.
  4679. * elf64-sparc.c: Likewise.
  4680. 2000-12-07 Kazu Hirata <kazu@hxi.com>
  4681. * elf32-ppc.c: Fix formatting.
  4682. * elf64-x86-64.c: Likewise.
  4683. 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
  4684. From Ralf Baechle <ralf@gnu.org>
  4685. * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
  4686. BFDs containing no sections or empty .text, .data or .bss sections
  4687. to be merged, regardless of their flags.
  4688. 2000-12-06 Kazu Hirata <kazu@hxi.com>
  4689. * elf32-m32r.c: Fix formatting.
  4690. * elf32-m68hc11.c: Likewise.
  4691. * elf32-m68hc12.c: Likewise.
  4692. * elf32-m68k.c: Likewise.
  4693. * elf32-mcore.c: Likewise.
  4694. * elf32-pj.c: Likewise.
  4695. * elf32-ppc.c: Likewise.
  4696. 2000-12-05 Kazu Hirata <kazu@hxi.com>
  4697. * elf32-fr30.c: Fix formatting.
  4698. * elf32-hppa.c: Likewise.
  4699. * elf32-i370.c: Likewise.
  4700. * elf32-i386.c: Likewise.
  4701. * elf32-i860.c: Likewise.
  4702. * elf32-i960.c: Likewise.
  4703. 2000-12-03 Kazu Hirata <kazu@hxi.com>
  4704. * elf32-arm.h: Fix formatting.
  4705. * elf32-avr.c: Likewise.
  4706. * elf32-cris.c: Likewise.
  4707. * elf32-d10v.c: Likewise.
  4708. * elf32-d30v.c: Likewise.
  4709. * elf-hppa.h: Likewise.
  4710. * elf-m10200.c: Likewise.
  4711. * elf-m10300.c: Likewise.
  4712. 2000-12-01 Chris Demetriou <cgd@sibyte.com>
  4713. * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
  4714. bfd_mach_mips32_4k. Update FIXME comment.
  4715. * archures.c (bfd_mach_mips32): New constant.
  4716. (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
  4717. the latter, renumber it.
  4718. * bfd-in2.h (bfd_mach_mips32): New constant.
  4719. (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
  4720. the latter, renumber it.
  4721. * cpu-mips.c (I_mips32): New constant.
  4722. (I_mips4K, I_mips32_4k): Rename the former to the latter.
  4723. (arch_info_struct): Add bfd_mach_mips32 entry, replace
  4724. bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
  4725. * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
  4726. (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
  4727. with E_MIPS_MACH_MIPS32_4K.
  4728. (_bfd_mips_elf_final_write_processing): Replace
  4729. bfd_mach_mips4K with bfd_mach_mips32_4k case, add
  4730. bfd_mach_mips32 case.
  4731. (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
  4732. comparison with support for MIPS32.
  4733. (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
  4734. MIPS32.
  4735. * aoutx.h (NAME(aout,machine_type)): Add cases for
  4736. bfd_mach_mips5 and bfd_mach_mips64.
  4737. * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
  4738. * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
  4739. * cpu_mips.c (I_mips5, I_mips64): New definitions.
  4740. (arch_info_struct): Add entries for bfd_mach_mips5 and
  4741. bfd_mach_mips64.
  4742. * elf32-mips.c (elf_mips_isa, elf_mips_mach,
  4743. _bfd_mips_elf_print_private_bfd_data): Add cases for
  4744. E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
  4745. (_bfd_mips_elf_final_write_processing): Add cases for
  4746. bfd_mach_mips5 and bfd_mach_mips64.
  4747. * aoutx.h (NAME(aout,machine_type)): Add a
  4748. bfd_mach_mips_sb1 case.
  4749. * archures.c (bfd_mach_mips_sb1): New constant.
  4750. * bfd-in2.h (bfd_mach_mips_sb1): New constant.
  4751. * cpu-mips.c (I_sb1): New constant.
  4752. (arch_info_struct): Add entry for bfd_mach_mips_sb1.
  4753. * elf32-mips.c (elf_mips_mach): Add case for
  4754. E_MIPS_MACH_SB1.
  4755. (_bfd_mips_elf_final_write_processing): Add case for
  4756. bfd_mach_mips_sb1.
  4757. 2000-12-01 Joel Sherrill <joel@OARcorp.com>
  4758. * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
  4759. (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
  4760. (sparc*-*-rtems*): Switched from a.out to ELF.
  4761. 2000-11-30 Jan Hubicka <jh@suse.cz>
  4762. * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
  4763. BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
  4764. (elf64-x86-64.lo): Add dependencies.
  4765. * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
  4766. bfd_mach_x86_64_intel_syntax.
  4767. * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
  4768. * config.bfd (x86_64): Add.
  4769. * configure.in: Add support for bfd_elf64_x86_64_vec.
  4770. * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
  4771. (bfd_i386_arch, i8086_ar): Link in.
  4772. * elf64-x86-64.c: New file.
  4773. * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
  4774. * targets.c (bfd_elf64_x86_64_vec): Add.
  4775. (bfd_target_vect): Add bfd_elf64_x86_64_vec.
  4776. 2000-11-30 Kazu Hirata <kazu@hxi.com>
  4777. * xcofflink.c: Fix formatting.
  4778. 2000-11-28 Kazu Hirata <kazu@hxi.com>
  4779. * aoutx.h: Fix formatting.
  4780. * bfd-in.h: Likewise.
  4781. * bfd-in2.h: Likewise.
  4782. * cache.c: Likewise.
  4783. * cisco-core.c: Likewise.
  4784. * coff64-rs6000.c: Likewise.
  4785. * coffcode.h: Likewise.
  4786. * coffswap.h: Likewise.
  4787. * corefile.c: Likewise.
  4788. * elf32-mips.c: Likewise.
  4789. 2000-11-27 Kazu Hirata <kazu@hxi.com>
  4790. * aout-adobe.c: Fix formatting.
  4791. * coff64-rs6000.c: Likewise.
  4792. * coffgen.c: Likewise.
  4793. * cofflink.c: Likewise.
  4794. 2000-11-27 Philip Blundell <pb@futuretv.com>
  4795. * libcoff-in.h (coff_tdata): Add `strings_written' flag.
  4796. (obj_coff_strings_written): New accessor macro for above.
  4797. * libcoff.h: Regenerate.
  4798. * cofflink.c (_bfd_coff_final_link): Say that we wrote the
  4799. strings.
  4800. * coffcode.h (coff_write_object_contents): No need to write out
  4801. the string table if it's already been done.
  4802. 2000-11-22 Philip Blundell <pb@futuretv.com>
  4803. * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
  4804. weak undefined symbols.
  4805. 2000-11-24 Nick Clifton <nickc@redhat.com>
  4806. * archures.c (bfd_mach_arm_5TE): Define.
  4807. (bfd_mach_arm+XScale): Define.
  4808. * bfd-in2.h: Regenerate.
  4809. * coff-arm.c (coff_arm_reloc_type_lookup): Accept
  4810. BFD_RELOC_ARM_PCREL_BLX.
  4811. * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
  4812. XScale machine numbers.
  4813. * config.bfd (xscale-elf): Add target.
  4814. (xscale-coff): Add target.
  4815. * cpu-arm.c: Add xscale machine name.
  4816. Add v5t, v5te and XScale machine numbers.
  4817. 2000-11-23 Kazu Hirata <kazu@hxi.com>
  4818. * aix386-core.c: Fix formatting.
  4819. 2000-11-22 Jim Wilson <wilson@redhat.com>
  4820. * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
  4821. (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
  4822. * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
  4823. (ins_imms_scaled): Initialize sign_bit at function entry.
  4824. (elf64_ia64_operands): Add missing initializers.
  4825. * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
  4826. elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
  4827. elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
  4828. elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
  4829. elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
  4830. parameters.
  4831. (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
  4832. and free_extsyms at function entry.
  4833. (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
  4834. (elfNN_ia64_create_dynamic_sections): Delete unused local h.
  4835. (get_got): Delete unused local srel.
  4836. (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
  4837. (elfNN_ia64_relocate_section): Delete unused local dynindx.
  4838. 2000-11-21 Kazu Hirata <kazu@hxi.com>
  4839. * coff-a29k.c: Fix formatting.
  4840. * coff-h8500.c: Likewise.
  4841. * coff-i960.c: Likewise.
  4842. * coff-ppc.c: Likewise.
  4843. * coff-rs6000.c: Likewise.
  4844. * coff-stgo32.c: Likewise.
  4845. * coff-tic54x.c: Likewise.
  4846. * coff-w65.c: Likewise.
  4847. * cpu-h8500.c: Likewise.
  4848. * cpu-hppa.c: Likewise.
  4849. * cpu-ns32k.c: Likewise.
  4850. * ecoff.c: Likewise.
  4851. * ecofflink.c: Likewise.
  4852. 2000-11-21 Nick Clifton <nickc@redhat.com>
  4853. * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
  4854. remove possibility of infinite loop.
  4855. 2000-11-20 Kazu Hirata <kazu@hxi.com>
  4856. * aix386-core.c: Fix formatting.
  4857. * aout-adobe.c: Likewise.
  4858. * aout-arm.c: Likewise.
  4859. * aout-encap.c: Likewise.
  4860. * aout-ns32k.c: Likewise.
  4861. * aout-target.h: Likewise.
  4862. * aout-tic30.c: Likewise.
  4863. * aoutf1.h: Likewise.
  4864. * aoutx.h: Likewise.
  4865. * archive.c: Likewise.
  4866. * bfd-in.h: Likewise.
  4867. * bfd-in2.h: Likewise.
  4868. * bfd.c: Likewise.
  4869. * bout.c: Likewise.
  4870. 2000-11-17 H.J. Lu <hjl@gnu.org>
  4871. * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
  4872. pltoff entries for DT_INIT and DT_FINI.
  4873. (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
  4874. (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
  4875. entries.
  4876. 2000-11-16 Richard Henderson <rth@redhat.com>
  4877. * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
  4878. (allocate_dynrel_entries): Likewise.
  4879. (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
  4880. (set_pltoff_entry): Likewise.
  4881. (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
  4882. (elfNN_ia64_reloc_type_lookup): Likewise.
  4883. (elfNN_ia64_install_value): Likewise.
  4884. (elfNN_ia64_relocate_section): Likewise.
  4885. * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
  4886. (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
  4887. 2000-11-16 Kazu Hirata <kazu@hxi.com>
  4888. * cpu-a29k.c: Fix formatting.
  4889. * cpu-alpha.c: Likewise.
  4890. * cpu-arm.c: Likewise.
  4891. * cpu-avr.c: Likewise.
  4892. * cpu-d10v.c: Likewise.
  4893. * cpu-h8500.c: Likewise.
  4894. * cpu-hppa.c: Likewise.
  4895. * cpu-i370.c: Likewise.
  4896. * cpu-i386.c: Likewise.
  4897. * cpu-i960.c: Likewise.
  4898. * cpu-ia64-opc.c: Likewise.
  4899. * cpu-ia64.c: Likewise.
  4900. * cpu-m32r.c: Likewise.
  4901. * cpu-m68hc11.c: Likewise.
  4902. * cpu-m68hc12.c: Likewise.
  4903. * cpu-m68k.c: Likewise.
  4904. * cpu-m88k.c: Likewise.
  4905. * cpu-mips.c: Likewise.
  4906. * cpu-ns32k.c: Likewise.
  4907. * cpu-pj.c: Likewise.
  4908. * cpu-powerpc.c: Likewise.
  4909. * cpu-sh.c: Likewise.
  4910. * cpu-sparc.c: Likewise.
  4911. * cpu-tic54x.c: Likewise.
  4912. * cpu-v850.c: Likewise.
  4913. * cpu-vax.c: Likewise.
  4914. * cpu-w65.c: Likewise.
  4915. * cpu-we32k.c: Likewise.
  4916. * cpu-z8k.c: Likewise.
  4917. * dwarf1.c: Likewise.
  4918. * dwarf2.c: Likewise.
  4919. 2000-11-15 Kazu Hirata <kazu@hxi.com>
  4920. * coff-arm.c: Fix formatting.
  4921. * coff-ppc.c: Likewise.
  4922. * coff-rs6000.c: Likewise.
  4923. * coff-sh.c: Likewise.
  4924. * coff-sparc.c: Likewise.
  4925. * coff-tic30.c: Likewise.
  4926. * coff-tic54x.c: Likewise.
  4927. * coff-tic80.c: Likewise.
  4928. * coff-w65.c: Likewise.
  4929. * coff-we32k.c: Likewise.
  4930. * coff-z8k.c: Likewise.
  4931. 2000-11-15 Richard Henderson <rth@redhat.com>
  4932. * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
  4933. section with the same ALLOC|LOAD flags as the source section.
  4934. 2000-11-14 Jakub Jelinek <jakub@redhat.com>
  4935. * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
  4936. by STO_ALPHA constants.
  4937. 2000-11-14 Kazu Hirata <kazu@hxi.com>
  4938. * coff-pmac.c: Fix formatting.
  4939. * coff-ppc.c: Likewise.
  4940. 2000-11-13 H.J. Lu <hjl@gnu.org>
  4941. * elflink.h (elf_link_add_object_symbols): Also add indirect
  4942. symbols for common symbols with the default version.
  4943. 2000-11-09 Philip Blundell <pb@futuretv.com>
  4944. * section.c (STD_SECTION): Set gc_mark flag.
  4945. 2000-11-11 Kazu Hirata <kazu@hxi.com>
  4946. * coff-i960.c: Likewise.
  4947. * coff-m68k.c: Likewise.
  4948. * coff-m88k.c: Likewise.
  4949. * coff-mcore.c: Likewise.
  4950. * coff-mips.c: Likewise.
  4951. 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
  4952. * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
  4953. 2000-11-10 Kazu Hirata <kazu@hxi.com>
  4954. * coff-h8300.c: Fix formatting.
  4955. * coff-h8500.c: Likewise.
  4956. * coff-i386.c: Likewise.
  4957. * coff-i860.c: Likewise.
  4958. * coff-i960.c: Likewise.
  4959. * coff-ia64.c: Likewise.
  4960. 2000-11-09 Kazu Hirata <kazu@hxi.com>
  4961. * archive.c: Fix formatting.
  4962. * archures.c: Likewise.
  4963. 2000-11-07 Richard Henderson <rth@redhat.com>
  4964. * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
  4965. Set it before bfd_elf64_bfd_final_link call. Use it after the call.
  4966. * section.c (bfd_set_section_contents): Call memcpy if
  4967. section->contents set and location not equal to contents plus offset.
  4968. 2000-11-08 Kazu Hirata <kazu@hxi.com>
  4969. * bfd-in.h: Fix formatting.
  4970. * bfd-in2.h: Likewise.
  4971. * bfd.c: Likewise.
  4972. * binary.c: Likewise.
  4973. * bout.c: Likewise.
  4974. * coff-a29k.c: Likewise.
  4975. * coff-alpha.c: Likewise.
  4976. * coff-apollo.c: Likewise.
  4977. * coff-aux.c: Likewise.
  4978. 2000-11-07 Kazu Hirata <kazu@hxi.com>
  4979. * aix386-core.c: Fix formatting.
  4980. * aoutf1.h: Likewise.
  4981. * aoutx.h: Likewise.
  4982. * archures.c: Likewise.
  4983. * armnetbsd.c: Likewise.
  4984. 2000-11-07 Alan Modra <alan@linuxcare.com.au>
  4985. * coff-h8300.c (special): Adjust reloc address.
  4986. 2000-11-06 Steve Ellcey <sje@cup.hp.com>
  4987. * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
  4988. to differentiate elf32 and elf64 on ia64.
  4989. * bfd-in2.h: Regenerate.
  4990. * config.bfd: Add target for "ia64*-*-hpux*".
  4991. * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
  4992. * configure: Regenerate.
  4993. * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
  4994. * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
  4995. * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
  4996. from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
  4997. * Makefile.in: Regnerate.
  4998. * elf64-ia64.c: Deleted.
  4999. * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
  5000. 2000-11-06 Kazu Hirata <kazu@hxi.com>
  5001. * aout-adobe.c: Fix formatting.
  5002. * aout-arm.c: Likewise.
  5003. * aout-cris.c: Likewise.
  5004. * aout-encap.c: Likewise.
  5005. * aout-ns32k.c: Likewise.
  5006. * aout-target.h: Likewise.
  5007. * aout-tic30.c: Likewise.
  5008. 2000-11-05 Philip Blundell <philb@gnu.org>
  5009. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
  5010. BFDs containing no sections to be merged, regardless of their flags.
  5011. 2000-11-04 Philip Blundell <philb@gnu.org>
  5012. * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
  5013. if a relocation for an undefined symbol also results in an
  5014. overflow.
  5015. 2000-11-06 Christopher Faylor <cgf@cygnus.com>
  5016. * config.bfd: Add support for Sun Chorus.
  5017. 2000-11-05 David O'Brien <obrien@FreeBSD.org>
  5018. * configure.in: Recognize alpha-*-freebsd*.
  5019. * configure: Regenerate.
  5020. 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
  5021. * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
  5022. (Chunk): New global variable set by a parameter in objcopy.c.
  5023. (S3Forced): New global variable set by a parameter in
  5024. objcopy.c.
  5025. (srec_set_section_contents): If S3Forced is true, always generate
  5026. S3 records.
  5027. (srec_write_section): Use 'Chunk' to limit maximum length of S
  5028. records.
  5029. 2000-11-02 Per Lundberg <plundis@chaosdev.org>
  5030. * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
  5031. * Makefile.in: Regenerate.
  5032. * bfd-in2.h: Regenerate.
  5033. * po/bfd.pot: Regenerate.
  5034. 2000-10-31 Philip Blundell <philb@gnu.org>
  5035. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
  5036. EF_SOFT_FLOAT if it is defined.
  5037. 2000-10-27 Philip Blundell <philb@gnu.org>
  5038. * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
  5039. attempts to mix PIC code with non-PIC, just mark the output as
  5040. being position dependent.
  5041. (elf32_arm_merge_private_bfd_data): Likewise. Print an error
  5042. message for EF_SOFT_FLOAT mismatches. Display diagnostics for
  5043. all mismatches, not just the first one.
  5044. 2000-10-25 Chris Demetriou <cgd@sibyte.com>
  5045. * ieee.c (ieee_archive_p): Plug one of many possible
  5046. memory leaks in error handling.
  5047. 2000-10-20 Jakub Jelinek <jakub@redhat.com>
  5048. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
  5049. elf32_sparc_object_p, elf32_sparc_final_write_processing):
  5050. Support v8plusb.
  5051. * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
  5052. sparc64_elf_object_p): Support v9b.
  5053. * archures.c: Declare v8plusb and v9b machines.
  5054. * bfd-in2.h: Ditto.
  5055. * cpu-sparc.c: Ditto.
  5056. 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
  5057. * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
  5058. of a GOT reloc.
  5059. * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
  5060. (SYMBOL_CALLS_LOCAL): New macro.
  5061. (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
  5062. (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
  5063. (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
  5064. (ppc_elf_relocate_section): Use flag variable to determine
  5065. whether the relocation refers to a local symbol.
  5066. Test whether a PLTREL24 reloc will produce a reloc by looking
  5067. to see whether a PLT entry was made.
  5068. 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
  5069. * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
  5070. entries that could serve as a definition for a weak symbol.
  5071. 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
  5072. From Ralf Baechle <ralf@gnu.org>
  5073. * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
  5074. local_p. Add symbol value only for non-R_MIPS_REL32 relocations
  5075. against local symbols.
  5076. (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
  5077. 2000-10-12 Alan Modra <alan@linuxcare.com.au>
  5078. * section.c (struct sec): Add kept_section.
  5079. (struct bfd_comdat_info): Remove sec, we can use above.
  5080. (STD_SECTION): Add initializer.
  5081. (bfd_make_section_anyway): Init here too.
  5082. * bfd-in2.h: Regenerate.
  5083. * elflink.h (elf_link_add_object_symbols): Remove unnecessary
  5084. zeroing of `flags'.
  5085. (elf_link_input_bfd): Set all asection->symbol->value's here, and
  5086. fudge values for discarded link-once section symbols.
  5087. * elf64-hppa.c: Include alloca-conf.h
  5088. 2000-10-11 Alan Modra <alan@linuxcare.com.au>
  5089. * elf.c (swap_out_syms): Revert 2000-10-07 changes.
  5090. * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
  5091. 2000-10-10 Alan Modra <alan@linuxcare.com.au>
  5092. * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
  5093. 2000-10-10 Tom Rix <trix@redhat.com>
  5094. * section.c (bfd_make_section_anyway): Release newsect ptr when
  5095. newsect->symbol fails to alloc. Use bfd_release instead of free.
  5096. 2000-10-09 Richard Henderson <rth@cygnus.com
  5097. * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
  5098. (elf64_ia64_unwind_entry_compare): New.
  5099. (elf64_ia64_final_link): Sort the .IA_64.unwind section.
  5100. 2000-10-07 Alan Modra <alan@linuxcare.com.au>
  5101. * elflink.h (size_dynamic_sections): Don't create various tags if
  5102. .dynstr is excluded from the link. Don't set first dynsym entry
  5103. if dynsymcount is zero.
  5104. (elf_bfd_final_link): Don't try to swap out dynamic syms if
  5105. .dynsym excluded from the link. Don't try to write any dynamic
  5106. sections excluded from the link.
  5107. * elf.c (swap_out_syms): Handle global section symbols.
  5108. 2000-10-05 DJ Delorie <dj@redhat.com>
  5109. * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
  5110. * coffcode.h (coff_set_alignment_hook): read extended reloc count
  5111. (coff_write_relocs): write extended reloc count
  5112. (coff_write_object_contents): account for extended relocs
  5113. 2000-10-05 Jim Wilson <wilson@cygnus.com>
  5114. * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
  5115. field.
  5116. * elf.c (_bfd_elf_make_section_from_shdr): Call the
  5117. elf_backend_section_flags function.
  5118. * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
  5119. code.
  5120. (elf64_ia64_section_flags): New function containing flag conversion
  5121. code.
  5122. (elf_backend_section_flags): Define to elf64_ia64_section_flags.
  5123. * elfxx-target.h (elf_backend_section_flags): Define.
  5124. (elfNN_bed): Initialize elf_backend_section_flags field.
  5125. 2000-10-02 Alan Modra <alan@linuxcare.com.au>
  5126. * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
  5127. _bfd_elf32_gc_record_vtable. Correct a comment.
  5128. 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
  5129. From Ralf Baechle <ralf@gnu.org>
  5130. * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
  5131. produces binaries with got[1] = 0x80000001 to differenciate them
  5132. for the dynamic linker from the broken binaries produced by old
  5133. versions.
  5134. 2000-09-30 Petr Sorfa <petrs@sco.com>
  5135. * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
  5136. (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
  5137. * configure.in: Add check for pxstatus_t and lwpxstatus_t.
  5138. * configure: Regenerate.
  5139. 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
  5140. Define two bfd_targets for absence and presence of leading
  5141. underscore on symbols. Make sure to only link same kind.
  5142. * elf32-cris.c (cris_elf_object_p,
  5143. cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
  5144. cris_elf_merge_private_bfd_data): New.
  5145. (elf_backend_object_p, elf_backend_final_write_processing,
  5146. bfd_elf32_bfd_print_private_bfd_data,
  5147. bfd_elf32_bfd_merge_private_bfd_data): Define.
  5148. <Target vector definition>: Include elf32-target.h twice with
  5149. different macro settings:
  5150. (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
  5151. bfd_elf32_us_cris_vec.
  5152. (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
  5153. (elf_symbol_leading_char): First as 0, then '_'.
  5154. (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
  5155. * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
  5156. * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
  5157. * configure: Regenerate.
  5158. * targets.c: Declare bfd_elf32_us_cris_vec.
  5159. * po/bfd.pot: Regenerate.
  5160. 2000-09-29 Momchil Velikov <velco@fadata.bg>
  5161. * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
  5162. R_ARM_THM_PC22 relocations.
  5163. 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
  5164. * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
  5165. 2000-09-29 Momchil Velikov <velco@fadata.bg>
  5166. * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
  5167. is has the SEC_HAS_CONTENTS flag set.
  5168. 2000-09-28 �Örjan Friberg <orjanf@axis.com>
  5169. Hans-Peter Nilsson <hp@axis.com>
  5170. * aout-cris.c (N_TXTADDR): Define.
  5171. 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
  5172. * som.c: Include alloca-conf.h.
  5173. * Makefile.am: "make dep-am"
  5174. * Makefile.in: Regenerate.
  5175. 2000-09-27 Alan Modra <alan@linuxcare.com.au>
  5176. * elf32-hppa.c (plt_stub): New.
  5177. (PLT_STUB_ENTRY): Define.
  5178. (elf32_hppa_link_hash_table): Change multi_subspace to packed
  5179. boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
  5180. (elf32_hppa_link_hash_table_create): Init to suit.
  5181. (elf32_hppa_check_relocs): Set has_12bit_branch and
  5182. has_17bit_branch as appropriate.
  5183. (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
  5184. non-local functions.
  5185. (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
  5186. Add space for plt_stub as needed.
  5187. (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
  5188. functions at plt_stub.
  5189. (elf32_hppa_finish_dynamic_sections): Write plt_stub.
  5190. (elf32_hppa_create_dynamic_sections): Leave .plt executable.
  5191. * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
  5192. * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
  5193. of fixed size, and if negative, disable handling of input sections
  5194. before stub section. Set up default stub group size depending
  5195. on detected branch relocs.
  5196. (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
  5197. ensure different offsets from sym_value aren't rounded to
  5198. different 2k blocks. Use lrsel and rrsel for other stubs too for
  5199. consistency rather than necessity.
  5200. (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
  5201. (final_link_relocate): Likewise.
  5202. (elf32_hppa_relocate_section): Likewise.
  5203. * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
  5204. (_bfd_elf_hppa_gen_reloc_type): Generate them.
  5205. (elf_hppa_final_link_relocate): Handle them.
  5206. (elf_hppa_relocate_insn): Likewise.
  5207. (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
  5208. 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
  5209. * elfcode.h (elf_object_p): Preserve and clear abfd section
  5210. information. Restore at error.
  5211. 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
  5212. * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
  5213. is empty, make sure that its rva also 0. NT loader dislikes
  5214. having otherwise.
  5215. 2000-09-26 Steve Ellcey <sje@cup.hp.com>
  5216. * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
  5217. global by default.
  5218. 2000-09-21 Alan Modra <alan@linuxcare.com.au>
  5219. * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
  5220. currently unused RELATIVE_DYNAMIC_RELOCS code.
  5221. (hppa_discard_copies): Likewise.
  5222. (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
  5223. comments. Don't check non-code output sections for stub grouping.
  5224. 2000-09-20 Alan Modra <alan@linuxcare.com.au>
  5225. * section.c (bfd_get_unique_section_name): Return NULL if
  5226. bfd_malloc fails.
  5227. 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  5228. * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
  5229. instruction sequence to actually work.
  5230. (elf_m68k_finish_dynamic_sections): Change the patch-in offset
  5231. accordingly.
  5232. 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
  5233. * elf32-sh.c (sh_elf_relocate_section): Use
  5234. _bfd_final_link_relocate to apply the relocation against a section
  5235. symbol, when doing relocatable links.
  5236. 2000-09-18 Alan Modra <alan@linuxcare.com.au>
  5237. * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
  5238. to id_sec.
  5239. (stub_hash_newfunc): Here too.
  5240. (hppa_add_stub): And here.
  5241. (elf32_hppa_link_hash_table): Remove stub_section_created,
  5242. reloc_section_created, first_init_sec and first_fini_sec. Add
  5243. stub_group.
  5244. (elf32_hppa_link_hash_table_create): Init to suit.
  5245. (hppa_get_stub_entry): Add support for grouping stub sections.
  5246. (hppa_add_stub): Likewise. Remove sec_count param and init/fini
  5247. section code. Index stub vars by section->id.
  5248. (elf32_hppa_size_stubs): Likewise. Remove duplicated function
  5249. exit paths. Zap allocation of above removed vars. Refine
  5250. link-once test.
  5251. * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
  5252. * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
  5253. (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
  5254. rather than pointer to bfd_link_info.
  5255. (hppa_add_stub): Likewise.
  5256. (final_link_relocate): Likewise.
  5257. 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
  5258. (elf32_hppa_size_stubs): Don't try to build stubs for discarded
  5259. link-once sections.
  5260. 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
  5261. * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
  5262. ld/emulparams/shelf.sh.
  5263. 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  5264. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
  5265. * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
  5266. * bfd-in2.h: Regenerate.
  5267. 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
  5268. * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
  5269. LITUSE relocations incorrectly if -relax is specified on the ld
  5270. command line and the displacement field of the load or store
  5271. instruction is non-zero. (Patch by paul.winalski@compaq.com)
  5272. 2000-09-15 Alan Modra <alan@linuxcare.com.au>
  5273. * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
  5274. first_fini_sec here.
  5275. (elf32_hppa_size_stubs): Instead correctly find the first .init
  5276. and .fini section here.
  5277. 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
  5278. * elf32-hppa.c (clobber_millicode_symbols): New function.
  5279. (elf32_hppa_size_dynamic_sections): Call it.
  5280. 2000-09-14 Alan Modra <alan@linuxcare.com.au>
  5281. * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
  5282. packed. Add plabel, plt_abs packed booleans.
  5283. (hppa_link_hash_newfunc): Init new fields.
  5284. (PLABEL_PLT_ENTRY_SIZE): Define.
  5285. (hppa_stub_name): Use size_t len vars.
  5286. (hppa_add_stub): Likewise.
  5287. (elf32_hppa_build_stubs): Likewise.
  5288. (hppa_build_one_stub): Kill some compiler warnings.
  5289. (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
  5290. if dynamic linking. Munge the local plt offsets into
  5291. local_got_refcounts. Set h->plabel for all global PLABELs. Use
  5292. size_t len vars. Add assert for plabel addend.
  5293. (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
  5294. (elf32_hppa_hide_symbol): New function.
  5295. (elf_backend_hide_symbol): Define.
  5296. (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
  5297. with h->plabel set. Don't make plt entries to have dynamic syms
  5298. when they have been forced local. If plt entry is used by a
  5299. plabel, make it PLABEL_PLT_ENTRY_SIZE.
  5300. (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
  5301. Set up .plt offsets for local syms.
  5302. (elf32_hppa_relocate_section): Initialise plt entries for local
  5303. syms. Leave weak undefined plabels zero. Make global plabel
  5304. relocs against function symbol, and leave the addend zero.
  5305. Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
  5306. (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
  5307. non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
  5308. relocs instead of SEGREL32 for dynamic got relocs.
  5309. (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
  5310. (elf_backend_got_header_size): Adjust.
  5311. (elf32_hppa_set_gp): Calculate an "ideal" LTP.
  5312. * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
  5313. (hppa_type_of_stub): Use it instead of #if 0
  5314. (hppa_discard_copies): Use it here too.
  5315. (elf32_hppa_size_dynamic_sections): And here.
  5316. * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
  5317. (elf32_hppa_link_hash_table_create): And here.
  5318. (hppa_build_one_stub): And here. Instead keep track of stub
  5319. offset using _raw_size.
  5320. (elf32_hppa_size_stubs): Likewise.
  5321. (elf32_hppa_build_stubs): Likewise.
  5322. (hppa_size_one_stub): Likewise. Resize reloc section too.
  5323. * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
  5324. first_fini_sec handling. Don't search for reloc section or set
  5325. hplink->reloc_section_created here.
  5326. (elf32_hppa_size_stubs): Instead search for reloc sections, and
  5327. set reloc_section_created here.
  5328. (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
  5329. (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
  5330. and DT_FINI.
  5331. (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
  5332. * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
  5333. with `hplink->root.'.
  5334. (elf32_hppa_check_relocs): Likewise.
  5335. (elf32_hppa_gc_sweep_hook): Likewise.
  5336. (elf32_hppa_adjust_dynamic_symbol): Likewise.
  5337. (hppa_handle_PIC_calls): Likewise.
  5338. (elf32_hppa_size_dynamic_sections): Likewise.
  5339. (elf32_hppa_set_gp): Likewise.
  5340. (elf32_hppa_relocate_section): Likewise.
  5341. (elf32_hppa_finish_dynamic_symbol): Likewise.
  5342. (elf32_hppa_finish_dynamic_sections): Likewise.
  5343. From David Huggins-Daines <dhd@linuxcare.com>
  5344. * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
  5345. defined weak symbols in shared links.
  5346. (final_link_relocate): Calls to defined weak symbols in shared
  5347. objects must go via import stubs, as the target might not be known
  5348. at link time.
  5349. 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
  5350. * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
  5351. R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
  5352. R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
  5353. the original entries with EMPTY_HOWTOs, and added new ones to fill
  5354. in the gap.
  5355. (sh_elf_info_to_howto): Make sure the new gap isn't used.
  5356. (sh_elf_relocate_section): Likewise.
  5357. 2000-09-13 Anders Norlander <anorland@acc.umu.se>
  5358. * cpu-mips.c (arch_info_struct): Add mips:4K
  5359. * bfd-in2.h (bfd_mach_mips4K): New define.
  5360. * archures.c: Add bfd_mach_mips4K to comment.
  5361. * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
  5362. E_MIPS_ARCH_2 for bfd_mach_mips4K.
  5363. 2000-09-13 Marco Franzen <marcof@thyron.com>
  5364. * som.c (som_write_symbol_strings): Do not used fixed buffers,
  5365. use size_t as a counter.
  5366. (som_write_space_strings): Similarly.
  5367. 2000-09-12 Jason Eckhardt <jle@cygnus.com>
  5368. * elf32-i860.c (elf32_i860_relocate_pc26): New function
  5369. and prototype.
  5370. (elf32_i860_relocate_section): Invoke new function from here.
  5371. 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  5372. * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
  5373. static.
  5374. 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  5375. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
  5376. target section name instead of dumping core when the target symbol is
  5377. undefined.
  5378. 2000-09-09 Kazu Hirata <kazu@hxi.com>
  5379. * riscix.c: Remove DEFUN.
  5380. 2000-09-08 Nick Clifton <nickc@redhat.com>
  5381. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
  5382. initialise flags in output bfd if the input bfd is the default
  5383. architecture with the default flags.
  5384. 2000-09-08 Kazu Hirata <kazu@hxi.com>
  5385. * archive.c: Fix formatting.
  5386. * coff-arm.c: Likewise.
  5387. * doc/chew.c: Likewise.
  5388. 2000-09-08 Alan Modra <alan@linuxcare.com.au>
  5389. * section.c (bfd_get_unique_section_name): Put a dot before the
  5390. numeric suffix.
  5391. 2000-09-07 Kazu Hirata <kazu@hxi.com>
  5392. * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
  5393. * elf.c: Fix formatting.
  5394. 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
  5395. * config.bfd (sh-*-linux*): Added.
  5396. * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
  5397. * targets.c: Declare them.
  5398. * elf32-sh-lin.c: New file.
  5399. * Makefile.am: Compile it.
  5400. * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
  5401. * configure, Makefile.in: Rebuilt.
  5402. 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
  5403. * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
  5404. pseduo-section when determining where the TOC ends.
  5405. * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
  5406. output x_tvndx as it is only two bytes wide.
  5407. * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
  5408. reloc is 26 or 32 bits wide.
  5409. * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
  5410. for relocs that don't change anything. Also look at the full
  5411. 6 bits of bitsize.
  5412. 2000-09-06 Philip Blundell <philb@gnu.org>
  5413. * config.bfd (arm*-*-uclinux*): New target.
  5414. 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
  5415. * configure: Rebuilt with new libtool.m4.
  5416. 2000-09-06 Alan Modra <alan@linuxcare.com.au>
  5417. * section.c (bfd_get_unique_section_name): Avoid c++ reserved
  5418. word for variable name.
  5419. * bfd-in2.h: Regenerate.
  5420. 2000-09-05 Nick Clifton <nickc@redhat.com>
  5421. * config.in: Regenerate.
  5422. * libbfd.h: Regenerate.
  5423. * po/bfd.pot: Regenerate.
  5424. * doc/bfdint.texi: Remove CVS date string - it foils compares with
  5425. local versions.
  5426. 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
  5427. * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
  5428. 2000-09-05 Alan Modra <alan@linuxcare.com.au>
  5429. Shared library and PIC support.
  5430. * elf32-hppa.c (PLT_ENTRY_SIZE): New.
  5431. (GOT_ENTRY_SIZE): New.
  5432. (ELF_DYNAMIC_INTERPRETER): New.
  5433. (STUB_SUFFIX): Define.
  5434. (LONG_BRANCH_PIC_IN_SHLIB): Define.
  5435. (RELATIVE_DYNAMIC_RELOCS): Define.
  5436. (enum elf32_hppa_stub_type): New.
  5437. (struct elf32_hppa_stub_hash_entry): Rename offset to
  5438. stub_offset. Add a number of new fields.
  5439. (struct elf32_hppa_link_hash_entry): New.
  5440. (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
  5441. global_value.
  5442. (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
  5443. (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
  5444. (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
  5445. new fields.
  5446. (hppa_link_hash_newfunc): New function.
  5447. (elf32_hppa_link_hash_table_create): Use above function. Init new
  5448. fields.
  5449. (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
  5450. instead of addend, and remove sym_name from args. Don't use
  5451. symbol name for local syms, instead use sym index.
  5452. (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
  5453. stub type rather than size. Pass in hash and handle import stub
  5454. case. Also pass in reloc instead of offset so we can calculate
  5455. PCREL22F and PCREL12F branches properly.
  5456. (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
  5457. import and export stubs too.
  5458. (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
  5459. import and export stub sizing.
  5460. (elf32_hppa_check_relocs): New function.
  5461. (elf32_hppa_adjust_dynamic_symbol): New function.
  5462. (hppa_discard_copies): New function.
  5463. (elf32_hppa_size_dynamic_sections): New function.
  5464. (elf_backend_size_dynamic_sections): Define.
  5465. (elf32_hppa_finish_dynamic_symbol): New function.
  5466. (elf_backend_finish_dynamic_symbol): Define.
  5467. (elf32_hppa_size_stubs): Stash params in link hash table, and move
  5468. some local vars into the link hash table too. For shared links,
  5469. trundle over function syms, generating export stubs. Handle
  5470. PCREL22F branches. Break out stub creation code from here..
  5471. (hppa_add_stub): .. to here. New function.
  5472. (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
  5473. call the bfd linker. Use elf_gp to record global pointer.
  5474. Calculate a value from sections if $global$ is missing.
  5475. (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
  5476. (elf32_hppa_gc_mark_hook): New function.
  5477. (elf_backend_gc_mark_hook): Define.
  5478. (elf32_hppa_gc_sweep_hook): New function.
  5479. (elf_backend_gc_sweep_hook): Define.
  5480. (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
  5481. Add rel to args, and remove howto, input_bfd, offset, addend,
  5482. sym_name as we can recalculate these locally. Handle calls to
  5483. dynamic objects, extra PIC relocs, PCREL22F branches. Change
  5484. handling of undefined weak syms. Check that stubs are in range.
  5485. Only look for import stubs on PCREL17F and PCREL22F relocs. Add
  5486. message on hitting a DPREL21L reloc that needs fixing. Subtract
  5487. off PC for PCREL14F. Break out code that does a stub lookup from
  5488. here..
  5489. (hppa_get_stub_entry): ..to here. New function.
  5490. (elf32_hppa_relocate_insn): Merge into final_link_relocate.
  5491. (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
  5492. relocs, etc. etc.
  5493. (elf32_hppa_finish_dynamic_sections): New function.
  5494. (elf_backend_finish_dynamic_sections): Define.
  5495. (elf_backend_final_write_processing) Define.
  5496. (hppa_handle_PIC_calls): New function.
  5497. (elf32_hppa_build_stubs): Call it. Pass link_info to
  5498. hppa_build_one_stub.
  5499. (elf32_hppa_create_dynamic_sections): New function
  5500. to create .plt and .got then set .plt flags correctly.
  5501. (elf_backend_create_dynamic_sections): Define.
  5502. (elf32_hppa_object_p): New function.
  5503. (elf_backend_object_p): Define.
  5504. (elf32_hppa_elf_get_symbol_type): New function.
  5505. (elf_backend_get_symbol_type): Define.
  5506. (elf_backend_can_gc_sections): Define.
  5507. (elf_backend_want_got_plt): Define.
  5508. (elf_backend_plt_alignment): Set to 2.
  5509. (elf_backend_plt_readonly): Define.
  5510. (elf_backend_want_plt_sym): Define.
  5511. (elf_backend_got_header_size): Reserve one entry.
  5512. * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
  5513. (elf32_hppa_size_stubs): Pass in multi_subspace.
  5514. (elf32_hppa_set_gp): Declare.
  5515. * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
  5516. (bfd_get_unique_section_name): New function.
  5517. * bfd-in2.h: Regenerate.
  5518. * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
  5519. (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
  5520. comment.
  5521. From David Huggins-Daines <dhd@linuxcare.com>
  5522. * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
  5523. (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
  5524. (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
  5525. been updated in finish_dynamic_symbol before modifying function
  5526. symbol.
  5527. * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
  5528. eight entries. Replace NULL with bfd_elf_generic_reloc. Add
  5529. R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
  5530. (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
  5531. comments. Handle format == 12 for R_HPPA_PCREL_CALL.
  5532. (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
  5533. (elf_hppa_relocate_insn): Likewise. Reformat some comments.
  5534. (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
  5535. From David Huggins-Daines <dhd@linuxcare.com>
  5536. * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
  5537. style of local labels as well.
  5538. 2000-09-03 Philip Blundell <philb@gnu.org>
  5539. * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
  5540. references to undefined symbols in debugging sections.
  5541. 2000-09-02 H.J. Lu <hjl@gnu.org>
  5542. * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
  5543. BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
  5544. BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
  5545. section.
  5546. 2000-09-02 Jason Eckhardt <jle@cygnus.com>
  5547. * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
  5548. (elf32_i860_is_local_label_name): New function and prototype.
  5549. 2000-09-02 Nick Clifton <nickc@redhat.com>
  5550. * configure.in: Increase version number to 2.10.91.
  5551. * configure: Regenerate.
  5552. * aclocal.m4: Regenerate.
  5553. * config.in: Regenerate.
  5554. * po/bfd.pot: Regenerate.
  5555. 2000-09-02 Daniel Berlin <dberlin@redhat.com>
  5556. * elf.c (_bfd_elf_make_section_from_shdr): Add
  5557. .gnu.linkobce.wi. to the list of debug section names.
  5558. 2000-09-02 Nick Clifton <nickc@redhat.com>
  5559. * dwarf2.c (find_debug_info): New function: Locate a section
  5560. containing dwarf2 debug information.
  5561. (bfd_dwarf2_find_nearest_line): Find all sections containing
  5562. debug information and include them in the stash.
  5563. 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
  5564. * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
  5565. R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
  5566. (sh_reloc_map): Add new relocs.
  5567. (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
  5568. sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
  5569. sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
  5570. sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
  5571. functions.
  5572. (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
  5573. (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
  5574. elf_sh_plt_entry_be, elf_sh_plt_entry_le,
  5575. elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
  5576. New array constants.
  5577. (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
  5578. New variables.
  5579. (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
  5580. elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
  5581. elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
  5582. elf_sh_plt_reloc_offset): Define.
  5583. (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
  5584. elf_sh_link_hash_table): New structs.
  5585. (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
  5586. (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
  5587. relocation types.
  5588. (elf_backend_create_dynamic_sections,
  5589. bfd_elf32_bfd_link_hash_table_create,
  5590. elf_backend_adjust_dynamic_symbol,
  5591. elf_backend_size_dynamic_sections,
  5592. elf_backend_finish_dynamic_symbol,
  5593. elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
  5594. elf_backend_plt_readonly, elf_backend_want_plt_sym,
  5595. elf_backend_got_header_size, elf_backend_plt_header_size):
  5596. Define.
  5597. * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
  5598. BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
  5599. New relocs.
  5600. * bfd-in2.h, libbfd.h: Rebuilt.
  5601. 2000-09-01 Alan Modra <alan@linuxcare.com.au>
  5602. * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
  5603. change.
  5604. 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
  5605. * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
  5606. not initialized, set them to indicate the SH1 instruction set.
  5607. 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
  5608. * acinclude.m4: Include libtool and gettext macros from the
  5609. top level.
  5610. * aclocal.m4, configure: Rebuilt.
  5611. 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
  5612. * elf.c: Eliminate references to __sparcv9 macro; replace with
  5613. autoconf variables HAVE_PSINFO32_T etc.
  5614. * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
  5615. HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
  5616. * config.in: Ditto.
  5617. * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
  5618. detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
  5619. * aclocal.m4: Ditto.
  5620. * configure: Regenerate.
  5621. 2000-08-27 Alan Modra <alan@linuxcare.com.au>
  5622. * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
  5623. for any shared link, not just shared -Bsymbolic.
  5624. (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
  5625. any shared link, and pass link info to it.
  5626. (elf_i386_size_dynamic_sections): Update comment.
  5627. (elf_i386_discard_copies): Modify to discard relocs for symbols
  5628. that have been forced local.
  5629. (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
  5630. that have been forced local.
  5631. 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
  5632. * elflink.h (elf_link_add_object_symbols): Allow common
  5633. symbols to have an alignment of 1 if explicitly requested, and
  5634. not overridden by other definitions.
  5635. 2000-08-22 Doug Kwan <dkwan@transmeta.com>
  5636. * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
  5637. * coffcode.h (coff_set_flags): Add detection of w65 architecture.
  5638. 2000-08-22 H.J. Lu <hjl@gnu.org>
  5639. * elf-bfd.h (elf_link_hash_table): Add runpath.
  5640. * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
  5641. * bfd-in2.h: Rebuilt.
  5642. * elf.c (_bfd_elf_link_hash_table_init): Initialize the
  5643. "runpath" field to NULL.
  5644. (bfd_elf_get_runpath_list): New function.
  5645. * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
  5646. DT_RUNPATH entries.
  5647. 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
  5648. * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
  5649. R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
  5650. explicitly. Improve validation of r_type.
  5651. 2000-08-21 H.J. Lu <hjl@gnu.org>
  5652. * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
  5653. dynamic allocated content space. Add a comment to remind us that
  5654. one day this ought to be fixed.
  5655. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  5656. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
  5657. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
  5658. 2000-08-21 Jason Eckhardt <jle@cygnus.com>
  5659. * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
  5660. field with the newly relocated value instead of adding it to the
  5661. existing immediate field.
  5662. (elf32_i860_relocate_splitn): Likewise.
  5663. (elf32_i860_relocate_highadj): Likewise.
  5664. 2000-08-16 Jason Eckhardt <jle@cygnus.com>
  5665. * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
  5666. was previously just a stub).
  5667. 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
  5668. * elflink.c (_bfd_elf_create_got_section): Don't abort().
  5669. Formatting fixes.
  5670. (_bfd_elf_create_dynamic_sections): Likewise.
  5671. 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
  5672. * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
  5673. for undefined symbols to be the beginning of the section.
  5674. * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
  5675. four extra entries at the beginning of the .rela.plt section.
  5676. (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
  5677. section to account for the four reserved entries in the .plt section.
  5678. 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
  5679. * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
  5680. to the list of NOPs we recognize after a branch-and-link.
  5681. Use the ori NOP when one is needed.
  5682. * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
  5683. for large archives.
  5684. 2000-08-14 Jim Wilson <wilson@cygnus.com>
  5685. * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
  5686. EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
  5687. (elf64_ia64_print_private_bfd_data): Likewise. Also handle
  5688. EF_IA_64_ABSOLUTE.
  5689. 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
  5690. * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
  5691. 2000-08-10 Jason Eckhardt <jle@cygnus.com>
  5692. * elf32-i860.c (elf32_i860_relocate_section): New function.
  5693. (i860_final_link_relocate): New function.
  5694. (elf32_i860_relocate_splitn): New function.
  5695. (elf32_i860_relocate_pc16): New function.
  5696. (elf32_i860_relocate_highadj): New function.
  5697. (elf32_i860_howto): Minor adjustments to some relocations.
  5698. (elf_info_to_howto_rel): Define.
  5699. (elf_backend_relocate_section): Define.
  5700. 2000-08-10 Nick Clifton <nickc@cygnus.com>
  5701. * elf32-arm.h: Fix formatting.
  5702. 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
  5703. * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
  5704. 2000-08-08 Jason Eckhardt <jle@cygnus.com>
  5705. * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
  5706. 2000-08-07 Kazu Hirata <kazu@hxi.com>
  5707. * ieee.c (ieee_write_debug_part): Rewrite a comment.
  5708. * elf64-ia64.c: Fix a typo.
  5709. 2000-08-05 Jason Eckhardt <jle@cygnus.com>
  5710. * elf32-i860.c (elf32_i860_howto_table): New structure.
  5711. (lookup_howto): New function.
  5712. (elf32_i860_reloc_type_lookup): New function.
  5713. (elf32_i860_info_to_howto_rela): New function.
  5714. (elf_code_to_howto_index): New structure.
  5715. (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
  5716. (bfd_elf32_bfd_reloc_type_lookup): Re-define as
  5717. elf32_i860_reloc_type_lookup.
  5718. 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
  5719. * som.c (struct fixup_format): Constify `format'.
  5720. (som_hppa_howto_table): Use SOM_HOWTO macro.
  5721. (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
  5722. (som_bfd_reloc_type_lookup): Likewise.
  5723. (compare_subspaces): Remove unused `count1', `count2'.
  5724. (som_begin_writing): Remove unused `total_reloc_size'.
  5725. (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
  5726. (som_print_symbol, som_bfd_is_local_label_name): Likewise.
  5727. (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
  5728. (som_find_nearest_line): Decorate unused parameter(s).
  5729. (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
  5730. (som_bfd_link_split_section): Likewise.
  5731. 2000-08-03 Nick Clifton <nickc@cygnus.com>
  5732. * section.c: Restore backed out code.
  5733. * elf.c: Restore backed out code.
  5734. (copy_private_bfd_data): Fix bug preventing stipped dynamic
  5735. binaries from working.
  5736. * bfd-in2.h: Regenerate.
  5737. 2000-08-03 H.J. Lu <hjl@gnu.org>
  5738. * section.c: Back out the change made by Nick Clifton
  5739. <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
  5740. binaries.
  5741. * bfd-in2.h: Likewise.
  5742. * elf.c: Likewise.
  5743. 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
  5744. * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
  5745. 2000-07-31 Jason Eckhardt <jle@cygnus.com>
  5746. * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
  5747. * bfd-in2.h, libbfd.h: Regenerate.
  5748. 2000-07-31 Nick Clifton <nickc@cygnus.com>
  5749. * section.c (struct sec): Add new boolean field 'segment_mark'.
  5750. (STD_SECTION): Initialise new field to zero.
  5751. * bfd-in2.h: Regenerate.
  5752. * elf.c (copy_private_bfd_data): Reorganise section to segment
  5753. mapping to cope with moved sections requiring new segments,
  5754. and overlapping segments.
  5755. (SEGMENT_END): New macro: Return the end address of a segment.
  5756. (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
  5757. contains a section by comparing their VMA addresses.
  5758. (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
  5759. contains a section by comparing their LMA addresses.
  5760. (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
  5761. section should be included in a segment.
  5762. (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
  5763. follows another in memory.
  5764. (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
  5765. segments overlap.
  5766. 2000-07-22 Jason Eckhardt <jle@cygnus.com>
  5767. * cpu-i860.c: Added comments.
  5768. * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
  5769. bfd_elf32_i860_little_vec.
  5770. (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
  5771. (ELF_MAXPAGESIZE): Changed to 4096.
  5772. * targets.c (bfd_elf32_i860_little_vec): Declaration of
  5773. new target.
  5774. (bfd_target_vector): Added bfd_elf32_i860_little_vec.
  5775. * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
  5776. config for little endian elf32 i860.
  5777. (targ_defvec): Define for the new config above
  5778. as "bfd_elf32_i860_little_vec".
  5779. (targ_selvecs): Define for the new config above
  5780. as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
  5781. * configure.in (bfd_elf32_i860_little_vec): Added recognition
  5782. of new target vec.
  5783. * configure: Regenerated.
  5784. 2000-07-27 H.J. Lu <hjl@gnu.org>
  5785. * elflink.h (elf_merge_symbol): Take one more argument,
  5786. dt_needed, to indicate if the symbol comes from a DT_NEEDED
  5787. entry. Don't overide the existing weak definition if dt_needed
  5788. is true.
  5789. (elf_link_add_object_symbols): Pass dt_needed to
  5790. elf_merge_symbol ().
  5791. 2000-07-27 Nick Clifton <nickc@cygnus.com>
  5792. * elflink.h (elf_link_size_reloc_section): Zeroes the section's
  5793. allocated contents.
  5794. 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
  5795. * configure.host (*-*-aix*): AIX has 'long long' always.
  5796. * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
  5797. (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
  5798. (xcoff_write_archive_contents_big): Don't update the offset
  5799. of the symbol table, xcoff_write_armap will do it.
  5800. 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
  5801. * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
  5802. of dynobj for SGI_COMPAT checks.
  5803. 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  5804. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
  5805. * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
  5806. * bfd-in2.h: Regenerate.
  5807. 2000-07-21 Nick Clifton <nickc@cygnus.com>
  5808. * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
  5809. range symbol indices in relocs and issue an error message.
  5810. 2000-07-20 H.J. Lu <hjl@gnu.org>
  5811. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
  5812. info->new_dtags when setting DT_FLAGS_1. It will only be set
  5813. by the new linker options. It shouldn't break anything.
  5814. 2000-07-20 H.J. Lu <hjl@gnu.org>
  5815. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
  5816. only if info->new_dtags is true.
  5817. 2000-07-20 H.J. Lu <hjl@gnu.org>
  5818. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
  5819. DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
  5820. 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
  5821. * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
  5822. (ALL_MACHINES_CFILES): Add cpu-cris.c.
  5823. (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
  5824. (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
  5825. (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
  5826. * Makefile.in: Rebuild.
  5827. * aclocal.m4: Rebuild.
  5828. * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
  5829. * archures.c (enum bfd_architecture): Add bfd_arch_cris.
  5830. (bfd_cris_arch): Declare.
  5831. (bfd_archures_list): Add bfd_cris_arch.
  5832. * bfd-in2.h: Rebuild.
  5833. * config.bfd: (cris-*-*): New target.
  5834. * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
  5835. * configure: Rebuild.
  5836. * elf.c (prep_headers): Add bfd_arch_cris.
  5837. * libbfd.h: Rebuild.
  5838. * libaout.h (enum machine_type): Add M_CRIS.
  5839. * reloc.c: Add CRIS relocations.
  5840. * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
  5841. (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
  5842. * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
  5843. * po/POTFILES.in, po/bfd.pot: Regenerate.
  5844. 2000-07-19 H.J. Lu <hjl@gnu.org>
  5845. * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
  5846. DF_TEXTREL if DT_TEXTREL is set.
  5847. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
  5848. * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
  5849. * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
  5850. * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
  5851. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
  5852. * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
  5853. * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
  5854. * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
  5855. * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
  5856. * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
  5857. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
  5858. set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
  5859. DT_RPATH is set.
  5860. Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
  5861. 2000-07-19 H.J. Lu <hjl@gnu.org>
  5862. * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
  5863. * bfd-in2.h: Rebuild.
  5864. * elf-bfd.h (elf_obj_tdata): Add dt_soname.
  5865. (elf_dt_soname): New.
  5866. * elf.c (bfd_elf_set_dt_needed_soname): New.
  5867. * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
  5868. entry if the shared object loaded by DT_NEEDED is used to
  5869. resolve the reference in a regular object.
  5870. 2000-07-19 H.J. Lu <hjl@gnu.org>
  5871. * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
  5872. DT_DEPAUDIT and DT_AUDIT as strings.
  5873. 2000-07-19 Nick Clifton <nickc@cygnus.com>
  5874. * format.c: Fix formatting.
  5875. 2000-07-19 H.J. Lu <hjl@gnu.org>
  5876. * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
  5877. 2000-07-19 H.J. Lu <hjl@gnu.org>
  5878. * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
  5879. DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
  5880. DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
  5881. DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
  5882. DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
  5883. DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
  5884. DT_FLAGS_1, DT_USED and DT_CHECKSUM.
  5885. 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
  5886. * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
  5887. renamed functions from here...
  5888. (assign_section_numbers): Use renamed functions.
  5889. (prep_headers): Use renamed functions.
  5890. * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
  5891. * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
  5892. * bfd-in2.h: Regenerate.
  5893. 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
  5894. * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
  5895. parenthesis in if statement.
  5896. 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
  5897. Enable the support for Traditional MIPS.
  5898. * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
  5899. return ict_none appropriately for traditional mips targets.
  5900. (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
  5901. (STUB_MOVE): Conditionalize for traditonal mips.
  5902. (STUB_LI16): Likewise.
  5903. (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
  5904. room for RTPROC header.
  5905. (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
  5906. the permission for the PT_DYNAMIC as read, write and execute.
  5907. (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
  5908. for traditonal mips.
  5909. (_bfd_mips_elf_create_dynamic_sections): Add the symbol
  5910. _DYNAMIC_LINKING for traditonal mips.
  5911. (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
  5912. in case of traditonal mips.
  5913. (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
  5914. entry is required. For a function if PLT is not required then set the
  5915. corresponding hash table entry to 0.
  5916. (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
  5917. traditonal mips.
  5918. (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
  5919. shared object set the value to 0.
  5920. (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
  5921. _DYNAMIC_LINKING for traditonal mips.
  5922. (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
  5923. for traditonal mips.
  5924. 2000-07-15 H.J. Lu <hjl@gnu.org>
  5925. * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
  5926. 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
  5927. * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
  5928. out a structure that is BFD_IN_MEMORY.
  5929. 2000-07-11 Alan Modra <alan@linuxcare.com.au>
  5930. * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
  5931. bfd pointer. Print section id instead of bfd pointer for local
  5932. syms. Prefix addend with `+' for global syms as well as local.
  5933. Correct calculation of name component lengths.
  5934. (elf64_hppa_check_relocs): Update call to get_dyn_name.
  5935. From David Huggins-Daines <dhd@linuxcare.com>
  5936. * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
  5937. * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
  5938. (elf64_hppa_modify_segment_map): Likewise.
  5939. 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
  5940. * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
  5941. addresses to be "naturally" sign extended. Return -1 if unknown.
  5942. * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
  5943. * bfd-in2.h: Regenerate.
  5944. 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
  5945. * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
  5946. and ECOF_SIGNED_64 to list ways to extract an offset.
  5947. (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
  5948. ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
  5949. Update.
  5950. * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
  5951. * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
  5952. 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
  5953. * elfcode.h (elf_object_p): Use bfd_set_start_address and not
  5954. bfd_get_start_address.
  5955. (elf_swap_ehdr_in): Sign extend e_entry when applicable.
  5956. (elf_swap_ehdr_out): Ditto.
  5957. 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
  5958. * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
  5959. compatibility with older binutils.
  5960. 2000-07-10 Alan Modra <alan@linuxcare.com.au>
  5961. * section.c (bfd_make_section_anyway): Start section_id at 0x10.
  5962. (STD_SECTION): Avoid negative ids, instead use 0 to 3.
  5963. From Ryan Bradetich <rbradetich@uswest.net>
  5964. * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
  5965. (parse_line_table): Ditto.
  5966. (_bfd_dwarf1_find_nearest_line): Ditto.
  5967. * syms.c (cmpindexentry): Remove extra `*' from params.
  5968. 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
  5969. * elf32-mips.c (sort_dynamic_relocs): New Function.
  5970. (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
  5971. via qsort to sort the dynamic relocations in increasing r_symndx
  5972. value.
  5973. 2000-07-09 Alan Modra <alan@linuxcare.com.au>
  5974. * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
  5975. ATTRIBUTE_UNUSED to unused args.
  5976. (get_opd): Likewise.
  5977. (get_plt): Likewise.
  5978. (get_dlt): Likewise.
  5979. (get_stub): Likewise.
  5980. (elf64_hppa_adjust_dynamic_symbol): Likewise.
  5981. (elf64_hppa_link_output_symbol_hook): Likewise.
  5982. (elf64_hppa_check_relocs): Delete unused var.
  5983. (elf64_hppa_size_dynamic_sections): Likewise.
  5984. (elf64_hppa_finalize_opd): Likewise.
  5985. (elf64_hppa_finalize_dynreloc): Likewise.
  5986. (elf64_hppa_modify_segment_map): Likewise.
  5987. (elf64_hppa_finish_dynamic_sections): Likewise.
  5988. * elf-hppa.h (elf_hppa_final_write_processing): Add
  5989. ATTRIBUTE_UNUSED to unused args.
  5990. (elf_hppa_final_link_relocate): Likewise.
  5991. (elf_hppa_record_segment_addrs): Add paretheses.
  5992. (elf_hppa_relocate_section): Constify dyn_name.
  5993. From David Huggins-Daines <dhd@linuxcare.com>
  5994. * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
  5995. rearrange case statement so that it gets preferred to 32-bit ones.
  5996. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
  5997. asection->id instead of address of asection structure.
  5998. (elf32_hppa_size_stubs): Likewise.
  5999. * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
  6000. for .init* and .fini*.
  6001. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
  6002. and addends used in stub names to 32 bits.
  6003. (elf32_hppa_size_stubs): Likewise.
  6004. * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
  6005. twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
  6006. not bfd_put_64. Fix minor comment typo and formatting.
  6007. Changes to create multiple linker stubs, positioned immediately
  6008. before the section where they are required.
  6009. * elf32-hppa.c: Don't include hppa_stubs.h.
  6010. (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
  6011. (elf32_hppa_stub_hash_table): Delete.
  6012. (elf32_hppa_link_hash_entry): Delete.
  6013. (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
  6014. stub_hash_table, and store the struct here rather than a pointer.
  6015. Delete output_symbol_count. Add offset array. Change
  6016. global_value to a bfd_vma.
  6017. (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
  6018. (elf32_hppa_stub_hash_traverse): Delete.
  6019. (elf32_hppa_name_of_stub): Delete.
  6020. (elf32_hppa_link_hash_lookup): Delete.
  6021. (elf32_hppa_link_hash_traverse): Delete.
  6022. (elf32_hppa_stub_hash_table_init): Delete.
  6023. (elf32_hppa_size_of_stub): Pass input section and offset rather
  6024. than location and calculate location here. Don't pass name as all
  6025. stubs are now the same size.
  6026. (elf32_hppa_stub_hash_newfunc): Init new fields.
  6027. (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
  6028. too.
  6029. (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
  6030. comparing against ints. Rewrite stub handling code.
  6031. (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
  6032. Case enums to int before comparing against ints. Remove
  6033. bfd_reloc_dangerous case.
  6034. (elf32_hppa_build_one_stub): Rewrite.
  6035. (elf32_hppa_size_one_stub): New function.
  6036. (elf32_hppa_build_stubs): Rewrite.
  6037. (elf32_hppa_size_stubs): Pass in linker call-back functions.
  6038. Rewrite stub-handling specific code.
  6039. * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
  6040. * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
  6041. * hppa_stubs.h: Delete.
  6042. * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
  6043. (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
  6044. * Makefile.in: Regenerate.
  6045. * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
  6046. e_nlrsel.
  6047. * libhppa.h (hppa_field_adjust): Correct e_nsel case.
  6048. * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
  6049. and section name for bfd_reloc_notsupported error message.
  6050. (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
  6051. bfd_reloc_notsupported.
  6052. (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
  6053. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
  6054. undefined weak symbols for all relocs.
  6055. (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
  6056. offsets are relative to one past the delay slot.
  6057. (elf32_hppa_size_stubs): Account for reloc addend when calculating
  6058. branch destination. Put addend into stub name too.
  6059. (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
  6060. adjust by 8 when deciding whether a linker stub is needed. Put
  6061. addend into stub name as for above.
  6062. * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
  6063. various args and vars.
  6064. (elf32_hppa_bfd_final_link_relocate): Here too.
  6065. (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
  6066. inner block var to avoid shadowing.
  6067. * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
  6068. unsigned.
  6069. * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
  6070. * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
  6071. (elf_hppa_fake_sections): Rename local var to avoid shadowing.
  6072. * libhppa.h: Change practically all unsigned ints to plain ints.
  6073. Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
  6074. prototypes.
  6075. From Ryan Bradetich <rbradetich@uswest.net>
  6076. * libhppa.h (hppa_opcode_type): New enum to replace #define's.
  6077. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
  6078. suit above.
  6079. From David Huggins-Daines <dhd@linuxcare.com>
  6080. * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
  6081. to the new OP_* ones.
  6082. * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
  6083. error exit. Bail out earlier on plabel relocs that we aren't
  6084. interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
  6085. string, and then don't free our copy.
  6086. (elf32_hppa_build_one_stub): Make insn unsigned int.
  6087. * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
  6088. available with BL, not BE and BLE.
  6089. * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
  6090. code for elf arg relocs.
  6091. (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
  6092. argument with elf_link_hash_entry h. Handle undefined weak
  6093. symbols. Move $global$ lookup from here...
  6094. (elf32_hppa_relocate_section): ...to here. Return correct error
  6095. message for non-handled relocs.
  6096. (elf32_hppa_size_of_stub): Correctly test branch range. Previous
  6097. wrong test was -0x3ffff to +0x40000.
  6098. * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
  6099. R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
  6100. Handle them as such.
  6101. (elf_hppa_relocate_insn): Fix a typo.
  6102. * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
  6103. (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
  6104. assemble_17, assemble_21): Delete.
  6105. Supply defines for all 64 possible opcodes.
  6106. (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
  6107. formats. Handle COMICLR.
  6108. (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
  6109. -10, -16, 16, 22.
  6110. * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
  6111. (elf32_hppa_bfd_final_link_relocate): Major rewrite.
  6112. (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
  6113. to suit.
  6114. (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
  6115. the local syms - did this code get deleted accidentally? Ignore
  6116. undefined and undefweak syms.
  6117. * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
  6118. block. Use it instead of elf64_hppa_hash_table (info).
  6119. (elf_hppa_final_link_relocate): Use hppa_info instead of
  6120. elf64_hppa_hash_table (info).
  6121. * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
  6122. re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
  6123. (hppa_rebuild_insn): Mask immediate bits here instead.
  6124. * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
  6125. 2000-07-08 Alan Modra <alan@linuxcare.com.au>
  6126. * section.c (struct sec): Add id field. Tidy comment formatting.
  6127. (bfd_make_section_anyway): Set id.
  6128. (STD_SECTION): Init id too.
  6129. Change CONST to const throughout.
  6130. * archures.c (bfd_arch_info): Tidy comment.
  6131. (bfd_arch_list): Change a CONST to const.
  6132. * libbfd-in.h: Tidy comments and replace CONST with const.
  6133. * elf-bfd.h: Likewise.
  6134. * libbfd.h: Regenerate.
  6135. * bfd-in2.h: Regenerate.
  6136. * libcoff.h: Regenerate.
  6137. 2000-07-07 DJ Delorie <dj@redhat.com>
  6138. * archive.c (_bfd_write_archive_contents): Add an informative
  6139. comment.
  6140. 2000-07-06 Kazu Hirata <kazu@hxi.com>
  6141. * srec.c: Fix formatting.
  6142. 2000-06-05 DJ Delorie <dj@redhat.com>
  6143. * MAINTAINERS: new
  6144. 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
  6145. * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
  6146. value of PC-relative offsets.
  6147. 2000-07-03 Jim Wilson <wilson@cygnus.com>
  6148. * elf64-alpha.c (alpha_elf_size_info): New.
  6149. (elf_backend_size_info): Define to alpha_elf_size_info.
  6150. * elfcode.h (elf_size_info): Change hash bucket size to 4.
  6151. 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
  6152. * elf32-mips.c: Include elf32-target.h again for the traditional
  6153. MIPS targets.
  6154. 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
  6155. * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
  6156. Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
  6157. (avr_info_to_howto_rela): Likewise.
  6158. (elf32_avr_gc_mark_hook): Likewise.
  6159. (elf32_avr_gc_sweep_hook): Likewise.
  6160. (elf32_avr_relocate_section): Likewise.
  6161. 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
  6162. * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
  6163. an external symbol for a non-shared, non-relocatable link.
  6164. 2000-07-03 Nick Clifton <nickc@redhat.com>
  6165. * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
  6166. is an external symbol.
  6167. (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
  6168. external symbol.
  6169. 2000-07-03 Kazu Hirata <kazu@hxi.com>
  6170. * reloc16.c: Fix formatting.
  6171. 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
  6172. * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
  6173. to add a new target for traditional mips i.e
  6174. bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
  6175. * configure.in: Likewise.
  6176. * configure: Rebuild.
  6177. * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
  6178. bfd_target_vector.
  6179. (bfd_elf32_tradlittlemips_vec): Likewise.
  6180. * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
  6181. to see that elfNN_bed does not get redefined even if the target file
  6182. is included twice for a chip. See elf32-mips.c.
  6183. 2000-07-01 Alan Modra <alan@linuxcare.com.au>
  6184. * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
  6185. (CLEANFILES): Add DEPA.
  6186. * Makefile.in: Regenerate.
  6187. 2000-06-30 DJ Delorie <dj@cygnus.com>
  6188. * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
  6189. can't assume the PE header is at 0x80.
  6190. 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
  6191. * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
  6192. 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
  6193. * go32stub.h: Update stub.
  6194. 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
  6195. * archures.c (bfd_mach_avr5): Define.
  6196. * bfd-in2.h (bfd_mach_avr5): Define.
  6197. * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
  6198. bfd_mach_avr5, add bfd_mach_avr4. Update comments.
  6199. (compatible): Update comment. Add missing test.
  6200. * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
  6201. for avr2 and avr4. Simplify 8K wrap code.
  6202. (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
  6203. (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
  6204. 2000-06-26 Kazu Hirata <kazu@hxi.com>
  6205. * coff-h8300.c: Fix formatting.
  6206. * cpu-h8300.c: Likewise.
  6207. 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
  6208. * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
  6209. for local symbols whose names are unknown.
  6210. 2000-06-22 Alan Modra <alan@linuxcare.com.au>
  6211. * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
  6212. find one.
  6213. * Makefile.in: Regenerate.
  6214. * doc/Makefile.in: Regenerate.
  6215. 2000-06-20 H.J. Lu <hjl@gnu.org>
  6216. * Makefile.am: Rebuild dependency.
  6217. * Makefile.in: Rebuild.
  6218. 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  6219. * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
  6220. (elf_backend_copy_indirect_symbol): Map to the new function.
  6221. 2000-06-20 Alan Modra <alan@linuxcare.com.au>
  6222. * archive.c (normalize): Correct pointer comparison when checking
  6223. for backslashes.
  6224. (bfd_bsd_truncate_arname): Likewise.
  6225. (bfd_gnu_truncate_arname): Likewise.
  6226. 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
  6227. * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
  6228. sections elf_{text,data}_{section,symbol}.
  6229. * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
  6230. (_bfd_mips_elf_hide_symbol): New function.
  6231. (elf_backend_hide_symbol): Map to the new function.
  6232. (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
  6233. definitions of mips_elf_{text,data}_{section,symbol}.
  6234. (mips_elf_local_relocation_p): Try to find the direct symbol
  6235. based on new check_forced argument.
  6236. (mips_elf_calculate_relocation): Use new version of
  6237. mips_elf_local_relocation_p.
  6238. (mips_elf_relocate_section): Likewise.
  6239. (_bfd_mips_elf_relocate_section): Likewise.
  6240. (mips_elf_sort_hash_table): Only assert that have enough GOT
  6241. space.
  6242. (mips_elf_got16_entry): Match all 32 bits to the existing GOT
  6243. entry if the relocation based on the new external argument.
  6244. (mips_elf_create_dynamic_relocation): Assert that we have a
  6245. section contents allocated where we can swap out the dynamic
  6246. relocations.
  6247. (mips_elf_calculate_relocation): Find the real hash-table entry
  6248. correctly by using h->root.root.type. Only create a dynamic
  6249. relocation entry if the symbol is defined in a shared library.
  6250. Create an external GOT entry for the GOT16 relocation if the
  6251. symbol was forced local.
  6252. (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
  6253. dynamic index if the symbol was forced local.
  6254. 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  6255. * elf32-mips.c: Fix typos in comments.
  6256. 2000-06-19 Mark Kettenis <kettenis@gnu.org>
  6257. * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
  6258. CORE_VERSION_1.
  6259. 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
  6260. * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
  6261. * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
  6262. BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
  6263. * configure.in (bfd_elf32_m68hc12_vec): Recognize.
  6264. (bfd_elf32_m68hc11_vec): Likewise.
  6265. * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
  6266. Supports 68hc11 & 68hc12 at the same time.
  6267. * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
  6268. bfd_target_vector.
  6269. (bfd_elf32_m68hc11_vec): Likewise.
  6270. * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
  6271. * archures.c (bfd_m68hc12_arch): Define and register in global list
  6272. (bfd_m68hc11_arch): Likewise.
  6273. * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
  6274. BFD_RELOC_M68HC11_3B): Define.
  6275. * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
  6276. * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
  6277. 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
  6278. * elf_bfd.h (struct elf_backend_data): Add info argument to
  6279. elf_backend_hide_symbol.
  6280. (_bfd_elf_link_hash_hide_symbol): Likewise.
  6281. * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
  6282. * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
  6283. * elflink.h (elf_link_add_object_symbols): Likewise.
  6284. (elf_link_assign_sym_version): Likewise.
  6285. 2000-06-18 H.J. Lu <hjl@gnu.org>
  6286. * coff-i386.c (coff_i386_reloc): Don't return in case of
  6287. output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
  6288. Compensate PE relocations when linking with non-PE object
  6289. files to generate a non-PE executable.
  6290. 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
  6291. * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
  6292. GOT entries if we're doing a static link or -Bsymbolic link.
  6293. 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
  6294. * elflink.h (elf_link_adjust_relocs): Check for and call backend
  6295. specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
  6296. available.
  6297. (elf_link_output_relocs): Likewise.
  6298. (elf_reloc_link_order): Likewise.
  6299. 2000-06-16 Nicholas Duffek <nsd@redhat.com>
  6300. * archures.c (enum bfd_architecture): #define constants for
  6301. PowerPc and RS6000 machine numbers.
  6302. * bfd-in2.h: Regenerate.
  6303. * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
  6304. to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
  6305. and RS6000 machine numbers using #defined constants from
  6306. archures.c.
  6307. * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
  6308. machine numbers using #defined constants from archures.c. Add
  6309. entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
  6310. 64-bit words in 620 entry.
  6311. * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
  6312. RSC, and RS2.
  6313. (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
  6314. 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
  6315. * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
  6316. * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
  6317. * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
  6318. 2000-06-16 Nicholas Duffek <nsd@redhat.com>
  6319. * bfd-in.h (bfd_family_coff): Define.
  6320. * bfd-in2.h: Regenerate.
  6321. * coffgen.c (coff_count_linenumbers, coff_symbol_from,
  6322. coff_find_nearest_line): Check COFFness using bfd_family_coff()
  6323. instead of bfd_target_coff_flavour.
  6324. * cofflink.c (_bfd_coff_final_link): Likewise.
  6325. * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
  6326. exclude XCOFF files.
  6327. * reloc.c (bfd_perform_relocation, bfd_install_relocation):
  6328. Likewise.
  6329. * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
  6330. * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
  6331. * xcofflink.c (XCOFF_XVECP): Delete.
  6332. (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
  6333. bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
  6334. bfd_xcoff_record_link_assignment,
  6335. bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
  6336. check for bfd_target_xcoff_flavour.
  6337. 2000-06-16 Nicholas Duffek <nsd@redhat.com>
  6338. * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
  6339. files on AIX 4.3.
  6340. (read_hdr): New function.
  6341. (rs6000coff_core_p): Store mstsave or __context64 struct instead
  6342. of trying to extract individual registers. Set abfd->arch_info
  6343. to match the architecture that created the core file.
  6344. (rs6000coff_get_section_contents): Delete.
  6345. * xcoff-target.h (rs6000coff_get_section_contents): Delete.
  6346. 2000-06-14 H.J. Lu <hjl@gnu.org>
  6347. * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
  6348. is NULL.
  6349. 2000-06-13 H.J. Lu <hjl@gnu.org>
  6350. * configure: Regenerate.
  6351. 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
  6352. * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
  6353. armpei_little_vec.
  6354. 2000-06-08 David O'Brien <obrien@FreeBSD.org>
  6355. * configure.in (VERSION): Update to show this is the CVS mainline.
  6356. 2000-06-07 Alan Modra <alan@linuxcare.com.au>
  6357. * elf32-d10v.c: Include elf/d10v.h
  6358. (enum reloc_type): Delete.
  6359. * elf32-d30v.c: Include elf/d30v.h
  6360. (enum reloc_type): Delete.
  6361. * Makefile.am: Run "make dep-am" to regenerate dependencies.
  6362. * Makefile.in: Regenerate.
  6363. * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
  6364. (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
  6365. move HOWTOs into elf_howto_table.
  6366. (R_386_standard, R_386_ext_offset): Define.
  6367. (R_386_ext, R_386_vt_offset, R_386_vt): Define.
  6368. (elf_i386_reloc_type_lookup): Modify calculation of index into
  6369. elf_howto_table since we've removed the padding.
  6370. (elf_i386_info_to_howto_rel): Likewise.
  6371. (elf_i386_relocate_section): Likewise.
  6372. 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
  6373. * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
  6374. 2000-06-05 H.J. Lu <hjl@gnu.org>
  6375. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
  6376. an error when seeing an undefined symbol with hidden/internal
  6377. attribute. It is handled in *_relocate_section ().
  6378. 2000-06-05 H.J. Lu <hjl@gnu.org>
  6379. * elflink.h (elf_fix_symbol_flags): Follow the link for the
  6380. indirect symbol for the ELF_LINK_NON_ELF bit.
  6381. (elf_link_output_extsym): Don't output the indirect symbol even
  6382. if the ELF_LINK_NON_ELF bit is set.
  6383. 2000-06-01 J.T. Conklin <jtc@redback.com>
  6384. * config.bfd (i[3456]86-*-netbsdelf*): New target.
  6385. (i[3456]86-*-netbsdaout*): New target.
  6386. (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
  6387. (i[3456]86-*-openbsd*): Likewise.
  6388. 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
  6389. * trad-core.c: From hpux-core.c, include <dirent.h> or
  6390. <sys/ndir.h> when possible.
  6391. 2000-05-31 Ulrich Drepper <drepper@redhat.com>
  6392. * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
  6393. definitions. We must not assume they are sorted in the file
  6394. according to their index numbers.
  6395. 2000-05-31 Alan Modra <alan@linuxcare.com.au>
  6396. * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
  6397. selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
  6398. R_PARISC_DIR17F are for absolute branches; Handle them as such.
  6399. 2000-05-30 Nick Clifton <nickc@cygnus.com>
  6400. * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
  6401. 80960CA, 80960MC as valid machine names.
  6402. 2000-05-30 H.J. Lu <hjl@gnu.org>
  6403. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
  6404. visibility bits if the symbol is undefined. Correctly handle
  6405. weak undefined symbols with hidden and internal attributes.
  6406. * elflink.h (elf_link_add_object_symbols): Always turn the
  6407. symbol into local if it has the hidden or internal attribute.
  6408. 2000-05-29 Philip Blundell <philb@gnu.org>
  6409. * ppcboot.c: Add packed attribute if compiling with GCC.
  6410. 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
  6411. * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
  6412. 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
  6413. * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
  6414. elfcore_grok_psinfo): Add code to allow debugging a 32-bit
  6415. corefile on a 64-bit (Sparc Solaris) host. Also clean up
  6416. a few old comments.
  6417. 2000-05-26 Alan Modra <alan@linuxcare.com.au>
  6418. * Makefile.am: Update dependencies with "make dep-am"
  6419. * Makefile.in: Regenerate.
  6420. * sysdep.h (gettext, dgettext, dcgettext, textdomain,
  6421. bindtextdomain): Replace defines with those from intl/libgettext.h
  6422. to quieten gcc warnings.
  6423. 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
  6424. * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
  6425. * archive.c (normalize, bfd_bsd_truncate_arname,
  6426. bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
  6427. file names with backslashes.
  6428. * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
  6429. before opening it.
  6430. * sysdep.h: Include filenames.h.
  6431. 2000-05-26 Alan Modra <alan@linuxcare.com.au>
  6432. * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
  6433. 2000-05-26 Jakub Jelinek <jakub@redhat.com>
  6434. * elf64-sparc.c (sparc64_elf_relax_section): New.
  6435. (sparc64_elf_relocate_section): Optimize tail call into branch always
  6436. if possible.
  6437. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  6438. (elf32_sparc_relax_section): New.
  6439. 2000-05-26 Jakub Jelinek <jakub@redhat.com>
  6440. * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
  6441. Remove unusued variables.
  6442. (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
  6443. (sparc64_elf_merge_private_bfd_data): Fix shared library case from
  6444. previous fix, so that shared libs really don't influence targets
  6445. extension mask and memory model.
  6446. 2000-05-23 H.J. Lu <hjl@gnu.org>
  6447. * elf64-alpha.c (elf64_alpha_relocate_section): Check
  6448. h->root.other not h->other.
  6449. * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
  6450. * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
  6451. 2000-05-23 H.J. Lu <hjl@gnu.org>
  6452. * elf32-i386.c (elf_i386_relocate_section): Don't allow the
  6453. undefined symbol with the non-default visibility attributes.
  6454. * elf-hppa.h (elf_hppa_relocate_section): Likewise.
  6455. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  6456. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  6457. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  6458. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  6459. * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
  6460. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  6461. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  6462. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  6463. * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
  6464. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  6465. 2000-05-22 Richard Henderson <rth@cygnus.com>
  6466. * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
  6467. PCREL22, PCREL64I. Zero size of special relocs.
  6468. (elf64_ia64_reloc_type_lookup): Likewise.
  6469. (USE_BRL, oor_brl, oor_ip): New.
  6470. (elf64_ia64_relax_section): New.
  6471. (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
  6472. (elf64_ia64_install_value): Likewise, plus PCREL21BI.
  6473. (elf64_ia64_relocate_section): Likewise.
  6474. (bfd_elf64_bfd_relax_section): New.
  6475. * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
  6476. (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
  6477. * bfd-in2.h, libbfd.h: Regenerate.
  6478. 2000-05-22 Nick Clifton <nickc@cygnus.com>
  6479. * configure.in : Add peigen.lo to MIPS PE targets.
  6480. * configure: Regenerate.
  6481. 2000-05-22 Momchil Velikov <velco@fadata.bg>
  6482. * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
  6483. only if it is known for both input and output bfds. Separate
  6484. error message strings as in some languages, it may be necessary
  6485. to change more than one place in the string to change between
  6486. 'big' and 'little'.
  6487. * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
  6488. endianess checks, call _bfd_generic_verify_endian_match() instead.
  6489. * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
  6490. * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
  6491. * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
  6492. endianess before checking bfd flavours.
  6493. 2000-05-22 H.J. Lu <hjl@gnu.org>
  6494. * elflink.h (elf_link_output_extsym): Clear the visibility
  6495. field for symbols not defined locally.
  6496. 2000-05-18 Alan Modra <alan@linuxcare.com.au>
  6497. * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
  6498. re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
  6499. (hppa_rebuild_insn): Mask immediate bits here instead.
  6500. * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
  6501. 2000-05-18 Momchil Velikov <velco@fadata.bg>
  6502. * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
  6503. relocs for an executable, ensure that they are virtual addresses.
  6504. 2000-05-18 Jeffrey A Law (law@cygnus.com)
  6505. * config.bfd (hppa*64*-*-hpux11*): New target triplet.
  6506. 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
  6507. Rick Gorton <gorton@scrugs.lkg.dec.com>
  6508. * elflink.h: Add emitrelocations support: when enabled, relocation
  6509. information and relocation sections are put into final output
  6510. executables. If the emitrelocations flag is set, do the following:
  6511. (elf_bfd_final_link): Emit relocation sections.
  6512. (elf_link_input_bfd): Compute relocation section contents.
  6513. (elf_gc_sections): Don't clean relocation sections.
  6514. 2000-05-16 Catherine Moore <clm@cygnus.com>
  6515. * som.c (som_decode_symclass): Recognize weak symbols.
  6516. 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
  6517. * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
  6518. read idata section only from dataoff.
  6519. (pe_print_edata): Correctly check for valid eat_member.
  6520. 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
  6521. * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
  6522. 2000-05-14 Philip Blundell <philb@gnu.org>
  6523. * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
  6524. 2000-05-12 Alan Modra <alan@linuxcare.com.au>
  6525. * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
  6526. * peigen.c (pe_print_idata): Look for .idata section and print
  6527. info even if data directory has zero entries. Read idata section
  6528. starting from dataoff, and adjust all data offsets to suit. Cast
  6529. all bfd_vma vars to unsigned long before passing to fprintf.
  6530. * peigen.c (pe_print_edata): Similarly, look for .edata section
  6531. and print info even if data directory has zero entries. Cast
  6532. all bfd_vma vars to unsigned long before passing to fprintf.
  6533. From Szabolcs Szakacsits <szaka@F-Secure.com>
  6534. * peigen.c (pe_print_idata): Use bfd_section_size rather than data
  6535. directory size which may be bogus.
  6536. * peigen.c (pe_print_edata): Similarly.
  6537. 2000-05-09 Alan Modra <alan@linuxcare.com.au>
  6538. * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
  6539. section is empty.
  6540. (copy_private_bfd_data): Allow for space possibly taken up by elf
  6541. headers when calculating segment physical address from lma.
  6542. 2000-05-08 Alan Modra <alan@linuxcare.com.au>
  6543. * versados.c (versados_scan): Init stringlen and pass_2_done.
  6544. * trad-core.c (trad_unix_core_file_p): Return
  6545. bfd_error_wrong_format rather than bfd_error_file_truncated.
  6546. * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
  6547. add_data_entry. DataDirectory virtual address is relative.
  6548. (pe_print_idata): Account for relative DataDirectory virtual
  6549. addresses. Don't trash datasize inside POWERPC_LE_PE code.
  6550. (pe_print_edata): Similarly.
  6551. From Szabolcs Szakacsits <szaka@F-Secure.com>
  6552. * peigen.c (dir_names): Add Delay Import Directory.
  6553. (pe_print_idata): Always search for bfd section containing
  6554. idata address rather than looking up section name. Print this
  6555. section name rather than .idata.
  6556. (pe_print_edata): Similarly. Also print some fields as %08lx.
  6557. (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
  6558. Win32Version.
  6559. 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
  6560. * xcoff.h: Rename to xcoff-target.h
  6561. * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
  6562. * coff-rs6000.c: Ditto.
  6563. * coff64-rs6000.c: Ditto.
  6564. * coff-pmac.c: Ditto.
  6565. * Makefile.in: Regenerate.
  6566. 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
  6567. * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
  6568. Change U802TOC64MAGIC to U803XTOCMAGIC.
  6569. 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
  6570. * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
  6571. * bfd-in.h: Prototype bfd_elf_get_arch_size.
  6572. * bfd-in2.h: Prototype bfd_elf_get_arch_size.
  6573. 2000-05-04 Alan Modra <alan@linuxcare.com.au>
  6574. * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
  6575. 2000-05-03 Martin v. L�öwis <loewis@informatik.hu-berlin.de>
  6576. * elflink.h (elf_link_add_object_symbols): Reset dynindx for
  6577. hidden and internal symbols.
  6578. (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
  6579. visibility.
  6580. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
  6581. assign a PLT or GOT entry to symbols with hidden and
  6582. internal visibility.
  6583. 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
  6584. * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
  6585. the .bss section.
  6586. * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
  6587. 2000-05-02 H.J. Lu <hjl@gnu.org>
  6588. * elf.c (prep_headers): Use ELFOSABI_NONE instead of
  6589. ELFOSABI_SYSV.
  6590. 2000-05-02 Alan Modra <alan@linuxcare.com.au>
  6591. * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
  6592. * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
  6593. dependencies.
  6594. * Makefile.in: Regenerate.
  6595. 2000-05-01 Jim Wilson <wilson@cygnus.com>
  6596. * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
  6597. (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
  6598. (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
  6599. (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
  6600. * Makefile.in: Rebuild.
  6601. 2000-05-02 Alan Modra <alan@linuxcare.com.au>
  6602. * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
  6603. doesn't work very well.
  6604. * elf-hppa.h (elf_hppa_internal_shdr): Define.
  6605. (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
  6606. Set hdr->s_type to 1 if ARCH_SIZE == 32.
  6607. (_bfd_elf_hppa_gen_reloc_type): Add prototype.
  6608. (elf_hppa_info_to_howto): Likewise.
  6609. (elf_hppa_info_to_howto_rel): Likewise.
  6610. (elf_hppa_reloc_type_lookup): Likewise.
  6611. (elf_hppa_is_local_label_name): Likewise.
  6612. (elf_hppa_fake_sections): Likewise.
  6613. (elf_hppa_final_write_processing): Likewise.
  6614. (elf_hppa_howto_table): Fully initialise all entries.
  6615. (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
  6616. (elf_hppa_info_to_howto): Likewise.
  6617. (elf_hppa_info_to_howto_rel): Likewise.
  6618. (elf_hppa_reloc_type_lookup): Likewise.
  6619. (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
  6620. elf_hppa_unmark_useless_dynamic_symbols,
  6621. elf_hppa_remark_useless_dynamic_symbols,
  6622. elf_hppa_record_segment_addrs, elf_hppa_final_link,
  6623. elf_hppa_relocate_section, elf_hppa_final_link_relocate,
  6624. elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
  6625. elf32-hppa.c mess is cleaned up.
  6626. (elf_hppa_final_link_relocate): Make insn and r_type unsigned
  6627. int. Delete r_field. In case R_PARISC_PCREL21L, don't set
  6628. r_field then call hppa_field_adjust inline func with variable
  6629. r_field arg, instead call hppa_field_adjust with fixed arg.
  6630. In case R_PARISC_PCREL22F, don't set r_field.
  6631. (elf_hppa_relocate_insn): Change args and return type to unsigned
  6632. int. Call re_assemble_* funcs to do the work.
  6633. * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
  6634. sign extending.
  6635. * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
  6636. extending.
  6637. (sign_extend): Mask first before sign extending.
  6638. (low_sign_extend): Rewrite without condition expression.
  6639. (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
  6640. dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
  6641. (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
  6642. assemble_17, assemble_21, sign_unext, low_sign_unext): Return
  6643. result as function return value rather than through pointer arg.
  6644. Accept unsigned int args, and return unsigned int.
  6645. (re_assemble_3): New. Combines function of dis_assemble_3 with
  6646. re-assembly of opcode and immediate.
  6647. (re_assemble_12): Likewise.
  6648. (re_assemble_16): Likewise.
  6649. (re_assemble_17): Likewise.
  6650. (re_assemble_21): Likewise.
  6651. (re_assemble_22): Likewise.
  6652. (hppa_field_adjust): Rewrite and document, paying attention to
  6653. size of types and signed/unsigned issues.
  6654. (get_opcode): Shift before masking.
  6655. (FDLW): Rename to FLDW.
  6656. (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
  6657. (hppa_rebuild_insn): Change args and return value to unsigned
  6658. int. Make use of re_assemble_*. Correct case 11.
  6659. * dep-in.sed: Handle ../opcodes/.
  6660. * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
  6661. elf64-hppa.h, hppa_stubs.h, xcoff.h.
  6662. (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
  6663. Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
  6664. elfarm-nabi.lo dependencies outside of auto-dependency area.
  6665. Regenerate dependencies.
  6666. * Makefile.in: Regenerate.
  6667. * configure.in (TRAD_HEADER): Test non-null before
  6668. AC_DEFINE_UNQUOTED.
  6669. * configure: Regenerate.
  6670. * reloc.c: Fix mis-spelling in comment.
  6671. 2000-05-01 Alan Modra <alan@linuxcare.com.au>
  6672. * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
  6673. * vms.c (vms_openr_next_archived_file): Return NULL.
  6674. 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
  6675. * coffcode.h Copy changes mistakenly done to libcoff.h in
  6676. 4/24/2000 patch.
  6677. 2000-04-29 Andreas Jaeger <aj@suse.de>
  6678. * libbfd-in.h: Correctly check GCC version.
  6679. * bfd-in.h: Likewise.
  6680. * libhppa.h: Likewise.
  6681. * libbfd.h: Regenerate.
  6682. * bfd-in2.h: Regenerate.
  6683. 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
  6684. * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
  6685. coffdu-rs6000.{lo,c}.
  6686. (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
  6687. on xcoff.h
  6688. * Makefile.in: Regenerate.
  6689. * xcoff.h: New file.
  6690. * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
  6691. * coff-rs6000.c: Move all declarations and defines that are
  6692. common to the xcoff backends into xcoff.h
  6693. * coff64-rs6000.c: Ditto,
  6694. 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
  6695. * coff-mips.c (mips_ecoff_backend_data): Add initialization of
  6696. _bfd_coff_force_symnames in strings and
  6697. _bfd_coff_debug_string_prefix_length to their default values.
  6698. * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
  6699. 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
  6700. * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
  6701. _bfd_coff_force_symnames in strings and
  6702. _bfd_coff_debug_string_prefix_length to their default values.
  6703. 2000-04-27 Alan Modra <alan@linuxcare.com.au>
  6704. * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
  6705. Check local_got_refcounts before dereferencing.
  6706. * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
  6707. before deciding we don't need R_PPC_PLT32 relocation.
  6708. (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
  6709. dereferencing.
  6710. * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
  6711. * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
  6712. .plt entries.
  6713. (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
  6714. (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
  6715. (elf_i386_relocate_section): Allow for .plt to go missing.
  6716. (elf_i386_finish_dynamic_symbol): Use same test to decide if we
  6717. can use a relative reloc for got as elf_i386_relocate_section.
  6718. (bfd_elf32_bfd_final_link): Define to use gc form of final link.
  6719. 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
  6720. * config.bfd: Remove extraneous bfd_powerpc_64_arch.
  6721. 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
  6722. * Makefile.am (coff64-rs6000.lo): New rule.
  6723. * Makefile.in: Regenerate.
  6724. * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
  6725. xcoff_is_local_label_name, xcoff_rtype2howto,
  6726. xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
  6727. xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
  6728. xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
  6729. (NO_COFF_SYMBOLS): Define.
  6730. (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
  6731. xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
  6732. internally.
  6733. (MINUS_ONE): New macro.
  6734. (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
  6735. relocation.
  6736. (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
  6737. coff_SWAP_aux_out): Map to the new functions.
  6738. * coff64-rs6000.c: New file.
  6739. * libcoff.h (bfd_coff_backend_data): Add new fields
  6740. _bfd_coff_force_symnames_in_strings and
  6741. _bfd_coff_debug_string_prefix_length.
  6742. (bfd_coff_force_symnames_in_strings,
  6743. bfd_coff_debug_string_prefix_length): New macros for above fields.
  6744. * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
  6745. Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
  6746. of using coff_swap_sym_in directly.
  6747. (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
  6748. (coff_set_flags) Set magic for XCOFF64.
  6749. (coff_compute_section_file_positions): Add symbol name length to
  6750. string section length if bfd_coff_debug_string_prefix_length is
  6751. true.
  6752. (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
  6753. (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
  6754. using coff_swap_lineno_in directly.
  6755. (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
  6756. and _bfd_coff_debug_string_prefix_length fields.
  6757. * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
  6758. symbol names into strings table when
  6759. bfd_coff_force_symnames_in_strings is true.
  6760. * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
  6761. SET_RELOC_VADDR): New macros.
  6762. (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
  6763. (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
  6764. code.
  6765. (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
  6766. changes within RS6000COFF_C specific code.
  6767. (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
  6768. MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
  6769. * reloc.c (bfd_perform_relocation, bfd_install_relocation):
  6770. Extend existing hack on target name.
  6771. * xcofflink.c (XCOFF_XVECP): Extend existing hack on
  6772. target name.
  6773. * coff-tic54x.c (ticof): Keep up to date with new fields
  6774. in bfd_coff_backend_data.
  6775. * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
  6776. targ_selvecs to include rs6000coff64_vec for rs6000.
  6777. * configure.in: Add rs6000coff64_vec case.
  6778. * cpu-powerpc.c: New bfd_arch_info_type.
  6779. 2000-04-24 Jeffrey A Law (law@cygnus.com)
  6780. * config.bfd: Only disable elf32-hppa vectors, not all of the
  6781. BSD and OSF configuration support. Provide (disabled) clauses
  6782. for PA64 support.
  6783. * configure.in: Add clause for PA64 support.
  6784. * configure: Rebuilt.
  6785. * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
  6786. (bfd_elf64_hppa_vec): Declare.
  6787. * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
  6788. (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
  6789. (elf64-hppa.lo): Add dependencies.
  6790. * Makefile.in: Rebuilt.
  6791. * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
  6792. 2000-04-24 Jason Eckhardt <jle@cygnus.com>
  6793. * libhppa.h (dis_assemble_16): New function.
  6794. (pa_arch): Added pa20w element.
  6795. 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
  6796. * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
  6797. bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
  6798. bfd_elf64_slurp_reloc_table.
  6799. * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
  6800. definitions to get external names.
  6801. (elf_write_relocs): Renamed from write_relocs and make global.
  6802. (elf_slurp_reloc_table): Make global.
  6803. (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
  6804. * archive.c (hpux_uid_gid_encode): New function.
  6805. (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
  6806. defined and the ID is greater than 99999.
  6807. (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
  6808. special uid/gid fields into 32 bit values.
  6809. 2000-04-21 Matthew Green <mrg@cygnus.com>
  6810. * config.bfd: Add NetBSD/sparc64 support.
  6811. 2000-04-21 Richard Henderson <rth@cygnus.com>
  6812. David Mosberger <davidm@hpl.hp.com>
  6813. Timothy Wall <twall@cygnus.com>
  6814. Jim Wilson <wilson@cygnus.com>
  6815. * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
  6816. (ALL_MACHINES_CFILES): Add cpu-ia64.c.
  6817. (BFD64_BACKENDS): Add elf64-ia64.lo.
  6818. (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
  6819. (cpu-ia64.lo, elf64-ia64.lo): New rules.
  6820. * Makefile.in: Rebuild.
  6821. * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
  6822. (bfd_ia64_arch): Declare.
  6823. (bfd_archures_list): Add bfd_ia64_arch.
  6824. * bfd-in2.h: Rebuild.
  6825. * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
  6826. * configure: Rebuild.
  6827. * configure.host: (ia64-*-linux*): New host.
  6828. * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
  6829. bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
  6830. * elf.c (prep_headers): Add bfd_arch_ia64.
  6831. * libbfd.h: Rebuild.
  6832. * reloc.c: Add IA-64 relocations.
  6833. * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
  6834. Declare.
  6835. (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
  6836. * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
  6837. 2000-04-21 Richard Henderson <rth@cygnus.com>
  6838. * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
  6839. contents when performing a partial link.
  6840. (bfd_elf_d30v_reloc_21): Likewise.
  6841. 2000-04-20 H.J. Lu <hjl@gnu.org>
  6842. * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
  6843. patch to symbols defined by a shared object.
  6844. * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
  6845. 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
  6846. K&R compiler fixes.
  6847. * dwarf2.c (concat_filename): Avoid string literal concatenation.
  6848. * ieee.c (ieee_get_symtab): Don't initialise union in struct.
  6849. 2000-04-11 David Mosberger <davidm@hpl.hp.com>
  6850. * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
  6851. (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
  6852. (coff-ia64.lo): Add dependency.
  6853. * Makefile.in: Regenerate.
  6854. * coff-ia64.c: New file.
  6855. * efi-app-ia32.c: Ditto.
  6856. * efi-app-ia64.c: Ditto.
  6857. * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
  6858. (coff_set_flags): Ditto.
  6859. (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
  6860. * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
  6861. * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
  6862. * configure: Regenerate.
  6863. * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
  6864. (PUT_OPTHDR_IMAGE_BASE): Ditto.
  6865. (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
  6866. (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
  6867. (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
  6868. (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
  6869. (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
  6870. (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
  6871. (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
  6872. (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
  6873. (GET_PDATA_ENTRY): Ditto.
  6874. * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
  6875. data_start. Use above macros to read fields that are 64 bit wide for
  6876. COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
  6877. (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
  6878. FileAlignment and SectionAlignment to minimum alignment if they
  6879. are zero.
  6880. (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
  6881. Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
  6882. (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
  6883. Use above macros to write fields that are 64 bit wide for
  6884. COFF_WITH_PEP64.
  6885. (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
  6886. 5*4 otherwise. This should be right for IA-32 and IA-64, but may
  6887. be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
  6888. value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
  6889. begin address, end address, and unwind info address only. Use
  6890. GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
  6891. print addresses.
  6892. (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
  6893. HIGH3ADJ relocation names.
  6894. (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
  6895. * targets.c: Declare bfd_efi_app_ia32_vec and
  6896. bfd_efi_app_ia64_vec.
  6897. (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
  6898. bfd_efi_app_ia64_vec.
  6899. 2000-04-17 Timothy Wall <twall@cygnus.com>
  6900. * bfd-in2.h: Add prototypes for tic54x load page access.
  6901. * bfd-in.h: Regenerate.
  6902. * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
  6903. in customized _set_arch_mach function.
  6904. * coffcode.h (coff_set_alignment_hook): Set section load page if
  6905. the appropriate macro is defined.
  6906. (write_object_contents): Read section load page.
  6907. 2000-04-13 Alan Modra <alan@linuxcare.com.au>
  6908. * elf32-hppa.h: Update copyright date.
  6909. * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
  6910. * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
  6911. * elf32-d30v.c (MAX32): Don't use LL suffix.
  6912. (MIN32): Define in terms of MAX32.
  6913. (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
  6914. * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
  6915. expression.
  6916. * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
  6917. 2000-04-12 Alan Modra <alan@linuxcare.com.au>
  6918. * dep-in.sed: Match space before file name, not after.
  6919. * Makefile.am: Regenerate dependencies.
  6920. * Makefile.in: Regenerate.
  6921. * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
  6922. case, allow address wrap-around stupidly removed 2000-03-17. Sign
  6923. extend without an if statement.
  6924. 2000-04-11 Alan Modra <alan@linuxcare.com.au>
  6925. * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
  6926. signed quantites.
  6927. * elf32-mips.c (gprel16_with_gp): Likewise.
  6928. * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
  6929. here using -0x40000, not (int)0xfffc0000.
  6930. (elf32_hppa_size_of_stub): Likewise.
  6931. 2000-04-11 Timothy Wall <twall@cygnus.com>
  6932. * coff-tic54x.c: Now builds with all targets.
  6933. * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
  6934. * Makefile.in: Regenerate.
  6935. * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
  6936. unitialized variable.
  6937. 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
  6938. * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
  6939. --enable-build-warnings option.
  6940. * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
  6941. * Makefile.in, configure: Re-generate.
  6942. 2000-04-07 Nick Clifton <nickc@cygnus.com>
  6943. * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
  6944. BFD_RELOC_THUMB_PCREL_BLX.
  6945. * elf32-arm.h (elf32_arm_final_link_relocate): Handle
  6946. R_ARM_XPC25 and R_ARM_THM_PC22.
  6947. * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
  6948. R_ARM_XPC25 and R_ARM_THM_XPC22.
  6949. (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
  6950. R_ARM_[XPC25|THM_XPC22].
  6951. * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
  6952. elf/arm-oabi.h to elf/arm.h
  6953. * Makefile.am: Fix dependency for elfarm-oabi.c
  6954. * Makefile.in: Regenerate.
  6955. * bfd-in2.h: Regenerate.
  6956. * libbfd.h: Regenerate.
  6957. 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
  6958. * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
  6959. and restore it on failure. Release newly allocated tdata on
  6960. failure.
  6961. 2000-04-07 Jim Wilson <wilson@cygnus.com>
  6962. * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
  6963. (decode_line_info): Set it. Report error if unit->line_offset is
  6964. equal to or larger than it.
  6965. 2000-04-07 Timothy Wall <twall@cygnus.com>
  6966. * targets.c: Added vecs for tic54x.
  6967. * reloc.c: Added relocs for tic54x.
  6968. * libbfd.h: Regenerated.
  6969. * configure: Add TI COFF vecs for tic54x.
  6970. * configure.in: Ditto.
  6971. * config.bfd (targ_cpu): Recognize new tic54x target.
  6972. * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
  6973. * bfd-in2.h: Add tic54x target and relocations.
  6974. * Makefile.am, Makefile.in: Add tic54x target.
  6975. * archures.c (bfd_archures_list): Add tic54x target.
  6976. * coff-tic54x.c: New.
  6977. * cpu-tic54x.c: New.
  6978. 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
  6979. * elfcore.h (elf_core_file_p): call backend_object_p which
  6980. thereby gets an opportunity to update the arch/machine type.
  6981. 2000-04-06 Timothy Wall <twall@cygnus.com>
  6982. * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
  6983. class. Handle SEC_CLINK and SEC_BLOCK flags.
  6984. * section.c: Add SEC_CLINK and SEC_BLOCK flags.
  6985. * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
  6986. 2000-04-06 Nick Clifton <nickc@cygnus.com>
  6987. * elf32-arm.h (elf32_arm_set_private_flags): Only check for
  6988. EF_INTERWORK if this is an unknown EABI.
  6989. (elf32_arm_merge_private_bfd_data): Check EABI version
  6990. numbers. Only check EF_xxx flags if the EABI version number
  6991. is unknown.
  6992. (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
  6993. if the EABI version number is unknown.
  6994. (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
  6995. if the EABI version number is unknown.
  6996. 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
  6997. * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
  6998. BFD_RELOC_SH_LOOP_END.
  6999. * elf32-sh.c (sh_elf_howto_tab): Change special_func to
  7000. sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
  7001. Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
  7002. (sh_elf_reloc_loop): New function.
  7003. (sh_elf_reloc): No need to test for always-to-be-ignored relocs
  7004. any more.
  7005. (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
  7006. (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
  7007. * bfd-in2.h, libbfd.h: Regenerate.
  7008. 2000-04-04 Alan Modra <alan@linuxcare.com.au>
  7009. * po/bfd.pot: Regenerate.
  7010. * Makefile.am: Remove extraneous mkdep comment.
  7011. (MKDEP): Use gcc -MM rather than mkdep.
  7012. (DEP): Quote when passing vars to sub-make. Add warning
  7013. message to end.
  7014. (DEP1): Rewrite for "gcc -MM".
  7015. (CLEANFILES): Add DEP2.
  7016. Update dependencies.
  7017. * Makefile.in: Regenerate.
  7018. 2000-04-03 Kevin Buettner <kevinb@redhat.com>
  7019. * configure.in: Added corefile support for AIX 4.3. In particular,
  7020. AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
  7021. compiling rs6000-core.c.
  7022. * configure: Regenerated.
  7023. 2000-04-03 H.J. Lu <hjl@gnu.org>
  7024. * cache.c (bfd_open_file): Unlink the output file only if
  7025. it has non-zero size.
  7026. 2000-04-01 Ken Block USG <block@zk3.dec.com>
  7027. * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
  7028. relative relocations for non-loaded sections in shared objects.
  7029. (elf64_alpha_check_relocs): Similarly.
  7030. 2000-04-03 Hans-Peter Nilsson <hp@axis.com>
  7031. * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
  7032. BFD_RELOC_16 to switch for extended relocs.
  7033. (MY_swap_ext_reloc_in): New.
  7034. (MY_swap_ext_reloc_out): New.
  7035. (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
  7036. than NAME(aout,swap_ext_reloc_in) for extended relocs.
  7037. (NAME(aout,squirt_out_relocs)): Similarly use
  7038. MY_swap_ext_reloc_out.
  7039. (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
  7040. 2000-04-03 Kazu Hirata <kazu@hxi.com>
  7041. * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
  7042. the R_PCRWORD_B case.
  7043. 2000-03-31 Thomas de Lellis <tdel@wrs.com>
  7044. * srec.c : Set CHUNK size to 16 bytes to prevent download failures
  7045. on some targets.
  7046. * ihex.c : Ditto.
  7047. 2000-03-30 Donald Lindsay <dlindsay@cygnus.com>
  7048. * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
  7049. HOWTO references to bfd_elf_generic_reloc, that have
  7050. partial_inplace == true, now use the new function. The function
  7051. is based on the recent rewrite of m32r_elf_lo16_reloc(), and
  7052. extends its fixes to the R_M32R_{16,24,32} relocs.
  7053. The new logic in m32r_elf_lo16_reloc() has been removed, and
  7054. it instead calls the new routine to obtain that functionality.
  7055. 2000-03-27 Alan Modra <alan@linuxcare.com.au>
  7056. * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
  7057. elf32_avr_check_relocs, avr_final_link_relocate,
  7058. elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
  7059. elf32_avr_object_p): Add prototypes.
  7060. (elf32_avr_gc_mark_hook): Add default for h->root.type.
  7061. (bfd_elf_avr_final_write_processing): Make static.
  7062. 2000-03-27 Denis Chertykov <denisc@overta.ru>
  7063. * cpu-avr.c: New file. BFD support routines for AVR architecture.
  7064. * archures.c (bfd_architecture): Add AVR architecture.
  7065. (bfd_archures_list): Add reference to AVR architecture info.
  7066. * elf.c (prep_headers): Handle bfd_arch_avr.
  7067. * reloc.c: Add various AVR relocation enums.
  7068. * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
  7069. list.
  7070. * Makefile.am: Add support for AVR elf.
  7071. * configure.in: Likewise.
  7072. * config.bfd: Likewise.
  7073. * Makefile.in: Regenerate.
  7074. * configure: This too.
  7075. * bfd-in2.h: And this.
  7076. * libbfd.h: And this.
  7077. 2000-03-24 H.J. Lu <hjl@gnu.org>
  7078. * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
  7079. (elf64_alpha_find_reloc_at_ofs): Likewise.
  7080. 2000-03-17 Alan Modra <alan@linuxcare.com.au>
  7081. * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
  7082. flag an overflow if the bitfield is outside -2**n to 2**n-1. The
  7083. allowable range used to be -2**(n-1) to 2**n-1.
  7084. * reloc.c (_bfd_relocate_contents): Same here. Also replace
  7085. "boolean overflow" with "bfd_reloc_status_type flag".
  7086. 2000-03-14 Doug Evans <dje@casey.transmeta.com>
  7087. * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
  7088. 2000-03-14 Kazu Hirata <kazu@hxi.com>
  7089. * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
  7090. of shrinks properly, including the last reloc.
  7091. 2000-03-13 Kazu Hirata <kazu@hxi.com>
  7092. * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
  7093. check for R_MOVL2.
  7094. 2000-03-11 Alan Modra <alan@linuxcare.com.au>
  7095. * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
  7096. a format mismatch rather than an "error" from bfd_read such as
  7097. bfd_error_file_truncated.
  7098. 2000-03-10 Geoff Keating <geoffk@cygnus.com>
  7099. * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
  7100. sign-extension and big-endian compensation for
  7101. R_MIPS_64 even in ld -r.
  7102. 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
  7103. * elf32-mips.c (mips_elf_next_relocation): Rename from
  7104. mips_elf_next_lo16_relocation, and generalize to look
  7105. for any relocation type.
  7106. (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
  7107. (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
  7108. (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
  7109. (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
  7110. (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
  7111. (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
  7112. (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
  7113. (mips_rtype_to_howto): Likewise.
  7114. (mips_elf_calculate_relocation): Handle new relocs.
  7115. (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
  7116. are paired. The addend for R_MIPS_GNU_REL16_S2
  7117. is shifted right two bits.
  7118. 2000-03-10 Alan Modra <alan@linuxcare.com.au>
  7119. * reloc.c (bfd_perform_relocation): Undo emacs formatting of
  7120. comment, and ensure it doesn't happen again.
  7121. (bfd_install_relocation): Same here.
  7122. (_bfd_relocate_contents): Don't bother assigning unused signmask
  7123. shift result. Fix typos in comments.
  7124. Remove trailing whitespace throughout file.
  7125. 2000-03-07 Doug Evans <dje@casey.transmeta.com>
  7126. * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
  7127. * bfd-in2.h: Rebuild.
  7128. 2000-03-06 Nick Clifton <nickc@cygnus.com>
  7129. * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
  7130. sym_ptr_ptr fields.
  7131. (SIZEOF_ILF_SYM_PTR_TABLE): Define.
  7132. (SIZEOF_ILF_STRINGS): Redefine.
  7133. (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
  7134. relative reloc, as opposed to a section relative reloc.
  7135. (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
  7136. not C_LABEL.
  7137. Add length of symbol's prefix to string pointer.
  7138. Store a pointer to the symbol in the symbol pointer table.
  7139. (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
  7140. Initialise the symbol pointer table.
  7141. Store the hint in the Hint/Name table.
  7142. Make the jump reloc be symbol realtive, not section relative.
  7143. Create an import symbol for imported code.
  7144. 2000-03-06 Catherine Moore <clm@cygnus.com>
  7145. * elf.c (swap_out_syms): Check for null type_ptr.
  7146. 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
  7147. * aout-target.h (MY(write_object_contents)): Remove unused
  7148. and unusable "#if CHOOSE_RELOC_SIZE".
  7149. * pc532-mach.c (MY(write_object_contents)): Ditto.
  7150. * netbsd.h (MY(write_object_contents)): Ditto.
  7151. * hp300hpux.c (MY(write_object_contents)): Ditto.
  7152. * freebsd.h (MY(write_object_contents)): Ditto.
  7153. * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
  7154. 2000-02-29 H.J. Lu <hjl@gnu.org>
  7155. * peicode.h (jtab): Make it static.
  7156. * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
  7157. defined and COFF_IMAGE_WITH_PE is not defined.
  7158. (_bfd_sh_align_load_span): Defined as sh_align_load_span if
  7159. COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
  7160. 2000-03-01 Nick Clifton <nickc@cygnus.com>
  7161. * coff-arm.c (bfd_arm_process_before_allocation): Make
  7162. 'symndx' signed to prevent compile time warning.
  7163. * coff-mcore.c: Remove unused prototype for pe_object_p.
  7164. * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
  7165. functions that are not used when COFF_IMAGE_WITH_PE is
  7166. defined.
  7167. (struct sh_opcode): Change type of 'flags' field to unsigned
  7168. long so that it can hold the USESAS flag.
  7169. * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
  7170. * elf-m10300.c (mn10300_elf_relax_section): Initialise
  7171. 'sym_sec'.
  7172. * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
  7173. parameters.
  7174. Remove unusued variables and code.
  7175. (elf_backend_add_symbol_hook): Fix prototype.
  7176. * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
  7177. 'srelgot'.
  7178. * elf32-mcore.c (mcore_elf_relocate_section): Initialise
  7179. 'oldinst'.
  7180. * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
  7181. parameters.
  7182. Remove unusued variables and code.
  7183. (elf_backend_add_symbol_hook): Fix prototype.
  7184. * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
  7185. * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
  7186. to unused function parameter.
  7187. * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
  7188. parameters.
  7189. Use EMPTY_HOWTO to initialise empty howto slots.
  7190. Remove unused variables.
  7191. * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
  7192. 2000-03-01 H.J. Lu <hjl@gnu.org>
  7193. * aoutx.h (aout_link_input_section_std): Pass "true" to
  7194. the undefined_symbol callback.
  7195. (aout_link_input_section_ext): Likewise.
  7196. * bout.c (get_value): Likewise.
  7197. * coff-a29k.c (coff_a29k_relocate_section): Likewise.
  7198. * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
  7199. Likewise.
  7200. (alpha_relocate_section): Likewise.
  7201. * coff-arm.c (coff_arm_relocate_section): Likewise.
  7202. * coff-i960.c (coff_i960_relocate_section): Likewise.
  7203. * coff-mcore.c (coff_mcore_relocate_section): Likewise.
  7204. * coff-mips.c (mips_relocate_section): Likewise.
  7205. * coff-ppc.c (coff_ppc_relocate_section): Likewise.
  7206. * coff-sh.c (sh_relocate_section): Likewise.
  7207. * coff-tic80.c (coff_tic80_relocate_section): Likewise.
  7208. * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
  7209. * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
  7210. * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
  7211. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
  7212. * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
  7213. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
  7214. * elf32-i370.c (i370_elf_relocate_section): Likewise.
  7215. * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
  7216. * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
  7217. * elf32-sh.c (sh_elf_relocate_section): Likewise.
  7218. * elf32-v850.c (v850_elf_relocate_section): Likewise.
  7219. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
  7220. * elflink.h (elf_link_output_extsym): Likewise.
  7221. * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
  7222. * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
  7223. * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
  7224. * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
  7225. undefined_symbol callback when building shared library with
  7226. -Bsymbolic and undefined symbols are allowed. Otherwise, pass
  7227. "true".
  7228. * elf32-arm.h (elf32_arm_relocate_section): Likewise.
  7229. * elf32-i386.c (elf_i386_relocate_section): Likewise.
  7230. * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
  7231. * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
  7232. (elf32_mips_get_relocated_section_content): Likewise.
  7233. * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
  7234. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
  7235. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
  7236. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
  7237. 2000-02-28 Nick Clifton <nickc@cygnus.com>
  7238. * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
  7239. * Makefile.in: Regenerate.
  7240. * configure.in: Add support for mips and sh pe vectors.
  7241. * configure: regenerate.
  7242. * config.bfd: Add support for arm-wince, mips-pe and sh-pe
  7243. targets.
  7244. * targets.c: Add mips and sh pe vectors.
  7245. * libpei.h (coff_final_link_postscript): Only define if not
  7246. already defined.
  7247. * coffcode.h: Add support for WinCE magic numbers.
  7248. * peigen.c (pe_print_reloc): Update comment and rearrange
  7249. appending of newline character.
  7250. * peicode.h: Add support for Image Library Format.
  7251. (pe_ILF_vars): Structure containing data used by ILF code.
  7252. (pe_ILF_make_a_section): New function. Create a section based
  7253. on ILF data.
  7254. (pe_ILF_make_a_reloc): New function. Create a reloc based on
  7255. ILF data.
  7256. (pe_ILF_make_a_symbol): New function. Create a symbol based
  7257. on ILF data.
  7258. (pe_ILF_save_relocs): New function. Store the relocs created
  7259. by pe_ILF_make_a_reloc in a section.
  7260. (pe_ILF_build_a_bfd): New function. Create a BFD describing
  7261. an ILF object.
  7262. (pe_ILF_object_p): New function. Return a bfd_target pointer
  7263. for an ILF object.
  7264. (pe_bfd_object_p): If an ILF object is detected call
  7265. pe_ILF_object_p on it.
  7266. * coff-arm.c: Add support for WinCE relocs which are different
  7267. from normal ARM COFF relocs.
  7268. * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
  7269. * coff-sh.c: Add support for sh-pe target.
  7270. * pe-sh.c: New file. Support code for sh-pe target.
  7271. * pei-sh.c: New file. Support code for sh-pe target.
  7272. * pe-mips.c: New file. Support code for mips-pe target.
  7273. * pei-mips.c: New file. Support code for mips-pe target.
  7274. 2000-02-27 Jakub Jelinek <jakub@redhat.com>
  7275. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
  7276. architecture if the object causing the bump is dynamic.
  7277. * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
  7278. and also don't it for memory ordering.
  7279. (sparc64_elf_write_relocs): Take src_rela out of the loop.
  7280. 2000-02-27 Ian Lance Taylor <ian@zembu.com>
  7281. * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
  7282. calling bfd_get_section_size_before_reloc.
  7283. (decode_line_info): Likewise.
  7284. (_bfd_dwarf2_find_nearest_line): Likewise.
  7285. 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
  7286. * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
  7287. name of the libtool directory.
  7288. * Makefile.in: Rebuild.
  7289. 2000-02-25 Rodney Brown (RodneyBrown@pmsc.com)
  7290. * som.c (SOM_HOWTO): Define.
  7291. (som_hppa_howto_table): Use it.
  7292. 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
  7293. * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
  7294. * config.bfd: Enable 64 bit support for Solaris7+/sparc.
  7295. 2000-02-24 Catherine Moore <clm@cygnus.com>
  7296. * som.c (som_misc_symbol_info): Add field
  7297. secondary_def.
  7298. (som_bfd_derive_misc_symbol_info): Initialize
  7299. secondary_def.
  7300. (som_build_and_write_symbol_table): Keep track
  7301. of secondary_def field.
  7302. (som_slurp_symbol_table): Set BSF_WEAK symbol flag
  7303. if secondary_def field is set.
  7304. (som_bfd_ar_write_symbol_stuff): Initialize
  7305. secondary_def.
  7306. 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
  7307. * dwarf2.c (read_address): Read 16-bits addresses.
  7308. (parse_comp_unit): Accept addr_size == 2.
  7309. 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
  7310. * bfd-in.h: Update copyright date.
  7311. 2000-02-23 Linas Vepstas <linas@linas.org>
  7312. * cpu-i370.c: New file.
  7313. * elf32-i370.c: New file.
  7314. * archures.c (enum bfd_architecture): Add bfd_arch_i370.
  7315. (bfd_i370_arch): New.
  7316. (bfd_archures_list): Add bfd_i370_arch.
  7317. * elf.c (prep_headers): Add bfd_arch_i370.
  7318. * Makefile.am: Add support for IBM 370 elf.
  7319. * config.bfd: Likewise.
  7320. * configure.in: Likewise.
  7321. * libbfd.h (bfd_reloc_code_real_names): Likewise.
  7322. * reloc.c (bfd_reloc_code_type): Likewise.
  7323. * targets.c: Likewise.
  7324. * Makefile.in: Regenerate.
  7325. * configure: Regenerate.
  7326. * bfd-in2.h: Regenerate.
  7327. 2000-02-22 Ian Lance Taylor <ian@zembu.com>
  7328. * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
  7329. invalid relocation types, and change them to R_386_NONE.
  7330. 2000-02-22 H.J. Lu <hjl@gnu.org>
  7331. * elflink.h (elf_link_add_object_symbols): If a version symbol is
  7332. not defined, don't add a second ELF_VER_CHR.
  7333. * elflink.h (elf_bfd_final_link): Call output_extsym for global
  7334. symbols converted to local symbols even when stripping all
  7335. symbols.
  7336. (elf_link_output_extsym): Process global symbols converted to
  7337. local symbols even if they are being stripped.
  7338. 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
  7339. * archures.c (bfd_octets_per_byte): Return unsigned int.
  7340. (bfd_arch_mach_octets_per_byte): Ditto.
  7341. * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
  7342. comparison warning.
  7343. * section.c (bfd_get_section_size_before_reloc): Quell signed
  7344. vs. unsigned comparison warning.
  7345. (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
  7346. * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
  7347. change. What was I thinking?
  7348. * bfd-in2.h: Regenerate.
  7349. * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
  7350. (elf_gc_sections): Same here.
  7351. (elf_gc_common_finalize_got_offsets): And here.
  7352. 2000-02-21 Ian Lance Taylor <ian@zembu.com>
  7353. ELF HPPA doesn't work at present; remove it until it does.
  7354. * config.bfd: Comment out setting targ_defvec to
  7355. bfd_elf32_hppa_vec.
  7356. * Makefile.am: Rebuild dependencies.
  7357. (BFD32_BACKENDS): Remove elf32-hppa.lo.
  7358. (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
  7359. (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
  7360. * Makefile.in: Rebuild.
  7361. * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
  7362. 2000-02-18 Geoff Keating <geoffk@cygnus.com>
  7363. * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
  7364. is no bfd_free(). Revert bfd_free part of previous change.
  7365. 2000-02-18 Geoff Keating <geoffk@cygnus.com>
  7366. * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
  7367. arrays.
  7368. (coff_compute_section_file_positions): Use bfd_free to pair
  7369. bfd_malloc.
  7370. (coff_write_object_contents): Likewise.
  7371. * coff-rs6000.c (xcoff_howto_table_16): New variable.
  7372. (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
  7373. 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
  7374. * coff-rs6000.c (XCOFFARMAGBIG): New macro.
  7375. (xcoff_ar_file_hdr_big): New structure.
  7376. (SIZEOF_AR_FILE_HDR_BIG): New macro.
  7377. (xcoff_ar_hdr_big): New structure.
  7378. (SIZEOF_AR_HDR_BIG): New macro.
  7379. (xcoff_big_format_p): New macro.
  7380. (xcoff_ardata_big): New macro.
  7381. (arch_xhdr_big): New macro.
  7382. (xcoff_slurp_armap): Handle large archives.
  7383. (xcoff_archive_p): Detect large archives.
  7384. (xcoff_read_ar_hdr): Handle large archives.
  7385. (xcoff_openr_next_archived_file): Handle large archives.
  7386. (xcoff_generic_stat_arch_elt): Handle large archives.
  7387. (xcoff_write_armap_old): Rename from xcoff_write_armap.
  7388. (xcoff_write_armap_big): New function.
  7389. (xcoff_write_armap): New function, dispatch to _old or _big.
  7390. (xcoff_write_archive_contents_old): Rename from
  7391. xcoff_write_archive_contents.
  7392. (xcoff_write_archive_contents_big): New function.
  7393. (xcoff_write_archive_contents): New function, dispatch to _old or
  7394. _big.
  7395. 2000-02-18 Richard Henderson <rth@cygnus.com>
  7396. * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
  7397. and hide_symbol members.
  7398. (elf_link_hash_copy_indirect): Remove.
  7399. (elf_link_hash_hide_symbol): Remove.
  7400. (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
  7401. and elf_backend_hide_symbol.
  7402. (_bfd_elf_link_hash_copy_indirect): Declare.
  7403. (_bfd_elf_link_hash_hide_symbol): Declare.
  7404. * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
  7405. (_bfd_elf_link_hash_hide_symbol): Likewise.
  7406. (_bfd_elf_link_hash_table_init): Don't init killed members.
  7407. * elflink.h (elf_link_add_object_symbols): Use the bed function
  7408. pointers not elf_link_hash_{copy_indirect,hide_symbol}.
  7409. (elf_link_assign_sym_version): Likewise.
  7410. * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
  7411. (elf_backend_hide_symbol): Likewise.
  7412. (elfNN_bed): Update for new members.
  7413. 2000-02-17 Kevin Buettner <kevinb@redhat.com>
  7414. * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
  7415. STACK_END_ADDR): Define for new core file format.
  7416. (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
  7417. for handling the vagaries of the various core file structures used
  7418. by AIX over the years.
  7419. (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
  7420. Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
  7421. core_dumpx structure.
  7422. 2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
  7423. * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
  7424. (bfd_mach_sh3_dsp): Likewise.
  7425. (bfd_mach_sh4): Reinstate.
  7426. (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
  7427. * bfd-in2.h: Regenerate.
  7428. * coff-sh.c (struct sh_opcode): flags is no longer short.
  7429. (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
  7430. (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
  7431. (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
  7432. (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
  7433. (sh_opcodes): No longer const.
  7434. (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
  7435. (sh_insn_uses_reg): Check for USESAS and USESR8.
  7436. (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
  7437. (_bfd_sh_align_load_span): Return early for SH4.
  7438. Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
  7439. Take into account that field b of a parallel processing insn
  7440. could be mistaken for a separate insn.
  7441. * cpu-sh.c (arch_info_struct): New array elements for
  7442. sh2, sh-dsp and sh3-dsp.
  7443. Reinstate element for sh4.
  7444. (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
  7445. (SH4_NEXT): Reinstate.
  7446. (SH3_NEXT, SH3E_NEXT): Adjust.
  7447. * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
  7448. * elf32-sh.c (sh_elf_set_private_flags): New function.
  7449. (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
  7450. (sh_elf_merge_private_data): New function.
  7451. (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
  7452. (bfd_elf32_bfd_copy_private_bfd_data): Define.
  7453. (bfd_elf32_bfd_merge_private_bfd_data): Change to
  7454. sh_elf_merge_private_data.
  7455. 2000-02-13 Richard Henderson <rth@cygnus.com>
  7456. * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
  7457. hide_symbol members.
  7458. (elf_link_hash_copy_indirect): New.
  7459. (elf_link_hash_hide_symbol): New.
  7460. * elflink.h (elf_link_add_object_symbols): Break out copy from
  7461. indirect new new symbol to elf.c.
  7462. (elf_link_assign_sym_version): Break out privatization of
  7463. non-exported symbol to elf.c.
  7464. * elf.c (_bfd_elf_link_hash_copy_indirect): New.
  7465. (_bfd_elf_link_hash_hide_symbol): New.
  7466. (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
  7467. 2000-02-13 Ian Lance Taylor <ian@zembu.com>
  7468. * section.c (_bfd_strip_section_from_output): Add info parameter.
  7469. If it passed as non-NULL, use it to check whether any input BFD
  7470. has an input section which uses this output section. Change all
  7471. callers.
  7472. * bfd-in2.h: Rebuild.
  7473. * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
  7474. bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
  7475. 1999-11-29.
  7476. * bfd-in2.h: Rebuild.
  7477. 2000-02-10 Timothy Wall <twall@cygnus.com>
  7478. * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
  7479. allow final modifications of swapped-in symbol.
  7480. (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
  7481. * coffcode.h (coff_write_relocs): Use macro
  7482. SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
  7483. symbol index should be set to -1.
  7484. 2000-02-10 Toshiyasu Morita (toshi.morita@sega.com)
  7485. * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
  7486. USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
  7487. * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
  7488. * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
  7489. sh_insns_uses_or_sets_freg): New functions.
  7490. * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
  7491. * (sh_insns_conflict): Use new functions and new macros to
  7492. detect conflicts when two instructions both set same integer registers,
  7493. both set same fp register, and both set special register.
  7494. 2000-02-09 Timothy Wall <twall@cygnus.com>
  7495. * coffgen.c (coff_real_object_p): Set arch/mach info prior to
  7496. swapping in sections, so that the swapping routines have access to
  7497. the arch/mach info.
  7498. 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
  7499. * coff-go32.c: Update comment. Update copyright.
  7500. 2000-01-27 Thomas de Lellis <tdel@windriver.com>
  7501. * syms.c (bfd_decode_symclass)
  7502. Two new class characters were added - 'V' and 'v'. The
  7503. meaning of 'W' is now restricted to just weak non-object
  7504. symbols. This allows differentiation between, for example,
  7505. weak functions vs weak objects. nm for example now dumps:
  7506. 'W' = weak global
  7507. 'w' = weak unresolved
  7508. 'V' = weak global object
  7509. 'v' = weak unresolved object
  7510. (bfd_is_undefined_symclass): New function. Return true if the
  7511. given symbol class represents and undefined/unresolved symbol.
  7512. (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
  7513. unresolved symbols.
  7514. * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
  7515. * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
  7516. STT_ARM_16BIT flag set, but it is not attached to a data object
  7517. return STT_ARM_16BIT so that it will be treated as code by the
  7518. disassembler.
  7519. 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
  7520. * coff-i386.c (i3coff_object_p): Remove prototype.
  7521. Update copyright.
  7522. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
  7523. to name. Update copyright.
  7524. * trad-core.c (trad_unix_core_file_p): Cast core_regsec
  7525. assignment to avoid warning. Update copyright.
  7526. 2000-01-24 Robert Lipe (robertl@sco.com)
  7527. * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
  7528. instead of using GNU C extension.
  7529. 2000-01-21 Nick Clifton <nickc@cygnus.com>
  7530. * libbfd.c (bfd_read): Do not attempt to get a negativly sized
  7531. amount from a bfd_in_memory structure.
  7532. (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
  7533. structure.
  7534. 2000-01-14 Nick Clifton <nickc@cygnus.com>
  7535. * linker.c (default_indirect_link_order): oops - fix incorrectly
  7536. applied patch from Tim Wall.
  7537. 2000-01-13 Timothy Wall (twall@tiac.net>
  7538. * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
  7539. = scnhsz, filhsz, relsz, aoutsz, etc)
  7540. * coffswap.h: Ditto.
  7541. 2000-01-13 Nick Clifton <nickc@cygnus.com>
  7542. * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
  7543. interwork thumb to arm stub.
  7544. 2000-01-13 Timothy Wall (twall@tiac.net>
  7545. * archures.c (bfd_octets_per_byte): New function: Return
  7546. target byte size.
  7547. (bfd_arch_mach_octets_per_byte): New function: Return target
  7548. byte size.
  7549. * section.c: Distinguish between octets and bytes for usage of
  7550. _cooked_size, _raw_size, and output_offset. Clarify
  7551. description of bfd_set_section_contents.
  7552. * bfd-in2.h: Regenerate.
  7553. * coffgen.c: Indicate that the offset parameter is in bytes, not
  7554. octets.
  7555. * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
  7556. where appropriate to get the octet offset when calling
  7557. bfd_set_section_contents.
  7558. (bfd_coff_reloc_link_order): Ditto.
  7559. * linker.c (bfd_generic_reloc_link_order): Ditto.
  7560. (_bfd_default_link_order): Ditto.
  7561. * reloc.c (bfd_perform_relocation): Distinguish between octets
  7562. and bytes. Use octets when indexing into octet data; use bytes
  7563. when calculating target addresses.
  7564. (bfd_install_relocation): Ditto.
  7565. * srec.c (srec_write_section): Ditto.
  7566. 2000-01-13 Nick Clifton <nickc@cygnus.com>
  7567. * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
  7568. 3 to 2. This allows 4 byte sized sections, which is necessary for
  7569. dlltool to build functioning DLLs.
  7570. 2000-01-10 Philip Blundell <pb@futuretv.com>
  7571. * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
  7572. (arm*-*-conix*): New target.
  7573. 2000-01-10 Egor Duda <deo@logos-m.ru>
  7574. * config.bfd: Include elf32_i386 vector to target list for cygwin
  7575. and mingw.
  7576. * config.in: Undefine HAVE_WIN32_PSTATUS_T.
  7577. * configure.in: Test for structure win32_pstatus_t in
  7578. <sys/procfs.h>
  7579. * configure: Regenerate.
  7580. * elf.c (elfcore_grok_win32pstatus): New function: process
  7581. win32_pstatus_t notes in elf core file.
  7582. (elfcore_grok_note): Detect win32_pstatus notes.
  7583. 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
  7584. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
  7585. visibility.
  7586. * elflink.h (elf_link_add_object_symbols): Combine visibilities.
  7587. * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
  7588. For older changes see ChangeLog-9899
  7589. Copyright (C) 2002 Free Software Foundation, Inc.
  7590. Copying and distribution of this file, with or without modification,
  7591. are permitted in any medium without royalty provided the copyright
  7592. notice and this notice are preserved.
  7593. Local Variables:
  7594. mode: change-log
  7595. left-margin: 8
  7596. fill-column: 74
  7597. version-control: never
  7598. End: